ekg icon indicating copy to clipboard operation
ekg copied to clipboard

Question: searching for tag prefixes

Open molekular opened this issue 1 year ago • 3 comments

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?

molekular avatar Mar 14 '23 15:03 molekular

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 avatar Mar 14 '23 19:03 ahyatt

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 "/"))))

jayrajput avatar May 27 '23 03:05 jayrajput

    (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!

qingshuizheng avatar Jun 17 '23 02:06 qingshuizheng