Sublime Forum

Textmate - Command-left BOL, command-right EOL

#1

What’s the command/args to make command-left BOL and command-right EOL (mac osx, textmate style)?

I can’t find it anywhere in the docs- googling got me sublimetext.com/docs/commands but none if it works so I assume must be for v1.

I’m looking for something like this –

{ "keys": "super+left"], "command": "move_to", "args": {"position": "bol" } },
{ "keys": "super+right"], "command": "move_to", "args": {"position": "eol"} }

BTW, how do I probe the available commands using the python interpreter? dir() got me a bunch of stuff but not sure where to begin.

Thanks!! (great editor btw, tm2 had better be darn good if it wants to stay in the game)

0 Likes

#2

You nearly had it.

{ "keys": "super+left"], "command": "move_to", "args": {"to": "hardbol"} },
{ "keys": "super+right"], "command": "move_to", "args": {"to": "hardeol"} }

super+shift+left and super+shift+right will select using default movement.
I’m not sure how to change that.

0 Likes

#3

Command+Left will go to BOL by default - what’s happening for you? It’d be great if you could run sublime.log_commands(True) in the console, which will log the actual commands being run to the console.

0 Likes