From: Niall Dooley <dooleyn@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Question on org-agenda-custom-commands tags-todo match syntax
Date: Sat, 12 Jan 2019 08:42:16 +0000 [thread overview]
Message-ID: <CADS3Lq7MF36C2CrLnQW=wQWd_+mMA=6otvpR+hEQH8surOPpwA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1196 bytes --]
Firstly, I've searched online and even posted to both the emacs and orgmode
subreddits but to no avail.
Consider the following snippet:
(setq org-agenda-custom-commands
'(("p" "List Non-done projects"
tags-todo "-CANCELLED+PROJECT/!+TODO")))
My understanding is that in the tags-todo match that entries to the left of
the "/" are the tags, those to the right are the todo keywords and that you
use a "+" to indicate a condition should be satisfied and a "-" when it
should
not be satisfied. Is this correct?
So in the above snippet the search matches headlines with the tag :PROJECT:
and not :CANCELLED: and a todo keyword of TODO. With this I have the
following
questions which I would appreciate if someone could answer.
Is the "+" on the right hand side before the TODO strictly necessary? I've
seen snippets which have it and others which do not. Perhaps it is only
necessary between multiple todo keywords on the right hand side?
What is the significance of the "!" on the right hand side? Should it always
be present? Again, I've seen snippets with it present and others with it
absent though it is present more often than not. Would it ever appear on
the left
hand side?
Thank you.
[-- Attachment #2: Type: text/html, Size: 1657 bytes --]
next reply other threads:[~2019-01-12 8:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-12 8:42 Niall Dooley [this message]
2019-01-12 17:02 ` Question on org-agenda-custom-commands tags-todo match syntax Kyle Meyer
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='CADS3Lq7MF36C2CrLnQW=wQWd_+mMA=6otvpR+hEQH8surOPpwA@mail.gmail.com' \
--to=dooleyn@gmail.com \
--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).