4 ms·
Very nice, I'm copying that one! You don't actually have to use macros for that. This will suffice (in your .sublime-keymap): {"keys": ["alt+up"], "command
by lobster_johnson 14y ago
Very nice, I'm copying that one! You don't actually have to use macros for that. This will suffice (in your .sublime-keymap):
{"keys": ["alt+up"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": false}},
{"keys": ["alt+down"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": true}},
{"keys": ["shift+alt+up"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": false, "extend": true}},
{"keys": ["shift+alt+down"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": true, "extend": true}},
(Changed it to alt instead of ctrl because that's how I like it.)
- frou_dh 14y agoOops. Right enough. It was in its own file because before I knew about stops+empty_line, the macro was simply a compound equivalent to pressing up 4 times.