alphapapa / org-super-agenda

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

cond: Invalid org-super-agenda-groups selector: (:discard (:scheduled future)) #233

Closed justinabrahms closed 1 year ago

justinabrahms commented 1 year ago

Hi.

I'm on 1.3-pre. I have this error:

cond: Invalid org-super-agenda-groups selector: (:discard (:scheduled future))

The relevant section of my config:

(use-package org-super-agenda
  :init (setq org-super-agenda-groups
              '(
                (:property ("PROJECT" "2022Goals") :name "2022 Goals" :order 12)
                (:property ("PROJECT" "2023Goals") :name "2023 Goals" :order 13)
                (:todo "NEXT")
                (:todo "WAITING" :name "Things I'm waiting on"
                       :and (:todo "WAITING" (:discard (:scheduled future))))
                (:priority "A" :name "High priority")
                (:deadline t :name "Upcoming deadlines")
                (:scheduled today :name "today")
                (:scheduled past :name "past")
                (:file-path "/notes.org" :order 11 :name "Home stuff")
                (:tag "writing" :order 10)
                (:discard (:scheduled future))
                (:auto-property "WAITING_ON" :log t :name "Waiting on people")
                (:auto-property "PROJECT" :log t)
                (:auto-tags)
                (:auto-todo)))

  :config (org-super-agenda-mode 1)
  (variable-pitch-mode 1))
justinabrahms commented 1 year ago

The offending issue is the "Things I'm waiting on" grouping.

alphapapa commented 1 year ago

The error is happening because that's not a valid use of the :discard selector.

justinabrahms commented 1 year ago

Seems that way, but was working in previous versions. :shrug: Thanks, I'm back to working.

alphapapa commented 1 year ago

Hm, well, if that ever worked, it wasn't intended to. :)

VVialard commented 1 year ago

Hello ! Sorry to re-open this issue, but I was using the same formula before... @justinabrahms What work-around have you found to keep the same property ? Thanks,

justinabrahms commented 1 year ago

https://justin.abrah.ms/dotfiles/emacs.html#org4b3c60e is my updated config. I just discard things earlier in the pipeline.

(use-package org-super-agenda
  :init (setq org-super-agenda-groups
              '(
                (:discard (:scheduled future))
                (:property ("PROJECT" "2022Goals") :name "2022 Goals" :order 12)
                (:property ("PROJECT" "2023Goals") :name "2023 Goals" :order 13)
                (:todo "NEXT")
                (:priority "A" :name "High priority")
                (:deadline t :name "Upcoming deadlines")
                (:scheduled today :name "today")
                (:scheduled past :name "past")
                (:file-path "/notes.org" :order 11 :name "Home stuff")
                (:tag "writing" :order 10)
                (:discard (:scheduled future))
                (:auto-property "WAITING_ON" :log t :name "Waiting on people")
                (:auto-property "PROJECT" :log t)
                (:auto-tags)
                (:auto-todo)))

  :config (org-super-agenda-mode 1)
  (variable-pitch-mode 1))

Which I now see has a duplicated discard. :-P

VVialard commented 1 year ago

Thanks a lot ! This sure is an amazing config 🚀 My issue must be coming from earlier in my pipeline... I will perform additional checks !