-
Notifications
You must be signed in to change notification settings - Fork 22
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
Added Dynamic Folders + Compatibility with Temlater #42
base: main
Are you sure you want to change the base?
Conversation
Note: I also updated the package config since npm detected vulnerabilities |
closes #37 |
Example for "Dynamic Folders" (capture group):Folder = This regex places anything with the "subjects" tag in the "Subjects" folder, and any nested tags in the first nested folder.
|
❤️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
hi, is there anyway i can use this PR's version for my vault?? |
Option 1 - Use BRATInstall BRAT from community plugins and add Option 2 - Clone and BuildYou'll need to install Git, and NodeJS Then open a terminal in your vault's |
@ggstrader Thanks for this PR. Is it possible to make more nested folders instead of placing everything in the first nested folder? My structure is work/active-projects/sentiment-analysis, work/active-projects/world-domination, work/inactiv-projects/altruism, etc. Only creating the first nested folder still keeps my notes messy. |
It can do anything regex can do, so yes. I recommend looking up some info on regex. regex101.com is a great resource for learning and constructing regex. |
That worked, thanks! For anybody who would need this, here is what I set to create as many nested folders as needed Tag = Folder = |
@ggstrader Could you kindly pull the PR from
I'm a python developer, and know zilch about node, so it would be great if you could pull these changes into yours. I have tons of notes that I want processed. |
Condition expressions like tag[myTag]&has[project]&project[myProj] - uses https://www.npmjs.com/package/logical-expression-parser debounce rule checks and optionally create destination folder if no exist. Borrowed from farux/obsidian-auto-note-mover#42
@ManikandanUV it looks like @brossell (above) has forked this repo and is actively maintaining it, so maybe it's best to request there. |
Do you know how I can use that fork repo? I don't understand how I can use title regex for moving or using the name of the children tag for specifying the path of the moved note. |
If Templater is detected, you can associate a template file with a rule so that it is run automatically when the file is moved.
Due to some kind of caching problem, the template is executed before the file is renamed, otherwise templater complains that the file doesn't exist. I would think that
await
ing the rename call would mean the rename is complete, but apparantly not.How to use: