Hi, thanks for the pointer. It worked! For reference, here are my key bindings, using your code:
{ "keys": ["alt+up"], "command": "move_amount", "args": { "by": "lines", "forward": false, "amount": 7 } },
{ "keys": ["alt+down"], "command": "move_amount", "args": { "by": "lines", "forward": true, "amount": 7 } },
{ "keys": ["shift+alt+up"], "command": "move_amount", "args": { "by": "lines", "forward": false, "amount": 7, "extend": true } },
{ "keys": ["shift+alt+down"], "command": "move_amount", "args": { "by": "lines", "forward": true, "amount": 7, "extend": true } },
And for even more reference, here is the code question (courtesy OdatNurd):
import sublime
import sublime_plugin
class MoveAmountCommand(sublime_plugin.TextCommand):
def run(self, edit, amount=1, **kwargs):
for _ in range(amount):
self.view.run_command("move", args=kwargs)
Thanks again!