refactor-notes
Restructure your notes by splitting at specified headings, merging multiple notes into one, or extracting sections into new notes to improve organization and clarity.
Instructions
Unified tool for structural note refactoring: split notes by heading, merge multiple notes, and extract sections to new notes
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform: 'split', 'merge', 'extract-section' | |
| path | No | Source note path | |
| level | No | Heading level to split at (default: 2, for split action) | |
| keep_original | No | Keep extracted content in original note (for split action) | |
| output_dir | No | Directory for new notes (for split action) | |
| dry_run | No | Preview changes without modifying files | |
| paths | No | Comma-separated list of notes to merge (for merge action) | |
| output | No | Output note path | |
| separator | No | Separator between notes (for merge action) | |
| delete_originals | No | Delete original notes after merge (for merge action) | |
| add_headings | No | Add note names as headings (for merge action) | |
| heading | No | Heading to extract (for extract-section action) | |
| remove_from_original | No | Remove from source note (default true, for extract-section action) | |
| add_link | No | Add link to new note in source (default true, for extract-section action) |