Home Download Buy Blog Forum Support

User specific Key Binding not working for Goto Line

User specific Key Binding not working for Goto Line

Postby indiver on Fri Mar 04, 2011 10:38 am

Hi

I'm trying to setup the user-specific keybinding for the Goto Line command.

In the user-specific file: /Users/indy/Library/Application Support/Sublime Text 2/Packages/User/Default (OSX).sublime-keymap

I'm adding this:

{ "keys": ["super+shift+g"], "command": "goto_line" }

It does not work. I've tried other key combinations as well. None of them work.

If I change just the command to another command that is already registered, the new combination starts working for that command, but not for Goto Line.

For example, if I change the New Window shortcut

{ "keys": ["super+shift+g"], "command": "new_window" }

It works... But if I change the command to "goto_line", it is not respected.

Is goto_line the correct command?

Thanks

PS: I've even tried to setup Mac keyboard shortcut, which work for most applications on Mac. However, for Sublime Text editor specifying Mac keyboard shortcuts doesn't seem to work.
indiver
 
Posts: 30
Joined: Fri Mar 04, 2011 5:40 am
Location: Auckland, New Zealand

Re: User specific Key Binding not working for Goto Line

Postby jps on Fri Mar 04, 2011 11:44 am

The command of interest is prompt_goto_line.

Can you give more details about the mac keyboard shortcut that didn't work? In general the Cocoa key bindings are well supported.
jps
Site Admin
 
Posts: 3071
Joined: Wed Mar 19, 2008 12:33 pm

Re: User specific Key Binding not working for Goto Line

Postby indiver on Fri Mar 04, 2011 6:37 pm

Thanks Jon for the quick reply. Much appreciated.

When I use "prompt_goto_line" it works! I was obviously using the wrong command: "goto_line".

Is there a some place where I can see all the possible commands?

Indy
indiver
 
Posts: 30
Joined: Fri Mar 04, 2011 5:40 am
Location: Auckland, New Zealand

Re: User specific Key Binding not working for Goto Line

Postby jps on Fri Mar 04, 2011 9:40 pm

Best option is to just look through the key binding files for the moment, documentation on the commands is still in progress
jps
Site Admin
 
Posts: 3071
Joined: Wed Mar 19, 2008 12:33 pm


Return to Technical Support

Who is online

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