mysticcoders / voicenotes-sync

A plugin for Obsidian to sync with the VoiceNotes.com service
MIT License
46 stars 1 forks source link

Offer an option to only sync notes with one or more tags? #29

Open kinabalu opened 5 months ago

kinabalu commented 5 months ago

Could be a set of tags separated by a comma, and would ignore any other notes?

kinabalu commented 3 months ago

closing as unnecessary, seems like the exclusion functionality may be helpful here

YorVeX commented 2 months ago

Hm, I don't get why it should not be necessary. I have a vault for notes of only one specific type that can be identified by one specific tag. I'd like to set this vault to include only notes with this tag. Right now I can't, and remembering to exclude every single tag I will ever use in other notes (currently I don't even use tags for all of my other notes to begin with) doesn't seem like a good solution, actually not even a good workaround.

Will definitely buy you guys a coffee or two when it's implemented (as I just did when thread support was added) if it helps 😄

kinabalu commented 2 months ago

Well, first off thanks for the coffee, and happy to reopen, was just cleaning up and didn't see much activity so wasn't sure if the idea had merit. Reopening!

YorVeX commented 2 months ago

Great, thanks!

TCMAD commented 2 months ago

This feature can be very interesting. I personally want to use it as a layer or filter to my Obsidian vault and choose which notes I should for a long term use.

YorVeX commented 1 month ago

Is it actually possible to get recordings filtered for a specific tag from the API? I know the plugin can just work with the full list of recordings that it's getting anyway, but when checking to include only specific tags this would be more efficient.

I can't seem to find any info about the voicenotes API at all and wonder how you guys even found out about the functions this plugin is already utilizing. One thing I found which is not in voicenotes-api.ts is that you can call a /tags endpoint on the API and get back a list of all tags as a JSON array, including a "recordings_count" field telling you how many recordings exist for that tag. Made me think there should be a way to query for recordings matching a specific tag or a generic search endpoint that can do this, but didn't have any luck finding one by experimentation so far. Trying /tags/mytagname seemed obvious but is giving me a "Method Not Allowed" response (unlike other attempts where I get "Not Found").

vladcampos commented 1 day ago

... remembering to exclude every single tag I will ever use in other notes doesn't seem like a good solution, actually not even a good workaround.

I had the same thought when I saw the “Excluded Tags” options in the settings. In my opinion, it should be the other way around. In other words, only sync notes with specifics tags.