Sublime Forum

Quick Switch Project shortcut doesn't work anymore

#1

It seems that the shortcut Ctrl + Alt + P doesn’t work anymore.
Someone have an issue please ?

0 Likes

Quick Switch Project Shortkey not working in 3103
Sublime Text 3 build 3103 shortcut lost
International keyboard layout
#2
5 Likes

#3

The command text should be in the update notes. I use this frequently and it was annoying to have to try to track down the command keyword to get the shortcut back in.

0 Likes

#4

To save you some time, add this to your user keybindings:

{ “keys”: [“ctrl+alt+p”], “command”: “prompt_select_workspace” }

It was difficult to find the command, it doesn’t appear to be documented except in some forum comment somewhere.

4 Likes

SFTP WBond plugin - shortcut
#5

The following does not work for me, nothing pops up. Windows 7, Swedish keyboard layout
{ "keys": ["ctrl+alt+p"], "command": "prompt_select_workspace" }

0 Likes

#6

The command is correct, the rest must be a conflict with either your keyboard, another piece of software using those key bindings, or how/where you have entered the key binding.

0 Likes

#7

Every menu item corresponds to a command. The easiest way to find which menu item maps to which command is to enter sublime.log_commands(True) in the console and invoke the command as you normally would. That works for key bindings, mouse bindings and the command palette too, of course.

The other way is to track down where the resource is specified (everything in ST that’s calling a command has this referenced somewhere), e.g. by inspecting Default/Main.sublime-menu.

The docs will include this information at some point.

3 Likes

#8

Thanks for the log_commands tip!

I finally found it, my mistake, I did not use [ to wrap around the keybindings… To anyone as clumsy as me, my file now looks like

[ { "keys": ["ctrl+alt+p"], "command": "prompt_select_workspace"} ]

2 Likes

#9

@FichteFoll Thanks, you’re a life saver.

0 Likes

#10

Thanks! was glad to be able to add it back!

0 Likes

#11

Thank you very much bizoo

0 Likes

#12

My default .sublime-keymap already contains the line

{ "keys": ["super+ctrl+p"], "command": "prompt_select_workspace" },

but I had to copy and paste it into my User keymap for it to work.

Is this a bug?

0 Likes

#13

It may be that a package overrode the binding. You can check with sublime.log_commands(True) in the console which command is actually run.

0 Likes

#14

Thanks It’s Work

0 Likes

#16

Have a look at this plugin: https://github.com/math2001/st-user-package/blob/master/sublime-command-runner.py

0 Likes

#17

It works for my Windows environment. I would like to note a tip here that
{ "keys": ["alt+ctrl+p"], "command": "prompt_select_workspace"},
does not work. This has just different key order alt+ctrl instead of ctrl+alt.

0 Likes