An Obsidian plugin that automates note management by creating rules to move notes between folders based on metadata.
⚠️ Important: Always maintain regular backups of your notesThis plugin automatically moves files based on metadata changes. While it includes safeguards against rule loops, it's important to:
- Keep regular backups of your vault
- Test rules in a safe environment first
- Use the debug mode to understand how rules are being applied
- Review the plugin's behavior before applying rules to important notes
- Create rules to automatically move notes based on their metadata
- Configure rules on a per-folder basis
- Support for multiple conditions per rule
- Multiple matching types:
- All conditions must match (AND)
- Any condition can match (OR)
- Three types of metadata matching:
- Exact matching
- Contains matching
- Regular expression matching
- Folder path completion for easy rule configuration
- Debug mode for troubleshooting
- Prevention of rule loops
- Enable the plugin in Obsidian settings
- Click the folder-plus icon in the ribbon to toggle the plugin
- Open the plugin settings to configure rules
- Click "Add Rule" to create a new rule
- Configure the source folder (where notes will be monitored)
- Configure the destination folder (where matching notes will be moved)
- Choose the match type:
- "All conditions must match": All conditions must be satisfied
- "Any condition can match": Any single condition can trigger the rule
- Add conditions:
- Click "Add Condition" to add a new condition
- Specify the metadata field to check
- Choose the matching type (equals, contains, or regex)
- Enter the value to match against
-
Move notes to "Projects/Active" when:
- Source folder: "Inbox"
- Match type: All conditions
- Conditions:
- status equals "active"
- priority equals "high"
-
Move notes to "Archive" when:
- Source folder: "Projects"
- Match type: Any condition
- Conditions:
- status equals "completed"
- status equals "archived"
Enable debug mode in the plugin settings to see detailed information about:
- Metadata changes
- Rule evaluation
- Condition matching
- File movements
Debug information appears in the Developer Console (View > Toggle Developer Tools > Console).
- Open Settings > Community plugins
- Turn off Safe mode
- Click Browse community plugins
- Search for "Folder Rules"
- Click Install
- Once installed, close the community plugins window and enable the newly installed plugin
- Download the latest release from the Releases section
- Extract the files into your vault's plugins folder:
<vault>/.obsidian/plugins/folder-rules/ - Reload Obsidian
- If prompted about Safe Mode, you can disable safe mode and enable the plugin
- Clone this repo
- Make sure your NodeJS is at least v16 (
node --version) npm ioryarnto install dependenciesnpm run devto start compilation in watch mode
If you find this plugin helpful, please consider supporting its development:
- Star the repository
- Report bugs or suggest features
- Submit pull requests
This project is licensed under the MIT License - see the LICENSE file for details.