Sublime Forum

Open folder keyboard shortcut

#1

Hi,

I use “Open folder…” much more often than “Open file” and I’d like to be able to attach this to a keyboard shortcut, but there currently isn’t any way to do this. Can we get this to happen?

Related, why aren’t all menu functions assignable to keyboard shortcuts in the config file?

Thanks!

1 Like

#2

You should really check out Preferences > Key bindings - Default.

0 Likes

#3

The “prompt_open_folder” command should do what you’re looking for:

{ "keys": "ctrl+shift+o"], "command": "prompt_open_folder" },

In general, you can use sublime.log_commands(True) in the console to see everything that Sublime is doing.

3 Likes

#4

Hi,

What piece of code should I add to open the folder in a new window ?
Actually the code above open the folder in the same window.

Thanks.

0 Likes

#5

@nick1 you ar missing [
{ "keys": ["ctrl+shift+o"], "command": "prompt_open_folder" },

2 Likes