You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you very much for NoteExplorer - it has proven to be a handy little tool! While tinkering with it a bit more I was wondering whether it would be feasible to add the possibility to add a search for #tag to NoteExplorer?
Apart from linking notes to each other, I also add tags to them (e.g. #my-tag). It would be wonderful to be able to filter Zettel by a given tag with something like this:
noteexplorer list-with-tag #my-tag Prints a list of notes with the tag #my-tag
Some more info about my use case: I'm playing with the idea of publishing a subset of my notes to a website and would love to retrieve all notes with the tag #public for this purpose. I will then create a GitHub action to automate the publishing (basically a simple copy & paste of the note).
UPDATE: Alternatively retrieving tags from YAML Frontmatter would be fine for me as well - or supporting even both approaches 🤷
---
tags: [my-tag, another-tag]
---
The text was updated successfully, but these errors were encountered:
As a "workaround", I would suggest using ripgrep to search for "#tag" like so:
rg --type md --ignore-case --fixed-strings "#tag"
Ripgrep does full-text search in all files in all subdirectories, using regular expressions by default, so it should be a good match for this use case.
--type md only searches Markdown files
--ignore-case matches "#TAG" as well
--fixed-strings assumes "#tag" is a normal string and not a regular expression
Hi Christian 👋 ,
Thank you very much for NoteExplorer - it has proven to be a handy little tool! While tinkering with it a bit more I was wondering whether it would be feasible to add the possibility to add a search for
#tag
to NoteExplorer?Apart from linking notes to each other, I also add tags to them (e.g.
#my-tag
). It would be wonderful to be able to filter Zettel by a given tag with something like this:Some more info about my use case: I'm playing with the idea of publishing a subset of my notes to a website and would love to retrieve all notes with the tag
#public
for this purpose. I will then create a GitHub action to automate the publishing (basically a simple copy & paste of the note).UPDATE: Alternatively retrieving tags from YAML Frontmatter would be fine for me as well - or supporting even both approaches 🤷
The text was updated successfully, but these errors were encountered: