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

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Malarki
Posts: 209
Joined: 03 Dec 2019 02:51
Location: Windows 10 x64; 100% Scaling

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

Post 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?

jupe
Posts: 3446
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

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

Post by jupe »

You've enabled it via tweak, to disable,

SurroundSelection=0

Malarki
Posts: 209
Joined: 03 Dec 2019 02:51
Location: Windows 10 x64; 100% Scaling

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

Post by Malarki »

Thanks! That was it. Must've set that ages ago. You've saved me a lot of looking!

admin
Site Admin
Posts: 66091
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post by admin »

No need to tweak: Configuration | General | Controls & More | Miscellaneous | Enable surround selection

Malarki
Posts: 209
Joined: 03 Dec 2019 02:51
Location: Windows 10 x64; 100% Scaling

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

Post 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.

admin
Site Admin
Posts: 66091
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post by admin »

It also works in the address bar and all edit boxes, e.g. in scripting.

Malarki
Posts: 209
Joined: 03 Dec 2019 02:51
Location: Windows 10 x64; 100% Scaling

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

Post by Malarki »

:tup:

jupe
Posts: 3446
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

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

Post by jupe »

I totally missed that getting added to the UI...

Post Reply