Page 1 of 1

Rename: Add "Replace extension" option

Posted: 01 Jan 2021 23:01
by prino
Right now it takes two steps, first to remove the current one, then to add a new one. (Unless I'm missing something?)

An optional tick-box to allow just replace the current extension with the new one would be very desirable.

Re: Rename: Add "Replace extension" option

Posted: 01 Jan 2021 23:21
by jupe
You are missing something...

File | Rename Special | Set Extension...

Just enter the extension you want to change to = 1 step.

Re: Rename: Add "Replace extension" option

Posted: 01 Jan 2021 23:41
by prino
No, that sets the extension, without removing the old one, I want to replace the extension with a new one.

Re: Rename: Add "Replace extension" option

Posted: 01 Jan 2021 23:44
by highend
And you really did enter the new extension without a leading dot?

Re: Rename: Add "Replace extension" option

Posted: 04 Jan 2021 10:55
by prino
highend wrote: ↑01 Jan 2021 23:44 And you really did enter the new extension without a leading dot?
No, obviously I didn't...

Anyway, this is the same type of abuse I commit in the input file of my hitchhike statistics programs, where a "." in the departure time is just a separator of hours and seconds, but where a ":" indicates a departure after a ferry-crossing, where an "x" indicates a departure after crossing to the other side of the road, and where an "X" also indicates a departure after crossing to the other side of the road, but differently.

Re: Rename: Add "Replace extension" option

Posted: 04 Jan 2021 12:00
by admin
FYI, I use this to toggle webp / jpg:

Code: Select all

if (gpc(,"ext")=="webp") {renameitem("*.jpg")} elseif (gpc(,"ext")=="jpg") {renameitem("*.webp")};