[Geany] move a line up or down

Guillermo Biot guizzzmo at xxxxx
Tue Jan 27 11:31:54 UTC 2009


Ctrl+t / up / Ctrl+t moves the line up, but you can't move it down.

Before moving to linux I used notepad++, which implements the moving
line feature. It uses scintilla and is GPL, so maybe the code can be
taken from there.

On Mon, Jan 26, 2009 at 8:16 PM, spir <denis.spir at free.fr> wrote:
> Le Mon, 26 Jan 2009 16:13:04 +0100,
> Harold Aling <geany at sait.nl> a écrit :
>
>> On Mon, 26 Jan 2009 15:43:35 +0100, Frank Lanitz <frank at frank.uvena.de>
>> wrote:
>> > On Mon, 26 Jan 2009 15:28:58 +0100
>> > Harold Aling <geany at sait.nl> wrote:
>> >
>> >> * No selection: move current line [up|down]
>> >
>> > Maybe I just didn't understand the request correctly, but doesn't Ctrl+t
>> > the job?
>>
>> Nope...
>>
>> Ctrl-t switches the current line with the line above it. Using it twice
>> will not move the line 2 lines up, but restores the original position of
>> both lines.
>
> Just because the cursor does not follow the line up. This could be changed? (I find more logical the cursor to stick to the pointed line.) Or else Ctrl+t / up / Ctrl+t actually moves the line up twice.
>
> Denis
>
> ------
> la vida e estranya
> _______________________________________________
> Geany mailing list
> Geany at uvena.de
> http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
>



More information about the Users mailing list