Sortora uses YAML configuration files located in ~/.config/sortora/.
| File | Purpose |
|---|---|
config.yaml |
Main settings and destinations |
rules.yaml |
Custom organization rules |
version: 1
settings:
mode: suggest # 'suggest' or 'auto'
confirmDestructive: true
ignoreHidden: true
ignorePatterns:
- "*.tmp"
- "*.crdownload"
- ".DS_Store"
- "Thumbs.db"
- "desktop.ini"
destinations:
photos: ~/Pictures/Sorted
screenshots: ~/Pictures/Screenshots
documents: ~/Documents/Sorted
work: ~/Documents/Work
finance: ~/Documents/Finance
code: ~/Projects
music: ~/Music/Sorted
video: ~/Videos/Sorted
archives: ~/Archives
trash: ~/.Trashsuggest(default): Show suggestions and ask for confirmationauto: Automatically apply high-confidence suggestions
When true, always ask before deleting files, even in auto mode.
ignoreHidden
When true, skip hidden files (starting with .).
List of glob patterns to ignore during scanning.
Destinations are named paths used in rules. You can customize where files should be moved:
destinations:
photos: ~/Dropbox/Photos # Custom cloud folder
documents: /mnt/nas/Documents # Network storage
code: ~/dev # Custom code folderSome settings can be overridden with environment variables:
# Custom config directory
export SORTORA_CONFIG_DIR=~/.sortora
# Custom data directory
export SORTORA_DATA_DIR=~/sortora-data
# Disable AI features
export SORTORA_NO_AI=trueYou can create a .sortora.yaml in any directory to override settings for that folder:
# ~/Downloads/.sortora.yaml
settings:
mode: auto
destinations:
documents: ./Sorted/Docs
code: ./Sorted/Codeversion: 1
settings:
mode: autoversion: 1
settings:
mode: suggest
ignorePatterns:
- "node_modules/**"
- ".git/**"
- "*.log"
- "dist/**"
- "build/**"
destinations:
code: ~/Projects
documents: ~/Documents/Devversion: 1
settings:
mode: suggest
destinations:
photos: ~/Pictures/PhotoLibrary
screenshots: ~/Pictures/Screenshots
# Custom destinations
raw: ~/Pictures/RAW
edited: ~/Pictures/EditedTo reset to defaults:
# Remove config file
rm ~/.config/sortora/config.yaml
# Regenerate on next run
sortora setup --minimal- Rules System - Create custom rules
- AI Features - Enable smart classification