0

Command to show view (file?) and hide side bar

Kai Grossjohann hace 12 años actualizado por Brian Gallagher hace 12 años 1
Right now, in the side bar, I can hit Enter to focus the currently highlighted file.  I would like to have the option to also close the side bar.  (As if I had typed Super+K, Super+B after hitting Enter.)

Perhaps Ctrl+Enter or Super+Enter or Alt+Enter could do that.

If users think that closing the side bar is something they need more often, they could switch the two keybindings around.
+1
You can map the toggle_sidebar menu command to any keybinding you like (provided it's not already in your user settings).  
Just go to Preferences -> Keybindings - User
add this
{ "keys": ["ctrl+alt+["], "command": "toggle_side_bar" },
{ "keys": ["ctrl+alt+]"], "command": "toggle_minimap" }

Change ctrl+alt+] to whatever keybinding you'd like.  It overrides the default keybindings.  I have mine set to [ and ] to hide the sidebar and minimap.