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

Question: searching for tag prefixes #24

Open
molekular opened this issue Mar 14, 2023 · 3 comments
Open

Question: searching for tag prefixes #24

molekular opened this issue Mar 14, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@molekular
Copy link

molekular commented Mar 14, 2023

First, thank you so much for this great package, I really like the logic of it and start to get used to it. Especially the new templating system is very convenient.

I have a question, not really an issue. I am not sure where to ask it, I hope you don't mind posting it here.

Is it that there is no option to search for prefixes only? In the example you use with "person/" - given, that address data is in those notes, how would you search for the person living in Rome (especially if no other tag is used)?

Maybe I miss something, but my approach to finding information among the notes is right now: I narrow the search with the broadest tag I know of and then use emacs tools (helm) for searching within the ekg-notes. Prefixes are great for categorizing notes, but how do I find information in the category if that information is not behind the slash?

Also, is there a way to show all notes in an ekg-notes buffer (something like ekg-all-notes)?

Thank you!

Just now found the "discussions". Should I close this issue and post it there?

@ahyatt
Copy link
Owner

ahyatt commented Mar 14, 2023

There's a discussion forum, which is probably better. But this is fine.

Search in general we don't support at all, except via the embeddings module. Besides that, the way you are doing things is the only way available.

It is possible to show all notes starting with a prefix, and it's a good idea. Let me think of the best way to add this. Thank you for the comment!

@ahyatt ahyatt added the enhancement New feature or request label Mar 14, 2023
@jayrajput
Copy link
Contributor

jayrajput commented May 27, 2023

Prefix/partial searches can be easily done. But not a replacement for ekg-all-notes

    (defun ekg-show-notes-with-partial-match (tag)
      "Show notes with partial match against TAG."
      (interactive (list (completing-read "Tag: " (ekg-tags))))
      (ekg-show-notes-with-any-tags (cl-mapcan #'ekg-tags-including (split-string tag "/"))))

@qingshuizheng
Copy link
Contributor

    (defun ekg-show-notes-with-partial-match (tag)
      "Show notes with partial match against TAG."
      (interactive (list (completing-read "Tag: " (ekg-tags))))
      (ekg-show-notes-with-any-tags (cl-mapcan #'ekg-tags-including (split-string tag "/"))))

This is useful. Thanks for sharing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants