The File Organization tool now supports selecting specific top-level folders to organize, rather than only organizing the entire vault.
Users can now choose between:
- 🌍 Entire Vault: Organize all files in the vault (original behavior)
- 📁 Specific Folder: Select and organize files from a specific folder
- Recursive scanning: Finds all directories and subdirectories
- System folder filtering: Automatically excludes
.obsidian,.git,node_modules, etc. - Organized folder exclusion: Skips previously organized folders to prevent conflicts
- Browse interface: Shows all available folders in a clean list
- Relative paths: Displays folder paths relative to vault root for clarity
- Pagination: Handles large folder lists with scrollable interface
- File count preview: Shows exactly how many markdown files will be organized
- Confirmation prompt: Requires user confirmation before proceeding
- Clear information: Displays target folder and file count before organization
Main Menu → 📁 Organize Files
? What would you like to organize?
❯ 🌍 Entire Vault
📁 Specific Folder
? Select a folder to organize:
❯ 📁 Notes
📁 Projects
📁 Archive/2024
📁 Archive/2023
📁 Resources/Images
❌ Cancel
📊 Found 15 markdown files in selected folder
? Organize 15 files in 'Notes'? (Y/n)
? How would you like to organize your files?
❯ 📅 By Date Created
📅 By Date Modified
🏷️ By Tags
📁 By File Type
📊 By File Size
🔤 Rename Files
🗂️ Custom Folder Structure
- Files from the selected folder are processed
- Organized into vault root
/organized/structure - Progress feedback during operation
- Discovers all directories in vault
- Filters out system/excluded folders
- Provides interactive selection interface
- Shows file count preview
- Recursively scans directory structure
- Applies filtering rules
- Returns sorted list of valid directories
- Filters out system folders (
.obsidian,.git, etc.) - Excludes already organized folders
- Prevents infinite loops and conflicts
- Counts markdown files in specific directory
- Provides preview information
- Handles error cases gracefully
- Dual path support: Handles both target path and vault root
- Flexible file discovery: Works with entire vault or specific folder
- Proper organization: Maintains organized structure at vault root
vault/
├── Notes/
│ ├── daily-note-2024-01-15.md
│ ├── meeting-notes.md
│ └── project-ideas.md
├── Archive/
│ └── old-notes.md
└── Resources/
└── references.md
vault/
├── Notes/ # Original folder (empty after move)
├── Archive/ # Untouched
├── Resources/ # Untouched
└── organized/
└── by-date/
├── 2024/
│ └── 2024-01/
│ └── daily-note-2024-01-15.md
└── general/
├── meeting-notes.md
└── project-ideas.md
- Choose exactly which part of vault to organize
- Avoid disrupting entire vault structure
- Test organization on small sections first
- Preview before execution
- Confirmation prompts
- System folder protection
- Organized folder exclusion
- Clear navigation flow
- Informative previews
- Error handling and feedback
- Cancellation options at any step
- Works with any folder depth
- Handles empty folders gracefully
- Maintains original organization logic
- Preserves vault integrity
- Select "📁 Specific Folder"
- Choose "Projects/CurrentWork"
- Preview: "Found 8 markdown files"
- Confirm and organize by tags
- Result: Only CurrentWork files organized
- Select "📁 Specific Folder"
- Choose "Archive"
- Preview: "Found 42 markdown files"
- Organize by date created
- Result: Archive files sorted chronologically
- Select "📁 Specific Folder"
- Choose small test folder
- Try different organization methods
- Verify results before applying to larger areas
✅ Complete and Functional
- Folder selection interface implemented
- Directory discovery working
- File counting and preview operational
- Integration with existing organization methods
- Error handling and user feedback
- System folder filtering active
The File Organization tool now provides professional-grade folder selection capabilities, giving users precise control over which parts of their vault to organize.