Add command "Focus Active Editor" #36350
Closed
hisbvdis
started this conversation in
Config, Settings and Keymaps
Replies: 1 comment
-
|
To note, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
After focused panel changing it is useful to come back to the editor, that was last active.
VSCode command:
workbench.action.focusActiveEditorGroupFor example, when the editor is focused, I want to set keybinding to change terminal panel height.
So, I need to specify the following keybindings:
3. Come back to the active editor
I had this keybinding in the VSCode:
{ "key": "ctrl+alt+=", "command": "runCommands", "args": { "commands": [ "workbench.action.focusSideBar", "workbench.action.increaseViewSize", "workbench.action.increaseViewSize", "workbench.action.focusActiveEditorGroup" ] }, "when": "editorFocus || !panelFocus" },And I try to do the same in Zed
{ "context": "!Terminal", "bindings": { "ctrl-`": "terminal_panel::ToggleFocus" } }, { "context": "Terminal", "bindings": { "ctrl--": [ "workspace::DecreaseActiveDockSize", { "px": 200 } ] } }, { "context": "!Terminal", "bindings": { "ctrl--": ["workspace::SendKeystrokes", "ctrl-` ctrl-- ctrl-e"] } },I feel lack of the command, that allows to come back to the last active editor
Beta Was this translation helpful? Give feedback.
All reactions