emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Using regular expressions in custom agenda views
@ 2020-06-28 20:05 Nathan Neff
  2020-06-28 21:12 ` Kyle Meyer
  0 siblings, 1 reply; 7+ messages in thread
From: Nathan Neff @ 2020-06-28 20:05 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1151 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1660 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-06-28 22:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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).