[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible to exclude/include tags for agenda custom commands?
From: |
Adam Porter |
Subject: |
Re: Possible to exclude/include tags for agenda custom commands? |
Date: |
Fri, 14 Feb 2020 16:05:24 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Stig Brautaset <address@hidden> writes:
> Hi Bastien,
>
> Bastien <address@hidden> 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
- Possible to exclude/include tags for agenda custom commands?, Stig Brautaset, 2020/02/12
- Re: Possible to exclude/include tags for agenda custom commands?, Bastien, 2020/02/12
- Re: Possible to exclude/include tags for agenda custom commands?, Stig Brautaset, 2020/02/13
- Re: Possible to exclude/include tags for agenda custom commands?, Bastien, 2020/02/14
- Re: Possible to exclude/include tags for agenda custom commands?,
Adam Porter <=
- Re: Possible to exclude/include tags for agenda custom commands?, Bastien, 2020/02/18
- Re: Possible to exclude/include tags for agenda custom commands?, Adam Porter, 2020/02/19
- Re: Possible to exclude/include tags for agenda custom commands?, Bastien, 2020/02/20
- Re: Possible to exclude/include tags for agenda custom commands?, Eric Abrahamsen, 2020/02/20
- Re: Possible to exclude/include tags for agenda custom commands?, Bastien, 2020/02/20
- Re: Possible to exclude/include tags for agenda custom commands?, Eric Abrahamsen, 2020/02/20
- Re: Possible to exclude/include tags for agenda custom commands?, Eric Abrahamsen, 2020/02/20
- Re: Possible to exclude/include tags for agenda custom commands?, Bastien, 2020/02/20
- Re: Possible to exclude/include tags for agenda custom commands?, Eric Abrahamsen, 2020/02/20
- Re: Possible to exclude/include tags for agenda custom commands?, Bastien, 2020/02/23