farux / obsidian-auto-note-mover

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

Add support for multiple tags #52

Open karl82 opened 1 year ago

karl82 commented 1 year ago

I want to be able to move notes based on multiple tags. Example

project&archive => _archived/projects project => projects

Tag suggestion works too.

I've tested it locally

Hugo-COLLIN commented 8 months ago

@farux You should review this branch, it's a really wanted feature.

Note: Works with comma-separated #tags, only with "Use regular expression to check for tags" disabled.

Example: #tag1,#tag2

Hugo-COLLIN commented 8 months ago

@karl82 Found a bug: when adding a second tag from suggestion (pressing enter), the first tag is passing to lower case, so it breaks the matching.

Hugo-COLLIN commented 8 months ago

@karl82 Your changes also break the filename matching

karl82 commented 8 months ago

Your changes also break the filename matching

@Hugo-COLLIN Do you have example?

karl82 commented 8 months ago

Found a bug: when adding a second tag from suggestion (pressing enter), the first tag is passing to lower case, so it breaks the matching.

@Hugo-COLLIN I will look into this later. It's been 6 months since I wrote this code.