Home Download Buy Blog Forum Support

OSX: Make Ctrl+A do like Command+Left

OSX: Make Ctrl+A do like Command+Left

Postby hibbelig on Tue Dec 27, 2011 1:21 pm

On OSX, Command+Left goes to the first non-whitespace character on a line, when invoked again it goes to the beginning of the line. Ctrl+A always goes to the beginning of the line.

I couldn't find any binding for Command+Left (nor Ctrl+A for that matter) in Default/Default (OSX).keymap, so I don't know where to look.
hibbelig
 
Posts: 77
Joined: Wed Dec 21, 2011 11:24 pm

Re: OSX: Make Ctrl+A do like Command+Left

Postby hibbelig on Wed Dec 28, 2011 12:48 am

sublime.log_commands(True) did the trick: I executed that in the console, then hit Ctrl+A and hit Super+Left and could see the difference. Then I added the following entries to Packages/User/Default (OSX).sublime-keymap, and Bob was my uncle.

Code: Select all
   { "keys": ["ctrl+a"], "command": "move_to", "args": {"to": "bol"}},
   { "keys": ["ctrl+e"], "command": "move_to", "args": {"to": "eol"}}
hibbelig
 
Posts: 77
Joined: Wed Dec 21, 2011 11:24 pm


Return to General Discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 24 guests