https://bugs.kde.org/show_bug.cgi?id=460626

--- Comment #4 from Méven <[email protected]> ---
Git commit e9eb4155fbcaeb8ef8f785458d534fe62c6cc882 by Méven Car.
Committed on 30/09/2026 at 10:37.
Pushed by meven into branch 'master'.

renamefiledialog: let Enumerate keep the old file name

Enumerate replaced the whole name with the template, so numbering a set of
files threw away what
they were called. A choice next to the template puts the numbered text before
or after the old
name instead, and keeps the extension the way Add text already does. Replacing
the name stays the
default.

Each choice starts from its own template, #_ before the name and _# after it,
where a separator
between the number and the name is what is wanted. Switching the choice
rewrites the template as
long as it is still the one the dialog filled in, and leaves a template that
was typed over it
alone.

The sequence of # is only needed where the name is dropped. Where the old name
is part of the
result it keeps the new names apart on its own, so a template without a number
is no longer
refused there.

M  +105  -0    autotests/renamefiledialogtest.cpp
M  +74   -22   src/widgets/renamefiledialog.cpp

https://invent.kde.org/frameworks/kio/-/commit/e9eb4155fbcaeb8ef8f785458d534fe62c6cc882

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to