Multi rename bonus - Trim leading/trailing spaces

Suggestions and feature requests.
Post Reply
Message
Author
freenylon
Posts: 16
Joined: 21.02.2021, 01:36

Multi rename bonus - Trim leading/trailing spaces

#1 Post by freenylon » 04.06.2025, 03:30

A handy little addition to multi rename's checkbox options would be "Trim spaces" to remove leading & trailing spaces.

Another bonus would be "Remove double spaces", because they're a pain - and does anyone ever really want a double space in a filename?

User avatar
Dreamer
Site Admin
Posts: 6519
Joined: 19.08.2007, 23:40

Re: Multi rename bonus - Trim leading/trailing spaces

#2 Post by Dreamer » 04.06.2025, 13:29

Try this workaround, backup your files first.

For File name use:

Code: Select all

@@@@@[n]
For File extension use:

Code: Select all

$$$$$[e]
For Search and replace - Search for use:

Code: Select all

@@@@@ |  | .$$$$$|@@@@@|$$$$$
For Replace with use:

Code: Select all

| |.||
Enable option ""Replace all occurrences" and disable option "Exclude extension".

Now click to Profiles, +, add name like "Trim leading/trailing spaces and remove double spaces" to this profile.

You can try to use this profile.

You can combine it with other options too, just use a separator "|".

For example: at the beginning of the fields: "Search for" add "_|" and for "Replace with" add " |".

BTW If anything goes wrong, you can still use menu - Command - Undo.

User avatar
Forez
Posts: 1524
Joined: 30.01.2016, 12:05
Location: In front of a PC monitor

Re: Multi rename bonus - Trim leading/trailing spaces

#3 Post by Forez » 23.03.2026, 23:59

IMHO a Profile will always be just a workaround. Therefore:


At minimum:

I propose adding new section named >>Trim double white spaces<< with mutually selectable options:

Code: Select all

● leading
● middle ones
● closing

As a moderate middle ground:

I propose adding section named >>Remove white spaces<< with mutually selectable options:

Code: Select all

● at beginning
● in middle
● at end
● everywhere [which would gray out / cancel any one of the 3 above]

● all
● multiple
● double
And these last 3 options would either
● change text to a single string
● turn every 3 and more adjacent white spaces into 1
● turn every 2 adjacent white spaces into 1


At maximum:

Options like these above would not be limited to / hardcoded for white spaces, but instead they would apply to a new box in which users could write whatever string of any kind of characters. So this would be like a regular expressions options with few basic possibilities - but for users who do not know how to write regular expressions. And thus name of this new section would have to be something like >>Replace (short) string occurrences<<

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 76 guests