Sublime Forum

Open recent project keyboard shortcut

#1

Hello!

I have a shortcut set to “quick switch project” that bring out the popup with the list of projects, but I would like a keyboard shortcut with the same list to OPEN a project in a new window. Basically to access the “open recent” menu from a popup but with the open function instead of switch. Is it possible?

Thanks

0 Likes

#2

Addition:
ST2 at least used to have a shortcut key-combo (Alt+P R) to open recent projects submenu.
Unfortunatelly ST3 is missing it (in “Open Recent” R is not underlined anymore, build 3126).

Please add this feature back (and the proposal of having hotkey-numbered entries in File/Project “Open Recent” is very appealing too).

0 Likes

#3

this can be easily added by overriding the Packages/Default/Main.sublime-menu file
just add "mnemonic": "R", under "caption": "Open Recent",

that will require a change in core ST though from what I can see :slightly_smiling:

0 Likes

#4

Thank You very much!
This was a little tricky in linux (missing Main.sublime-menu file).

So here are the steps:

  1. Go to {sublime install dir}/Packages (mine is /opt/sublime_text/Packages)
  2. Extract Main.sublime-menu from Default.sublime-package (this is a zip-archive) into ~/.config/sublime-text-3/Packages/Default/.
  3. Edit (as kingkeith kindly instructed).
  4. Restart sublime :slight_smile:

PS This is once-and-forever fix (until one deletes his own config-dir), though could You please add this as default for the future builds. It doesn’t seem to interfere or break anything, while greatly helps with menu navigation.

0 Likes

#5

As an aside, the easier way to do this is via PackageResourceViewer, which will allow you to open a file from any installed package. If you open a file from a sublime-package file and save it, it automatically becomes an override file in the appropriate place.

Also, as a shameless self plug, if you’re using package overrides you might want to give OverrideAudit a peek. It helps to warn you if the file you’re overriding (in this case Main.sublime-menu) gets updated by the package author, since in that case Sublime will keep using your version of the file and not tell you that there are potential updates.

1 Like