patrick müller (aka elias) wrote:
i've added 2 new commands to the scintilla editor:
Editor::SelectionMoveDown (keys: <alt> + <shift> + <down>)
Editor::SelectionMoveUp (keys: <alt> + <shift> + <up>)
>>>
There are actually 4 new commands in the patch: Alt+Up, Alt+Down,
Ctrl+Shift+Up, and Ctrl+Shift+Down.
Alt+Shift+Up/Down are already used for rectangular selection...
Rectangular selection is strg + shift + up/down.
strg is the German for Ctrl, right?
Perhaps you have redefined these keys, but on the official Scintilla
release I have, rectangular selection is always defined with Alt+Shift:
{SCK_DOWN, SCI_ASHIFT, SCI_LINEDOWNRECTEXTEND},
{SCK_UP, SCI_ASHIFT, SCI_LINEUPRECTEXTEND},
{SCK_LEFT, SCI_ASHIFT, SCI_CHARLEFTRECTEXTEND},
{SCK_RIGHT, SCI_ASHIFT, SCI_CHARRIGHTRECTEXTEND},
{SCK_HOME, SCI_ASHIFT, SCI_VCHOMERECTEXTEND},
{SCK_PRIOR, SCI_ASHIFT, SCI_PAGEUPRECTEXTEND},
{SCK_NEXT, SCI_ASHIFT, SCI_PAGEDOWNRECTEXTEND},
This can be useful for small moves, since you don't need to clutter the
clipboard nor to reach for the mouse, as lot of people like keyboard
only operations.
ACK!
:-) Can't you copy the lines in memory?
The problem is to remember to use it...
I think its useful in more cases than i.e. ctrl + t.
rather it may render the ctr + t command useless,
because the other is more powerful and flexible
Right. With Ctrl+T, you have to remember if it exchange the current line
with the previous or the next... :-)
Well, if correctly implemented (smart shortcut keys, no use of
clipboard, move line where the caret is without first selecting it, move
group of selected lines even if partial selection, without losing the
selection, etc.), I may get used to use it...
--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest