From: Adam Porter <adam@alphapapa.net>
To: emacs-orgmode@gnu.org
Subject: Re: Possible to exclude/include tags for agenda custom commands?
Date: Fri, 14 Feb 2020 16:05:24 -0600 [thread overview]
Message-ID: <87o8u0zuxn.fsf@alphapapa.net> (raw)
In-Reply-To: m2y2t6gttl.fsf@brautaset.org
Stig Brautaset <stig@brautaset.org> writes:
> Hi Bastien,
>
> Bastien <bzg@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
next prev parent reply other threads:[~2020-02-14 22:05 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-12 19:03 Possible to exclude/include tags for agenda custom commands? Stig Brautaset
2020-02-12 22:30 ` Bastien
2020-02-13 19:39 ` Stig Brautaset
2020-02-14 10:02 ` Bastien
2020-02-14 22:05 ` Adam Porter [this message]
2020-02-18 13:05 ` Bastien
2020-02-20 3:57 ` Adam Porter
2020-02-20 7:23 ` Bastien
2020-02-20 16:50 ` Eric Abrahamsen
2020-02-20 17:24 ` Bastien
2020-02-20 17:48 ` Eric Abrahamsen
2020-02-20 19:02 ` Eric Abrahamsen
2020-02-20 19:08 ` Bastien
2020-02-20 19:51 ` Eric Abrahamsen
2020-02-23 13:24 ` Bastien
2020-02-23 20:55 ` Eric Abrahamsen
2020-02-24 9:14 ` Bastien
2020-02-24 17:03 ` Eric Abrahamsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o8u0zuxn.fsf@alphapapa.net \
--to=adam@alphapapa.net \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).