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. > > 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")))) > > Stig
Hi Stig, Thanks for sharing that. I think this is a fairly common question among Org users, yet not always easy to find the answer to, so I've added your example here along with a couple of other solutions: https://alphapapa.github.io/org-almanac/#Exclude%20and%20include%20tags%20in%20custom%20Agenda%20commands