Abhijit Sarkar
Abhijit Sarkar

Reputation: 24518

User key bindings in Sublime Text 3 doesn't work

I'd like to customize some of the Sublime Text 3 keybindings to mimic IntelliJ IDEA. One of them is opening a file from the current project, also known as Goto Anything in Sublime jargaon. I followed the instructions in this answer to find out that the default key binding for "Goto Anything" is ⌘ + p on a Mac, like so:

{ "keys": ["super+p"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} } 

I added a new keybinding as follows:

[
    { "keys": ["shift+shift"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} }
]

It, however, doesn't work; pressing shift twice in rapid succession does precisely nothing. When I open the console, I see the following message:

Unable to open /Users/me/Library/Application Support/Sublime Text 3/Packages/Default/Default (OSX).sublime-keymap

According to this ticket, this message is harmless but misleading, and is just an indication that Sublime is opening a file.

What's wrong then?

Upvotes: 0

Views: 876

Answers (1)

Abhijit Sarkar
Abhijit Sarkar

Reputation: 24518

OP here; I found this post in Sublime blog.

ST doesn't support using only modifier keys in a keybinding.

Upvotes: 1

Related Questions