Home Download Buy Blog Forum Support

change key bindings for select line and select word

change key bindings for select line and select word

Postby terrani on Tue Sep 27, 2011 7:07 am

Hi,

I'm new to sublime on Mac OS Lion. I like to customize the default key bindings. I've successfully changed "delete line" by changing Preference -> Key Bindings.

I now like to change "select line" and "Select current word" key bindings to my own keybindings. I've looked at Preference->Key Bindings, but I couldn't find keybindings for those mentioned.

How do I change those key bindings?
terrani
 
Posts: 3
Joined: Tue Sep 27, 2011 7:04 am

Re: change key bindings for select line and select word

Postby natebeaty on Tue Sep 27, 2011 2:25 pm

http://www.sublimetext.com/docs/2/settings.html

& you can find all the current bindings by opening up the Key Bindings - Default file and searching for what you want to override. The one's you're looking for are on line 134:

Code: Select all
   { "keys": ["super+l"], "command": "expand_selection", "args": {"to": "line"} },
   { "keys": ["super+d"], "command": "expand_selection", "args": {"to": "word"} },


..change those to the keybindings you want and put them in Key Bindings - User.
natebeaty
 
Posts: 120
Joined: Wed Apr 06, 2011 8:28 pm
Location: Chicago, IL

Re: change key bindings for select line and select word

Postby terrani on Thu Sep 29, 2011 3:02 am

@natebeaty // thank you so much! exactly what i was looking for!
terrani
 
Posts: 3
Joined: Tue Sep 27, 2011 7:04 am


Return to General Discussion

Who is online

Users browsing this forum: Exabot [Bot], xinxla and 18 guests