Moving lines with keyboard shortcut

Started by Grzeniu, May 19, 2017, 07:48:23 PM

Previous topic - Next topic

Grzeniu

Hi there

It's been a while since I switched to Hippo when coding at home, yet at my workplace I still use Notepad++. One feature that I use extensively ini Notepad++ is pressing Ctrl+Shift+Up/Down to move the selection or the line at which the cursor currently is. When I come back home, I am happy to use several goodies that HE has as compared to Notepad++, yet I really lack the aforementioned function.

In HippoEdit it seems that Ctrl+Shift+Up/Down does almost the same as Shirt+Up/Down.. Is such a feature of moving selection/line available and I just simply need to bind a keystroke to it or there is no way to do it in HE as of yet?

regards,
Greg

alex

Hi Greg,

Ctrl+Shift+Up/Down does a line based selection.

The function you search is Edit.MoveLinesUp/MoveLinesDown -> http://wiki.hippoedit.com/editing/commands/move-lines.

BR, Alex.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

Grzeniu

Quote from: alex on May 19, 2017, 11:53:29 PM
Hi Greg,

Ctrl+Shift+Up/Down does a line based selection.

The function you search is Edit.MoveLinesUp/MoveLinesDown -> http://wiki.hippoedit.com/editing/commands/move-lines.

Thank you, Alex! That's what one calls proper support :)

The Ctrl+Alt+Arrow shortcut rotates my screen orientation so I did not notice that this shortcut does the trick when testing key combinations. Simply perfect!

Also, changing ExtLines to SelectLines which makes the selection automatically extend to whole lines also is a great thingy for me, as so far I usually went with arrows to the proper beginning line of the selection, had to press "home" to get to start of the line and only then "shift+down" to select what I wanted. That was pretty annoying, especially when working on laptops that have the "home" together with a number on the numpad and the NumLock is locked - I usually got a "7" instead of going to the start of the line.

Then, solving one request, you have also indirectly helped me by making me stumble upon the SelectLines :)

Thanks, regards!
Greg