Stig Brautaset <s...@brautaset.org> writes: > Hi Bastien, > > Bastien <b...@gnu.org> writes: >>> I can easily do this in the list of TODOs, with a tag search. However, I >>> haven't figured out how to do this for the agenda. Is it possible? If >>> so, how? >> >> From what I understand, check `org-agenda-tag-filter' to see how to >> use it within an agenda custom command. > > Thank you! That did indeed do it.
Coincidentally, I was just trying to figure this problem out, so this snippet is helpful. It's weird, because I'm almost certain I've done this before, but couldn't remember how. > FWIW my stanza looks like this now: > > (setq org-agenda-custom-commands > '(("w" "Work Agenda" > ((agenda "" ((org-agenda-span 'day))) > (todo "TODO" > ((org-agenda-max-entries 5) > (org-agenda-todo-ignore-scheduled 'all) > (org-agenda-todo-ignore-deadlines 'all) > (org-agenda-todo-ignore-timestamp 'all)))) > ((org-agenda-tag-filter '("-@home" "-MAYBE")))) > ("h" "Home Agenda" > ((agenda "") > (todo "TODO" > ((org-agenda-max-entries 5) > (org-agenda-todo-ignore-scheduled 'all) > (org-agenda-todo-ignore-deadlines 'all) > (org-agenda-todo-ignore-timestamp 'all)))) > ((org-agenda-tag-filter '("-@work" "-MAYBE")))) > ("m" "Maybe" > ((todo "PROJ") > (tags-todo "-PROJ/TODO")) > ((org-agenda-tag-filter '("MAYBE")))) > ("P" "Projects" tags-todo "-MAYBE/PROJ")))) In my current Org, version 9.3.6-elpaplus, I need a "+" in front of a select tag, ie the "MAYBE" above needs to be "+MAYBE", otherwise nothing is selected at all. If this is how it's meant to be, maybe we could amend this example? Thanks! Eric