Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
bobf32 opened this issue Sep 28, 2023 · 5 comments
Closed

Comments

@bobf32
Copy link

bobf32 commented Sep 28, 2023

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
Copy link
Owner

Hello @bobf32,

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

@bobf32
Copy link
Author

bobf32 commented Sep 28, 2023

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
Copy link
Owner

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
Copy link
Author

bobf32 commented Sep 28, 2023

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

@alphapapa
Copy link
Owner

You're welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants