From: Nathan Neff <nathan.neff@gmail.com>
To: Kyle Meyer <kyle@kyleam.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Using regular expressions in custom agenda views
Date: Sun, 28 Jun 2020 17:27:28 -0500 [thread overview]
Message-ID: <CAC=HedDAN4o5+4JWavA+mpqp83+a7Pv3T+YYV7BgyVb_zkXpZQ@mail.gmail.com> (raw)
In-Reply-To: <87366ec2tw.fsf@kyleam.com>
[-- Attachment #1: Type: text/plain, Size: 1709 bytes --]
On Sun, Jun 28, 2020 at 4:12 PM Kyle Meyer <kyle@kyleam.com> wrote:
> Nathan Neff writes:
>
> > I'm having a difficult time using regular expressions in custom
> > "tags-todo" agenda views.
> >
> > Is it possible to create custom agenda views using regular expressions,
> > and if so, do I need to escape certain characters?
> >
> > I can't get a simple regex like this to work, so I'm suspecting that
> > I'm doing something wrong or, it's simply not possible to create custom
> > agenda views that use regular expressions to search for tags.
> >
> > For example, this expression doesn't even find headings with :projectA:
> > as a tag
> >
> > (setq org-agenda-custom-commands
> > '(
> > ("1" tags-todo "{projectA}")))
>
> My understanding is that the above should work. I tried your
> org-agenda-custom-commands value with this agenda file:
>
> * TODO a
> :projectA:
> * TODO b
> :projectB:
> * TODO c
> :project:
>
> With an otherwise vanilla configuration and master (0c1740c91) checked
> out, I see
>
> Headlines with TAGS match: {projectA}
> Press ‘C-u r’ to search again
> scratch: TODO a
> :projectA:
>
> I see the same thing on maint (3ed035ce3).
>
Thanks - I'm using Org 9.3.6 and I'm getting no matches when using emacs -q
I had some other issues w/regexes and Bastien fixed them in "maint":
https://code.orgmode.org/bzg/org-mode/commit/c0d08b7efe740c17a3eec28984161c05e43da5ef
Is it relatively easy to try org-mode's "maint" version (e.g. just check
out branch from
https://code.orgmode.org/bzg/org-mode ?) I'll try using the "maint"
version to see what's up.
Thanks,
--Nate
[-- Attachment #2: Type: text/html, Size: 2952 bytes --]
next prev parent reply other threads:[~2020-06-28 22:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-28 20:05 Using regular expressions in custom agenda views Nathan Neff
2020-06-28 21:12 ` Kyle Meyer
2020-06-28 22:27 ` Nathan Neff [this message]
2020-06-28 22:28 ` Nathan Neff
2020-06-28 22:39 ` Nathan Neff
2020-06-28 22:48 ` Nathan Neff
2020-06-28 22:54 ` Nathan Neff
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='CAC=HedDAN4o5+4JWavA+mpqp83+a7Pv3T+YYV7BgyVb_zkXpZQ@mail.gmail.com' \
--to=nathan.neff@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=kyle@kyleam.com \
/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).