[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using regular expressions in custom agenda views
From: |
Kyle Meyer |
Subject: |
Re: Using regular expressions in custom agenda views |
Date: |
Sun, 28 Jun 2020 17:12:11 -0400 |
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).