Files
renamer/specs/008-ai-rename-command/quickstart.md
2025-11-05 16:06:09 +08:00

1.2 KiB
Raw Blame History

Quickstart AI Rename Command

  1. Preview AI suggestions before applying.

    renamer ai --path ./photos --prompt "Hawaii vacation album"
    
    • Traverses ./photos (non-recursive by default) and sends the collected basenames to renameFlow.
    • Displays a preview table with original → suggested names and any validation warnings.
  2. Adjust scope or guidance and regenerate.

    renamer ai --path ./photos --recursive --hidden \
      --prompt "Group by location, keep capture order"
    
    • --recursive includes nested folders; --hidden opts in hidden files.
    • Re-running the command with updated guidance regenerates suggestions without modifying files.
  3. Apply suggestions non-interactively when satisfied.

    renamer ai --path ./photos --prompt "Hawaii vacation" --yes
    
    • --yes skips the interactive confirmation while still logging the preview.
    • Use --dry-run to inspect output programmatically without touching the filesystem.
  4. Undo the most recent AI batch if needed.

    renamer undo
    
    • Restores original filenames using the ledger entry created by the AI command.