KevinBatdorf / obsidian-raycast

Raycast extension with commands for the note taking app Obsidian.
MIT License
106 stars 19 forks source link

Feature request: Add Obsidian tags as searchable keywords #16

Closed RobertBolender closed 2 years ago

RobertBolender commented 2 years ago

The Raycast List.Item allows for a string[] of keywords that are indexed for searching, which would allow for tags to be fuzzily-searchable in the Search Note command in addition to note titles.

https://developers.raycast.com/api-reference/user-interface/list#props-5

I'm currently aware of two different approaches for Obsidian tagging: in YAML front matter or else in the body with # hashtags, which might complicate this feature.

https://help.obsidian.md/How+to/Working+with+tags

marcjulianschwarz commented 2 years ago

Hi @RobertBolender,

I am aware of the keywords property and I already did some testing with it. Tried to implement a content search. It did work but the performance wasn't great.

Maybe it will be better when only tags will be used for searching. I will give it a go.

Thank you for the suggestion.

marcjulianschwarz commented 2 years ago

Didnt forget this issue, but I need help as I am having problems with the JS heap being out of memory when reading the content for every note (which would be necessary for everything listed here), especially for search related tasks.

See issue https://github.com/marcjulianschwarz/obsidian-raycast/issues/19 for more info and further discussion.

marcjulianschwarz commented 2 years ago

Hi @RobertBolender,

to close issue #19 I had to implement a new search which can now handle content search. This means you can search for inline tags too. Searching for #tag will list all notes with the tag tag. You can try out the newest version by cloning this repository and running npm install && npm run dev or wait until the update gets released in the raycast store.

marketmann commented 2 years ago

This would be sweet!

marcjulianschwarz commented 2 years ago

This has been implemented with the new version 1.6.0 which has just been released on the store.