Hi,
I just started using geany. I wonder if there is a way to move up or down an entire line. I mean, to move the line where the cursor is via a shortcut. If the answer is no, would it be a scintilla feature or can it be implemented in geany?
I find it very useful, specially when combined with line duplication.
Guillermo
On Mon, 26 Jan 2009 01:51:37 +0100 Guillermo Biot guizzzmo@gmail.com wrote:
I just started using geany. I wonder if there is a way to move up or down an entire line. I mean, to move the line where the cursor is via a shortcut. If the answer is no, would it be a scintilla feature or can it be implemented in geany?
Not currently, but we could add it. Sounds useful.
Regards, Nick
On Tue, 27 Jan 2009 00:45:31 +1100, Ross McKay rosko@zeta.org.au wrote:
Nick Treleaven wrote:
Not currently, but we could add it. Sounds useful.
Yes please :) very useful feature when rearranging code.
May I expand this request with the following: * No selection: move current line [up|down] * Multi-line selection: move all lines [up|down]
-H-
On Mon, 26 Jan 2009 15:28:58 +0100 Harold Aling geany@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?
Cheers, Frank
Am Montag, den 26.01.2009, 15:43 +0100 schrieb Frank Lanitz:
On Mon, 26 Jan 2009 15:28:58 +0100 Harold Aling geany@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?
When reading the first mail from Guillermo i had this thought too, but it doesn't. Ctrl+T just switches two lines and does not move the line or the marked lines up or down.
But well, i would have said Shift+[Arrow|PgUp|PgDwn|Home|End] to mark the code, Ctrl+X to cut, move the cursor, Ctrl+V to paste would do the job too.
Anyway, a shortcut to move a line up or down would make this easier, so i think this request is a good idea. :)
Regards,
On Mon, 26 Jan 2009 15:43:35 +0100, Frank Lanitz frank@frank.uvena.de wrote:
On Mon, 26 Jan 2009 15:28:58 +0100 Harold Aling geany@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.
-H-
On Mon, 26 Jan 2009 16:13:04 +0100 Harold Aling geany@sait.nl wrote:
On Mon, 26 Jan 2009 15:43:35 +0100, Frank Lanitz frank@frank.uvena.de wrote:
On Mon, 26 Jan 2009 15:28:58 +0100 Harold Aling geany@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.
Ah... now I got the request ;)
Thanks, Frank
Le Mon, 26 Jan 2009 16:13:04 +0100, Harold Aling geany@sait.nl a écrit :
On Mon, 26 Jan 2009 15:43:35 +0100, Frank Lanitz frank@frank.uvena.de wrote:
On Mon, 26 Jan 2009 15:28:58 +0100 Harold Aling geany@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
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@free.fr wrote:
Le Mon, 26 Jan 2009 16:13:04 +0100, Harold Aling geany@sait.nl a écrit :
On Mon, 26 Jan 2009 15:43:35 +0100, Frank Lanitz frank@frank.uvena.de wrote:
On Mon, 26 Jan 2009 15:28:58 +0100 Harold Aling geany@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@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany