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

30 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Quickstart AI Rename Command
1. **Preview AI suggestions before applying.**
```bash
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.**
```bash
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.**
```bash
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.**
```bash
renamer undo
```
- Restores original filenames using the ledger entry created by the AI command.