Neil Hodgson wrote:
patrick müller:


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.


Yes Ctrl + Shift + Up/Down is similar to Shift + Up/Down but
always selects the full line. I didn't mentioned it because
i thought its not that useful/interesting

if there is no selection the command moves a
the current line up/down. if multiple lines are
selected, these lines are moved up/down.


   I'm not sure this is needed enough to go in the core editor so am
interested in other people's opinions. I'd use drag and drop or cut
and paste for these operations. The commands can also be added by the
application if wanted.


Yes drag & drop does the same but if you try to avoid
using the mouse this shortcuts are very useful. I think moving one or more lines is a very common task and there is no way to do it that easy. For me the line transpose command is to limited.

the implementation is of course really alpha. i'm sure the
methods above can be optimized. it would be fine if someone
can look at it. tips and critics are welcome.


   There is so much shared code between the two methods that they
should be merged.


You're right. I'll try to carry out the Cut/Paste commands
so that it won't affect the clipboard. Then i'll look if
i can merge the methods.

PS: from friday i'll be completely offline for possibly some
weeks, so please be patient. :)

-elias
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to