Rectangular selection in 2.01

3 views
Skip to first unread message

Philippe Lhoste

unread,
Sep 9, 2009, 4:53:00 PM9/9/09
to scintilla...@googlegroups.com
Today I made the jump from 1.76 to 2.01 to have the nifty new
rectangular and disjoint selections.
I must confess I haven't followed closely the discussions on the topic,
waiting for the feature to stabilize. Perhaps I should have used the
latest archive (I use the official one).
Anyway, I found out I can no longer make a rectangular selection with
Alt+Shift+Click at the opposite corner of the caret position (ie. click
at one corner, Alt+Shift+Click at the other, get the area delimited by
the two clicks as a rectangular selection).
Is it intended, ie. is it a technical limitation, or is it a bug?
In the latter case, it would be nice to have it back.
Thanks.

--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --

Neil Hodgson

unread,
Sep 10, 2009, 8:21:08 AM9/10/09
to scintilla...@googlegroups.com
Philippe Lhoste:

> Anyway, I found out I can no longer make a rectangular selection with
> Alt+Shift+Click at the opposite corner of the caret position (ie. click
> at one corner, Alt+Shift+Click at the other, get the area delimited by
> the two clicks as a rectangular selection).
> Is it intended, ie. is it a technical limitation, or is it a bug?

It is a bug.

Neil

Philippe Lhoste

unread,
Sep 11, 2009, 7:32:52 AM9/11/09
to scintilla...@googlegroups.com
On 10/09/2009 14:21, Neil Hodgson wrote:
> It is a bug.

...
Should I dive into code? Long time I haven't hacked Scintilla... Forgot most of my C++
knowledge, I hack mostly Java (and JavaFX) code lately.

Funny thing: I found a strange workaround.
Click on top-left corner. Shift+Alt+click on bottom-right one (no selection). Shift+click
again on top-left corner. Got it! o_O

Strange thing:
Do a rectangular selection. Hit Delete. Hit either F5 (run) or Ctrl+F7 (compile).
Back from the console window (where results are displayed), we get a rectangular selection
(of more or less twice the width of the previous one).

BTW: I found out that tab re-ordering went into that version. Great thing, I wished to
have it for years. Thanks, mozers, for the patch (well, this remark should go to SciTE
list...).

Neil Hodgson

unread,
Sep 12, 2009, 3:14:57 AM9/12/09
to scintilla...@googlegroups.com
Philippe Lhoste:

> Should I dive into code? Long time I haven't hacked Scintilla... Forgot most of my C++
> knowledge, I hack mostly Java (and JavaFX) code lately.

That'd be good.

> Funny thing: I found a strange workaround.
> Click on top-left corner. Shift+Alt+click on bottom-right one (no selection). Shift+click
> again on top-left corner. Got it! o_O

Most of the code will still be there, it will just have been
disturbed a bit by the new features.

> Strange thing:
> Do a rectangular selection. Hit Delete. Hit either F5 (run) or Ctrl+F7 (compile).
> Back from the console window (where results are displayed), we get a rectangular selection
> (of more or less twice the width of the previous one).

The rectangular selection state should probably be thinned to zero
width after the delete.

> BTW: I found out that tab re-ordering went into that version. Great thing, I wished to
> have it for years. Thanks, mozers, for the patch (well, this remark should go to SciTE
> list...).

Double-clicking on a tab now closes it which looks like a bug to me.

Neil

Neil Hodgson

unread,
Oct 15, 2009, 6:32:14 AM10/15/09
to scintilla...@googlegroups.com
Philippe Lhoste:

> Anyway, I found out I can no longer make a rectangular selection with
> Alt+Shift+Click at the opposite corner of the caret position (ie. click
> at one corner, Alt+Shift+Click at the other, get the area delimited by
> the two clicks as a rectangular selection).

This should now be fixed in CVS.

> Strange thing:
> Do a rectangular selection. Hit Delete. Hit either F5 (run) or Ctrl+F7 (compile).
> Back from the console window (where results are displayed), we get a rectangular selection
> (of more or less twice the width of the previous one).

I did reproduce this at some stage but can't with current CVS or
with 2.0 or 2.01.

Also fixed bug with moving to start or end of rectangular selection
by pressing left or right key.

Shift+Alt+Down will now move through wrapped lines.

Neil

Reply all
Reply to author
Forward
0 new messages