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

Select items logged yesterday/in the last 7 days? #226

Open hrehfeld opened 1 year ago

hrehfeld commented 1 year ago

All the examples seem to have :log t and the doc doesn't mention anything about timespans other than today. Is this possible?

I'd expect something like:

:log (clock after ...)

(which currently doesn't seem to work), and then we'd probably need some date hack like this:

  (let* ((future-cutoff-date
          (format-time-string "%Y-%m-%d"
           ;; 7 days into the future
                              (time-add (current-time) (days-to-time 7))))
         (org-super-agenda-groups
          `(
            (:name "Urgent" :deadline (before ,future-cutoff-date))
alphapapa commented 1 year ago

Please note the documentation of the :log selector: "Group Agenda Log Mode items." If you're not using the Agenda Log Mode, that's not the selector you're looking for.