move line up command feature

54 views
Skip to first unread message

xtian

unread,
Jul 29, 2009, 6:40:50 PM7/29/09
to scite-interest
I use the "move up" command (Ctrl+T) frequently. However, it seems
like it could be made a little more powerful.

If I select multiple lines and press the hotkey, I would expect that
all of the selected lines (or complete lines that contain part of the
selection) move up as a group.

another added feature might be that if I select a string contained in
a line that doesn't include beginning or end of line that the same
hotkey move that string foward a word.

this would make the "move up" command as flexible as the duplicate
command (Ctrl + D)

-XS

mathmhb@gmail

unread,
Jul 29, 2009, 8:35:43 PM7/29/09
to scite-i...@googlegroups.com
hi, XS, you may try our latest version of Sc1IDE (formerly SciTE LaTeX
IDE) available from http://code.google.com/p/scitelatexide/. Such features
have been integrated with our customized editor. You may also see similar
"Move Down","Move Right","Move Left" features. And maybe you will find
many more features which do not exist in other editors:-)
--

Best regards,

Hongbin Ma

Neil Hodgson

unread,
Jul 30, 2009, 5:44:02 AM7/30/09
to scite-i...@googlegroups.com
xtian:

> If I select multiple lines and press the hotkey, I would expect that
> all of the selected lines (or complete lines that contain part of the
> selection) move up as a group.

Another point of view for the Line Transpose command would be swap
an equivalent number of lines as were selected.

However, I think it would not be compatible enough to change in
this way or as you want. I'm also not that enthused about including
complex commands that can be implemented out of the basic commands
using scripts. There's enough disagreement over the behaviour of
simple commands so there will be even more for something like this. I
can imagine people wanting a transpose command that tries to intuit
the natural unit selected - character, word, sentence, statement, line
or block and swap it with the previous equivalent.

Neil

mozers

unread,
Jul 30, 2009, 9:14:16 AM7/30/09
to mathmhb@gmail
Thursday, July 30, 2009, 4:35:43 AM, Mathmhb wrote:

> hi, XS, you may try our latest version of Sc1IDE (formerly SciTE LaTeX
> IDE) available from http://code.google.com/p/scitelatexide/. Such features
> have been integrated with our customized editor. You may also see similar
> "Move Down","Move Right","Move Left" features. And maybe you will find
> many more features which do not exist in other editors:-)

Ok.
Only you forgot to say that this script is taken in SciTE-Ru and its author is codewarlock.
http://scite-ru.googlecode.com/svn/trunk/pack/tools/MoveLines.lua
Or did you mean another script?

--
mozers
<http://scite.net.ru>

mathmhb@gmail

unread,
Jul 30, 2009, 8:45:42 PM7/30/09
to scite-i...@googlegroups.com
Oh, yes! I just forgot to mention that Sc1IDE borrowed many features from
SciTE-Ru and revised some scripts from SciTE-Ru. The author information
can be found in all lua scripts:-) Just like many authors contribute to
great SciTE-Ru, the same happens to Sc1IDE. This is the power of open
source! Mozers, thanks for your reminder and your great efforts in
providing excellent SciTE-Ru:-)

--
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/

xtian

unread,
Aug 3, 2009, 4:51:53 PM8/3/09
to scite-interest


On Jul 30, 2:44 am, Neil Hodgson <nyamaton...@gmail.com> wrote:
>    However, I think it would not be compatible enough to change in
> this way or as you want. I'm also not that enthused about including
> complex commands that can be implemented out of the basic commands
> using scripts.

Good point. Thanks!

And thanks Hongbin Ma - I'll take a look at your code.
Reply all
Reply to author
Forward
0 new messages