alphapapa / org-super-agenda

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

Group item by last modified state ? #230

Open deb75 opened 2 years ago

deb75 commented 2 years ago

Hi,

I would like to select items with a list of todo keywords, sort them from the latest to oldest modified state and only show 5 of them. Here is how I began to write :

                 (org-super-agenda-groups
                  '(
                    (:name "Upcoming tasks" :todo ("NEXT" "TODO") :order 0)
                    (:name "Current tasks" :todo ("STARTED" "ONGOING" "WAITING") :order 1)
                    (:name "Completing tasks" :todo "ENDING" :order 2)
                    (:name "Past tasks"
                           :todo ("DONE" "DELEGATED" "WITHDRAWN" "SUPERSEDED" "POSTPONED" "CANCELLED")
                           :order 3)
                    (:discard (:anything))
                    ))

The relevant group is "Past tasks", it collects items with some todo keywords but then, how to sort them according to the latest modified state ? an keep only 5 of them ?

Regards

alphapapa commented 2 years ago

Hello,

  1. See the :take group selector.
  2. This package does not select nor sort items. Please see the FAQ: https://github.com/alphapapa/org-super-agenda#faq
deb75 commented 2 years ago

Thanks,

Just a side question, in my above example, the "past tasks" do not show up although I do have some headlines with the "DONE" todo keywords. Is there an error in my configuration ?

alphapapa commented 2 years ago

Again, this package does not select nor sort items. Please see the FAQ: https://github.com/alphapapa/org-super-agenda#faq