emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] property matching in org-agenda-custom-commands


From: Thomas Plass
Subject: Re: [O] property matching in org-agenda-custom-commands
Date: Sat, 6 Apr 2019 11:06:42 +0200

Matt,

Matt Price wrote at 21:26 on April 5, 2019:
: Is it possible to specify "current buffer only" in the definition of a 
shortcut, but still
: produce an agenda, rather than a sparse tree? 

Agenda matching will always use 'org-agend-files, sparse tree matching
doesn't.  So, you'd need to force "current buffer" (really: current
file) by fiddling und unfiddling 'org-agend-files.  Kludgy.

: +GRADE={"0"|"Fail"}

The thing is that the tags matcher, used here to match PROPERTYs,
translates the "=" in the string above to Lisp `string='.  You're on
the right track to use "{|}" but then it the contents of the {}
has to be a properly escaped regexp.

This works for me:

("F" "Failing Students in Current Buffer Only" tags "+GRADE={0\\|Fail}")

Overkill:

("F" "Failing Students in Current Buffer Only" tags "+GRADE={^\\(0\\|Fail\\)$}")

Thomas



reply via email to

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