Skip to content

devkade/obsidian-auto-note-mover-plus

Repository files navigation

Auto Note Mover Plus

Auto Note Mover Plus is a powerful Obsidian plugin that automatically moves your notes to specific folders based on flexible rules. It is a fork of the original Auto Note Mover with enhanced capabilities.

Key Features (Plus)

  • Multiple Conditions per Rule: Combine multiple checks (Tag, Title, Property, Date) for a single folder destination.
  • Flexible Matching: Choose between ALL (AND) or ANY (OR) logic for your conditions.
  • Date-Based Organization: Move notes based on creation/modification time or custom date frontmatter fields.

How it works

  1. Define Rules: You set up rules that map conditions to a destination folder.
  2. Trigger:
    • Automatic: Moves notes automatically when you create, edit, or rename them.
    • Manual: Moves notes only when you run the "Move the note" command.

Configuration

Rules

Each rule consists of:

  1. Destination Folder: Where the notes should go.
  2. Match Mode:
    • ALL: The note must meet every condition in the list.
    • ANY: The note must meet at least one condition in the list.
  3. Conditions: Add one or more criteria.

Condition Types

Type Description Example
Tag Matches a tag in the note. #journal, #work/project
Title Matches the note title using Regex. ^Daily Note, Meeting$
Property Matches a frontmatter property (key or key=value). status: active, published: true
Date Matches date criteria (see below). Created Time, Modified Time
Folder Restricts rule to notes in specific source folders. /inbox, /drafts

Folder Condition Details

Restrict a rule to only apply to notes in specific source folders.

  • Folder Path: Specify the source folder path (e.g., /inbox).
  • Include Subfolders: When enabled, the rule also matches notes in all subfolders.
    • Example: Folder /notes with "Include subfolders" ON matches:
      • /notes/file.md
      • /notes/subfolder/file.md
      • /notes/deep/nested/file.md
    • With "Include subfolders" OFF, only exact folder match:
      • /notes/file.md
      • /notes/subfolder/file.md

Date Condition Details

Organize notes into date-based subfolders (e.g., 2023/10).

  • Source: Choose Frontmatter (specify a key like created) or File Metadata (ctime/mtime).
  • Format: Use {{YYYY}}, {{MM}}, {{DD}} in your Destination Folder path.
    • Example Folder Path: Journal/{{YYYY}}/{{MM}}
    • If the date is 2023-11-25, note moves to Journal/2023/11.

Examples

For comprehensive configuration examples, including tag-based, title-based, and date-based rules, please refer to docs/usage-examples.md.

Installation

Manual Installation

  1. Download main.js, manifest.json, styles.css from the latest Release.

  2. Copy files to your vault's plugin folder:

# Navigate to your Obsidian vault
cd /path/to/your/vault

# Create plugin directory
mkdir -p .obsidian/plugins/auto-note-mover-plus

# Copy downloaded files
cp ~/Downloads/main.js .obsidian/plugins/auto-note-mover-plus/
cp ~/Downloads/manifest.json .obsidian/plugins/auto-note-mover-plus/
cp ~/Downloads/styles.css .obsidian/plugins/auto-note-mover-plus/
  1. Reload Obsidian (Cmd/Ctrl + R) and enable "Auto Note Mover Plus" in Settings → Community plugins.

Attribution

This plugin is a fork of Auto Note Mover by farux. Big thanks to the original author for the excellent foundation.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors