farux / obsidian-auto-note-mover

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

bug: regular expressions don't work for me for nested tags #27

Open erazlogo opened 2 years ago

erazlogo commented 2 years ago

I have ^#work$ specified, which moves into the specified folder notes with #work but not with #work/film. Moreover, even I specify #work/film separately in addition to ^#work$, the note with #work/film does not move. It moves only if I specify #work and #work/film (remove regexp entirely). Please help!

farux commented 2 years ago

This is because ^ indicates the beginning of a line and $ indicates the end of a line, so ^#work$ will only match #work. To match all nested tags for #work, use ^#work.

erazlogo commented 2 years ago

Duh. I need to learn regex. Many thanks!

neuroloops commented 1 year ago

thanks, I did the same error

ltmulcahy commented 1 year ago

Is this in the "Tag" or "Title by Regex" columns? I can't seem to get it to work in either.

ltmulcahy commented 1 year ago

Is this in the "Tag" or "Title by Regex" columns? I can't seem to get it to work in either.

I have spotted that there is an option to turn this setting on and it then works with the regex/tag text put into the tag column.