Skip to content

feat: batch rename with live preview, conflict checks and undo - #198

Merged
nextestudios merged 2 commits into
mainfrom
feature/71-batch-rename
Sep 27, 2026
Merged

nextestudios merged 2 commits into
mainfrom
feature/71-batch-rename

Conversation

@nextestudios

Copy link
Copy Markdown
Owner

Summary

  • Marked items → North → Renomear em lote… opens a dialog with a live preview (current → new name, problems first, capped at 12 lines + "e mais N").
  • Modes: numbering (base name, start, digits), find & replace (match-case toggle), prefix/suffix, case (lower/UPPER/Title). Text fields use the on-screen keyboard. Extensions never change.
  • Planning lives in the Application layer (BatchRenamePlan): the preview and the execution use the same plan. Invalid names, duplicates inside the batch and names already used in the folder (hidden items included) block the whole batch with a reason before touching the disk; no overwrite, no chained renames.
  • Applies through the operation queue with per-item results (history included) and registers a multi-step RenameBack undo record (feat: undo and redo reversible file operations #22); redo repeats the exact pairs. Undo now also handles case-only renames and describes multi-item renames.
  • Dialogs gained an optional StartOption (Start/Menu runs it; the footer shows the hint), used here as "Start to apply".

Tests

  • CI: BatchRenameJourneyTests (preview == result + undo restores all names; a name already in the folder blocks the batch and nothing changes).
  • Manual (docs/TESTING.md): readability of the preview at TV distance / 1280×720 with a real controller.

Closes #71

🤖 Generated with Claude Code

@nextestudios
nextestudios force-pushed the feature/71-batch-rename branch 2 times, most recently from f1f9663 to ee83bad Compare September 27, 2026 22:14
@nextestudios
nextestudios force-pushed the feature/71-batch-rename branch from 2325d7f to 16153c2 Compare September 27, 2026 22:19
@nextestudios
nextestudios merged commit 15d6dc8 into main Sep 27, 2026
1 check passed
@nextestudios
nextestudios deleted the feature/71-batch-rename branch September 27, 2026 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add batch rename

1 participant