alphapapa / org-super-agenda

Supercharge your Org daily/weekly agenda by grouping items
GNU General Public License v3.0
1.35k stars 107 forks source link

Selector to match diary entries (was: how to exclude diary entries) #250

Open AdelleBernal opened 1 year ago

AdelleBernal commented 1 year ago

Excellent package!

Just one thing I noticed: when I activate org-agenda-toggle-diary (to include diary entries in org-agenda), my thousand of diary entries appear under "Other items". Is there a way to exclude my diary entries from "Other items"?

(defcustom org-super-agenda-unmatched-name "Other items"
  "Default name for agenda section containing items unmatched by any filter."
  :type 'string)

Thank you!

alphapapa commented 1 year ago

Hello,

I'm glad to hear that it's useful to you. I don't use the "diary", so I suppose there's no selector matching such entries. You could likely make one using the :pred selector to test the text properties of the diary entry lines (I don't know what those properties might be, but you can inspect them with C-u C-x =). Alternatively, if the diary entries are the only entries in the "Other items" group, you could use the :discard selector to discard them.

If you're able to find out which property Org applies to the diary entries, we could add a selector to match them.

Thanks.