Page 1 of 1

Unexpected "auto-brackets" in file rename (not bug but ??)

Posted: 25 Nov 2024 03:26
by Malarki
The following happens only in my XYplorer (26.60.0312 with years of setting adjustments). It doesn't happen in a ::fresh instance. What I need is some clue as to the setting or tweak that causes this behavior, because I can't find one.

Behavior: I have the file "bbb.txt". I select it and enter rename mode (eg. w F2). Then I highlight the "bbb" part, and press left-bracket: [. Instead of the "bbb" being replaced by "[", it not only remains but picks up left and right brackets. Thus: [bbb].txt

In Configuration | Rename I have "Preselect name" enabled, but disabling it makes no difference.

Any ideas?

Re: Unexpected "auto-brackets" in file rename (not bug but ??)

Posted: 25 Nov 2024 03:30
by jupe
You've enabled it via tweak, to disable,

SurroundSelection=0

Re: Unexpected "auto-brackets" in file rename (not bug but ??)

Posted: 25 Nov 2024 03:57
by Malarki
Thanks! That was it. Must've set that ages ago. You've saved me a lot of looking!

Re: Unexpected "auto-brackets" in file rename (not bug but ??)

Posted: 25 Nov 2024 10:26
by admin
No need to tweak: Configuration | General | Controls & More | Miscellaneous | Enable surround selection

Re: Unexpected "auto-brackets" in file rename (not bug but ??)

Posted: 25 Nov 2024 16:36
by Malarki
Maybe the "Surround Selection" checkbox should be in the "Sort and Rename" group of Controls, if it only comes into play on a rename.

Re: Unexpected "auto-brackets" in file rename (not bug but ??)

Posted: 25 Nov 2024 16:39
by admin
It also works in the address bar and all edit boxes, e.g. in scripting.

Re: Unexpected "auto-brackets" in file rename (not bug but ??)

Posted: 25 Nov 2024 17:16
by Malarki
:tup:

Re: Unexpected "auto-brackets" in file rename (not bug but ??)

Posted: 26 Nov 2024 04:50
by jupe
I totally missed that getting added to the UI...