diff --git a/notes.org b/notes.org index 16fd957..20c767e 100644 --- a/notes.org +++ b/notes.org @@ -4,6 +4,29 @@ ** TODO Update commentary +** TODO [#B] Implied string literal regexp selector + +As mentioned [[https://www.reddit.com/r/emacs/comments/c8e0zp/my_gnu_hyperbole_vision_quest_odyssey_two/esmtqow/][here]]: + +#+BEGIN_QUOTE markdown +> Third – The “StringFind” search tool seems to be busted currently, but it’s pretty killer when it works. Basically, it lets you do boolean searches through records, so entering: + +> `(and sonnet italian (not petrarch))` + +`helm-org-rifle` provides this, e.g. the equivalent query would be: + +`sonnet italian !petrarch` + +`org-ql` also provides a lispy way to do this, e.g.: + + (org-ql "poetry.org" + (and (regexp "sonnet") + (regexp "italian") + (not (regexp "petrarch")))) + +It is more verbose because of the explicit `regexp` selector, but it would be easy to add an implied string literal selector. Putting that on the to-do list now... ;) +#+END_QUOTE + ** TODO [#A] Tools for saving queries and accessing them *** TODO Save query from ql-agenda buffer