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