Home Download Buy Blog Forum Support

Textmate - Command-left BOL, command-right EOL

Textmate - Command-left BOL, command-right EOL

Postby scifi on Tue Feb 14, 2012 4:34 am

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 http://www.sublimetext.com/docs/commands but none if it works so I assume must be for v1.

I'm looking for something like this --

Code: Select all
{ "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)
scifi
 
Posts: 3
Joined: Sun Feb 05, 2012 11:32 pm

Re: Textmate - Command-left BOL, command-right EOL

Postby atomi on Tue Feb 14, 2012 5:08 am

You nearly had it.
Code: Select all
{ "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.
atomi
 
Posts: 342
Joined: Thu Jan 20, 2011 5:06 pm
Location: Los Angeles CA US

Re: Textmate - Command-left BOL, command-right EOL

Postby jps on Tue Feb 14, 2012 5:30 am

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.
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot] and 29 guests