Sublime Forum

Two shortcut questions

#1

I have two shortcut/macro questions:

When I push ctrl + l to select a line, it actually does the ‘find anywhere’ dropdown with a colon already placed in (for go to line in a file). Is this expected, have those shortcuts been changed? I’m in the newest ST 2 build on Windows.

Next question:

Is there ‘text bubbling’ functionality? Notepad++ and vim both had this nice feature to, with a cursor on a line, hit ctrl+(direction) and the line is moved up or down, basically in a ‘sort’ action. This would ideally also work for a block of text.

If there’s not bubbling native, what functions would I look into in the API to get it working?

Thanks for any answers!

0 Likes

#2

Ok, I’ve answered my own two questions:

Bubbling is handled by swap_line_up and swap_line_down. This works with single lines and selections.

A co worker had supplied me with a keybindings file that over-wrote ctrl+l with that behavior.

Sorry for the clutter!

0 Likes