Page 1 of 1

"Auto-replace invalid characters" doesn't work if empty

Posted: 29 Mar 2022 17:30
by John_C
1. Enable "Auto-replace invalid characters" in the "Configuration | Sort and Rename"
2. Make sure the field "Character to replace invalid characters..." in the ""Configuration | Templates" is empty
3. Create a new file and try to rename it to foo?bar (with the question mark)
4. The resulting file name will be just foobar

It was expected that the question mark will be replaced with the period instead of simply disappearing.
Auto-replace invalid characters

If ticked then invalid characters in pasted or typed input are replaced by the character defined at Character to replace invalid characters in dropped messages (in Templates). If no character is defined then "." (dot) is used.

Applies to inline rename in Tree and List as well as to dialog based rename (see above Use dialog to rename single items).
Return to step #2 and replace the empty field with something like @. Now replacing invalid characters works as expected. An attempt to enter the file name foo?bar will result to foo@bar

xy 23.00, win7

Re: "Auto-replace invalid characters" doesn't work if empty

Posted: 29 Mar 2022 17:33
by highend
Hover over

Configuration | Colors and Styles | Templates | Dropped Messages | Character to replace invalid characters in dropped messages

...

Re: "Auto-replace invalid characters" doesn't work if empty

Posted: 29 Mar 2022 19:06
by admin
Looks like this line in the help is outdated: If no character is defined then "." (dot) is used.

Re: "Auto-replace invalid characters" doesn't work if empty

Posted: 29 Mar 2022 19:37
by John_C
So it should be something like "If no character is defined then nothing is used", right?

Re: "Auto-replace invalid characters" doesn't work if empty

Posted: 29 Mar 2022 20:00
by admin
Yep.