18

I often use Ctrl+P to open files, but then I'd like to be able to have the file explorer expand its view so I can see where the file I opened is, and what other files are in the same directory.

Given I have a file open, is there a keyboard shortcut to navigate to that file in the file explorer?

Volker E.
  • 5,911
  • 11
  • 47
  • 64
Frank Schwieterman
  • 24,142
  • 15
  • 92
  • 130

1 Answers1

63

Use the "Reveal in Side Bar" option in the context menu (mouse right click).

The command is reveal_in_side_bar and you can create a key binding (Preferences > Key Bindings - Users). An example:

{ "keys": ["alt+."], "command": "reveal_in_side_bar" }

Regards

aanton
  • 5,572
  • 1
  • 23
  • 15
  • Thanks, is it possible to also switch to the sidebar? – Frank Schwieterman Jul 01 '12 at 18:22
  • 1
    @FrankSchwieterman Do you want to navigate in the sidebar using the arrow keys? If so, it is not easy :(. Read this post http://sublimetext.userecho.com/topic/23870-sidebar-folders-should-be-traversable-with-arrow-keys/#comment_118717 – aanton Jul 02 '12 at 14:00
  • 1
    @FrankSchwieterman I have found it. See this question: http://stackoverflow.com/questions/9646552/is-it-possible-to-chain-key-binding-commands-in-sublime-text-2 – aanton Jul 02 '12 at 20:33
  • Is there a way to find these kind of actions which is still unmapped with keys? – Dineshkumar Feb 11 '15 at 02:01
  • See http://stackoverflow.com/questions/15178358/how-to-use-sidebar-with-the-keyboard-in-sublime-text-2 – Kirin Yao Mar 05 '15 at 01:44