[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible to exclude/include tags for agenda custom commands?
From: |
Eric Abrahamsen |
Subject: |
Re: Possible to exclude/include tags for agenda custom commands? |
Date: |
Thu, 20 Feb 2020 08:50:59 -0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (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.
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
- 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, 2020/02/14
- 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 <=
- 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
- Re: Possible to exclude/include tags for agenda custom commands?, Eric Abrahamsen, 2020/02/23
- Re: Possible to exclude/include tags for agenda custom commands?, Bastien, 2020/02/24
- Re: Possible to exclude/include tags for agenda custom commands?, Eric Abrahamsen, 2020/02/24