Sublime Forum

Shortcut for "New View into File"?

#1

I’ve been using it for a while, and “New View into File” is the one I’m using quite often.
So my question is that is it possible to have a shortcut for that?

I searched the default key binding, plugin API, but found nothing.

0 Likes

#2

In order to create a key binding, you need the name of a command said key binding will trigger.

The main menu is defined in Packages/Default/Main.sublime-menu. If you open that file and search for “new view into file”, you will find that that particular entry has a command “clone_file” attached to it. You can now create your key binding like so:

{ "keys": "f11"], "command": "clone_file" }
0 Likes

#3

I didn’t notice that. Thanks a ton! :smile:

0 Likes