[Geany-devel] Small match brace change proposition

Dimitar Zhekov hamster at xxxxx
Thu May 6 14:42:24 UTC 2010


Hi,

What do you think about changing the match brace function a bit, making
it work the same as in SciTE? That is:

1. When the cursor is before/on an opening brace, MB should move it
after the closing brace, and when it's before/on a closing brace, MB
should move it after the opening brace. This way, the cursor will be
moved symetrically inside/outside the braced area. Currently, invoking
MB twice, when the cursor is after an opening/closing brace, does not
return it to the original position.

2. With an expression like ((int) (5)), when the cursor is between the
two closing braces, the opening brace for 5 is highlighted, but MB
matches the opening brace for the entire expression. Either the brace
before 5 should be matched (as in SciTE, implemented in the patch), or
the outer braces should be highlighted.

Despite the long description, the change is quite small.

--
E-gards: Jimmy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: match-brace.diff
Type: text/x-diff
Size: 943 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20100506/7fbec183/attachment.diff>


More information about the Devel mailing list