Skip to content

Commit

Permalink
Update shift+escape to Hide Active Tool Window
Browse files Browse the repository at this point in the history
Perform the equivalent of IntelliJ ‘Hide Active Tool Window’ by hiding the sidebar when the sidebar, secondary sidebar or panel when each is focused.

Implements https://www.jetbrains.com/help/idea/tool-windows.html#hide_active
  • Loading branch information
grgar committed Apr 27, 2024
1 parent 7a9a83c commit 5a42c19
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 58 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,7 @@ alt+right | ctrl+right | Go to next editor tab | ✅
N/A | shift+cmd+] | Go to next editor tab | ✅
f12 | f12 | Go back to previous tool window | N/A
escape | escape | Go to editor (from tool window) | N/A
shift+escape | shift+escape | Hide active or last active window (Sidebar) | ✅
shift+escape | shift+escape | Hide active or last active window (Output) | ✅
shift+escape | shift+escape | Hide active or last active window (Problems) | ✅
shift+escape | shift+escape | Hide active or last active window (Debug Console) | ✅
shift+escape | shift+escape | Hide active or last active window (Terminal) | ✅
shift+escape | shift+escape | Hide active or last active window (Panel) | N/A
shift+escape | shift+escape | Hide Active Tool Window | ✅
ctrl+shift+f4 | cmd+shift+f4 | Close active run/messages/find/... tab | N/A
ctrl+shift+' | cmd+shift+' | Maximize Tool Window (Problems, Output, Debug Console, Terminal) | ✅
ctrl+g | cmd+l | Go to line | ✅
Expand Down
25 changes: 8 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -836,30 +836,21 @@

{
"key": "shift+escape",
"mac": "shift+escape",
"command": "workbench.action.toggleSidebarVisibility",
"when": "!editorFocus && !terminalFocus && !problemFocus && !inDebugRepl",
"intellij": "Hide active or last active window (Sidebar)"
},

{
"key": "shift+escape",
"mac": "shift+escape",
"command": "workbench.actions.view.problems",
"intellij": "Hide active or last active window (Problems)"
"when": "sideBarFocus",
"intellij": "Hide Active Tool Window"
},
{
"key": "shift+escape",
"mac": "shift+escape",
"command": "workbench.debug.action.toggleRepl",
"when": "debuggersAvailable",
"intellij": "Hide active or last active window (Debug Console)"
"command": "workbench.action.toggleAuxiliaryBar",
"when": "auxiliaryBarFocus",
"intellij": "Hide Active Tool Window"
},
{
"key": "shift+escape",
"mac": "shift+escape",
"command": "workbench.action.terminal.toggleTerminal",
"intellij": "Hide active or last active window (Terminal)"
"command": "workbench.action.togglePanel",
"when": "panelFocus",
"intellij": "Hide Active Tool Window"
},


Expand Down
43 changes: 8 additions & 35 deletions src/package-with-comment.json
Original file line number Diff line number Diff line change
Expand Up @@ -1077,49 +1077,22 @@
*/
{
"key": "shift+escape",
"mac": "shift+escape",
"command": "workbench.action.toggleSidebarVisibility",
"when": "!editorFocus && !terminalFocus && !problemFocus && !inDebugRepl",
"intellij": "Hide active or last active window (Sidebar)"
},
/*
{
"key": "shift+escape",
"mac": "shift+escape",
"command": "workbench.action.output.toggleOutput",
"when": "outputFocus",
"intellij": "Hide active or last active window (Output)"
},
*/
{
"key": "shift+escape",
"mac": "shift+escape",
"command": "workbench.actions.view.problems",
"intellij": "Hide active or last active window (Problems)"
"when": "sideBarFocus",
"intellij": "Hide Active Tool Window"
},
{
"key": "shift+escape",
"mac": "shift+escape",
"command": "workbench.debug.action.toggleRepl",
"when": "debuggersAvailable",
"intellij": "Hide active or last active window (Debug Console)"
"command": "workbench.action.toggleAuxiliaryBar",
"when": "auxiliaryBarFocus",
"intellij": "Hide Active Tool Window"
},
{
"key": "shift+escape",
"mac": "shift+escape",
"command": "workbench.action.terminal.toggleTerminal",
"intellij": "Hide active or last active window (Terminal)"
"command": "workbench.action.togglePanel",
"when": "panelFocus",
"intellij": "Hide Active Tool Window"
},
/*
{
"key": "shift+escape",
"mac": "shift+escape",
"command": "",
"when": "panelVisible",
"intellij": "Hide active or last active window (Panel)",
"todo": "not support panelVisible VS Code #14779"
},
*/
/*
{
"key": "ctrl+shift+f4",
Expand Down

0 comments on commit 5a42c19

Please sign in to comment.