Hide items that aren't time-relevant by creating and using time-based tags e.g., @weekend
Agendas can get filled with tasks that can't be completed in the current time context. org-when will hide tasks that aren't doable right now.
For example
- Clean the yard :@weekend:
With org-when, this heading will only show up in org agenda on Saturday or Sunday.
(package org-when)
(use-package org-when)
- optionally, customize org-when-time-entries. This is a list of tags and times. It can be customized or set. The default entries are
- @weekend (Sat-Sun)
- @weekday (Mon-Fr)
- @morning (5am-10am)
- @evening (5pm-11pm)
- In your org agenda configuration, use org-when-skip-if instead of org-agenda-skip-if. e.g.
(setq org-agenda-custom-commands
'(("d" "Daily agenda"
((agenda ""
(org-agenda-skip-function '(org-when-skip-if '(todo done))))))))
- tag your headings with one of the specified tags.