Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Tags Within A Single Rule #65

Open
Ken9969 opened this issue Oct 13, 2023 · 3 comments
Open

Multiple Tags Within A Single Rule #65

Ken9969 opened this issue Oct 13, 2023 · 3 comments

Comments

@Ken9969
Copy link

Ken9969 commented Oct 13, 2023

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
Copy link

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
Copy link
Author

Ken9969 commented Oct 22, 2023

Thanx... That worked great!

@bhavers
Copy link

bhavers commented May 30, 2024

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

@greenship24
Copy link

I recommend using regex101.com or similar to test your string.

This for instance will match tags for #London, #Stockholm, or #Paris- ^(#London|#Paris|#Stockholm)

Adapt to whatever you need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants