alphapapa / org-ql

A searching tool for Org-mode, including custom query languages, commands, saved searches and agenda-like views, etc.
GNU General Public License v3.0
1.35k stars 104 forks source link

How to search for regular expressions, as opposed to strings, in helm-org-ql #376

Closed bobf32 closed 9 months ago

bobf32 commented 9 months ago

E.g. \<foo> to search for foo in foo bar but not foobar doesn't seem to work. I can only seem to find strings, not regexps.

alphapapa commented 9 months ago

Hello @bobf32,

Have you looked at the list of predicates in the documentation? Some of them support regexps.

bobf32 commented 9 months ago

I have indeed, and can see how it's done using sexp syntax, but helm-org-ql does not support this. It's not clear to me from the examples I've seen how it would be done using non-sexp syntax.

alphapapa commented 9 months ago

Well, maybe there are edge cases, but typing this into the prompt seems to work for me: heading-regexp:"T.ke" which matches a heading like Take over the world.

bobf32 commented 9 months ago

Error: insufficient user iq. I see it now: regexp:"\<foo\>" ftw. Thanks for bearing with me.

alphapapa commented 9 months ago

You're welcome.