Notepad2e icon indicating copy to clipboard operation
Notepad2e copied to clipboard

Select To Matching Brace to include brackets

Open ProgerXP opened this issue 4 years ago • 4 comments
trafficstars

Extend this command when FindSelectToMatchingBraceMode is enabled (#293) so that if current selection equals bracketed contents it extends selection by including surrounding brackets (as if FindSelectToMatchingBraceMode were disabled).

<(a|)>

First Ctrl+Shift+B selects a. Second selects (a) because current selection already equals selection the command would produce (a).

ProgerXP avatar Aug 03 '21 18:08 ProgerXP

Done.

cshnik avatar Sep 28 '21 15:09 cshnik

Bug: extension includes up to one trailing symbol:

([a]).

Press Ctrl+Shift+B to see [(a).] selected instead of [(a)].`.

ProgerXP avatar Aug 21 '22 14:08 ProgerXP

Fixed.

cshnik avatar Sep 08 '22 18:09 cshnik

Expansion needlessly depends on caret position:

([|a])
([a|])

It is expected that in both cases Ctrl+Shift+B would select the outer brackets but the second case currently only moves the caret to the opposite side, requiring one more Ctrl+Shift+B to select all.

ProgerXP avatar Sep 15 '22 18:09 ProgerXP

Fixed.

cshnik avatar Oct 29 '22 09:10 cshnik

Selection isn't extended anymore at all:

(|a) -> ([a]) -> must be [(a)] but remains ([a])

ProgerXP avatar Oct 31 '22 10:10 ProgerXP

Fixed.

cshnik avatar Nov 07 '22 16:11 cshnik

if current selection equals bracketed contents it extends selection by including surrounding brackets

Bug in R261 7b1cf6f

(a[b])

Ctrl+Shift+B selects [(ab)] rather than ([ab]) even though current selection <does not> equals bracketed contents.

ProgerXP avatar Dec 15 '22 07:12 ProgerXP

The above issue has been fixed in some commit.

ProgerXP avatar May 02 '23 09:05 ProgerXP