emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using regular expressions in custom agenda views


From: Nathan Neff
Subject: Using regular expressions in custom agenda views
Date: Sun, 28 Jun 2020 15:05:05 -0500

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}")))

I have the regex surrounded in {} because of the documentation about doing
a tags search - do I need those when using a custom agenda view?

The info page says:
"The second parameter is the search type followed by the string or regular _expression_
to be used for the matching" - how do I specify a regular _expression_ versus a simple
string?

This attempt gives me back a bunch of headings that simply match :project: but have no
capital A anywhere in the tags.
  (setq org-agenda-custom-commands
  '(
     ("1" tags-todo "project[A]")))

Any help appreciated
Thanks,
--Nate

reply via email to

[Prev in Thread] Current Thread [Next in Thread]