patrick müller: > foremost i want to mention that i've no practical experience > with C/C++ and all the compiler stuff etc. But i like contributing > more than feature requests so i've tried to implement a tiny feature > myself. > > 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. > Behaviour: > 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. > 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. Neil _______________________________________________ Scite-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scite-interest
