feat(browser): add Finder-style batch rename dialog - #1044
Draft
JoeJoeflyn wants to merge 1 commit into
Draft
JoeJoeflyn wants to merge 1 commit into
JoeJoeflyn wants to merge 1 commit into
Conversation
JoeJoeflyn
force-pushed
the
feat/batch-rename
branch
from
September 15, 2026 11:58
b8a2eae to
9e8d0de
Compare
This was referenced Sep 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds Finder-style batch rename: select 2+ files, right-click, and choose Rename N items…. The dialog offers the same three modes as Finder — Replace Text (literal find/replace), Add Text (before/after, inserted before the extension), and Format (Counter zero-padded to 5 digits, Index, or Date with time, all with start number, before/after placement, and extension preserved) — plus a live
old → newexample line.Numbering follows selection order (anchor first), so a bottom-to-top range numbers from the bottom. Date stamps carry the time like Finder; since a batch lands within one second, every Date item also gets its position number so the whole batch renames instead of stalling on duplicates.
The engine is one provider call per batch (
rename_batch), not N sequential operations: monitor events stay deferred and flush in a single consolidated update per directory (full reload only past 64 changes), with one completion event and one undo entry. Per-item failures collapse into a single summary dialog. Single renames and whole batches are undoable with Ctrl+Z; records whose current name is gone are dropped, and collisions fail safely instead of overwriting.Visual evidence
Pending — please attach a short clip via the GitHub editor (multi-select → Rename N items… → each mode with the live example, plus Ctrl+Z after a batch).
How to test
IMG, replace withtrip), Add Text after name, and Format → Counter from 7.Expected result: the example line previews the first file's new name; on Rename every file renames (
trip 00007.jpg, …), extensions kept, failures (if any) reported once. Undo restores the original names.Related issue
N/A