Files
Bartosz 821a35a8aa Browser: rename several selected bodies at once, numbering the rest (#12341) (#12526)
* claim: #12341

* Browser: rename several selected bodies at once, numbering the rest (#12341)

body.rename takes `bodies`, a list of body names, in place of `body`: each
body in turn takes the first of name, name (2), name (3)... that no other
body has. It is one command, so one undo step, and a refused rename leaves
every body as it was. F2 and the body menu's Rename work on a selection of
several bodies, also from a browser row that is part of that selection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Browser: Rename keeps renaming one body; Rename Selected Bodies renames the selection (#12341)

Review found that Rename on a browser row inside a selection of several
bodies renamed the whole selection, which changed what Rename did. Rename is
back to the body the menu is for, and a new Rename Selected Bodies item does
what F2 does. numbered_names keeps the taken names in hash sets, so a long
list does not take cubic time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 12:14:26 +00:00
..