farux / obsidian-auto-note-mover

This is a plugin for Obsidian (https://obsidian.md).
MIT License
255 stars 21 forks source link

Multiple Tags Within A Single Rule #65

Open Ken9969 opened 9 months ago

Ken9969 commented 9 months ago

Auto Note Mover is a great Obsidian plugin! Still, I'd like to be able to enter several tags on a single rule. For example, say I have a directory titled 'Reference'. I'd like to send several differently tagged notes to that directory with one rule. For example, if I have notes tagged 'User-Guide' and 'Manual' and 'Obsidian-Reference', I'd like to use a single rule with the tags entry '#User-Guide, #Manual, #Obsidian-Reference' to send notes with any one of these several tags to a given directory. As it is now, I have to make three rules to accomplish this and if I wish to add another tag to go to that same directory, I have to create a new rule. I know I could change the tags to all be the same, but then that diminishes the ability to use tags to accomplish better searches.

Davidyao217 commented 8 months ago

Toggle on the "Use regular expressions to check for tags" option. Come up with a regex expression that evaluates to true if any of those tags are in the string; bard or chatgpt should be able to come up with it.

Ken9969 commented 8 months ago

Thanx... That worked great!

bhavers commented 1 month ago

I can't get this to work to match two tags (they both should match). Anyone has an example of that? thx