Add ability to manage dock size via command/shortcut (#31366)
Closes https://github.com/zed-industries/zed/issues/29856 This idea originates from https://github.com/microsoft/vscode/issues/158603. Adds a ```jsonc "ctrl-alt-0": "workspace::ResetActiveDockSize", "ctrl-alt--": ["workspace::DecreaseActiveDockSize", { "px": 0 }], "ctrl-alt-=": ["workspace::IncreaseActiveDockSize", { "px": 0 }], "ctrl-alt-)": "workspace::ResetOpenDocksSize", "ctrl-alt-_": ["workspace::DecreaseOpenDocksSize", { "px": 0 }], "ctrl-alt-+": ["workspace::IncreaseOpenDocksSize", { "px": 0 }], ``` set of actions to manipulate dock sizes: https://github.com/user-attachments/assets/0428f5ce-1156-449b-838f-a774b935458f Release Notes: - Add ability to manipulate dock size with `workspace::Decrease/IncreaseActiveDockSize`, `workspace::ResetActiveDockSize`, `workspace::Decrease/IncreaseOpenDocksSize` and `workspace::ResetOpenDocksSize` commands --------- Signed-off-by: Xavier Lau <x@acg.box> Co-authored-by: Kirill Bulatov <kirill@zed.dev>
This commit is contained in:
parent
f000dfebd2
commit
c15d02454e
3 changed files with 251 additions and 76 deletions
|
@ -557,6 +557,13 @@
|
|||
"ctrl-b": "workspace::ToggleLeftDock",
|
||||
"ctrl-j": "workspace::ToggleBottomDock",
|
||||
"ctrl-alt-y": "workspace::CloseAllDocks",
|
||||
"ctrl-alt-0": "workspace::ResetActiveDockSize",
|
||||
// For 0px parameter, uses UI font size value.
|
||||
"ctrl-alt--": ["workspace::DecreaseActiveDockSize", { "px": 0 }],
|
||||
"ctrl-alt-=": ["workspace::IncreaseActiveDockSize", { "px": 0 }],
|
||||
"ctrl-alt-)": "workspace::ResetOpenDocksSize",
|
||||
"ctrl-alt-_": ["workspace::DecreaseOpenDocksSize", { "px": 0 }],
|
||||
"ctrl-alt-+": ["workspace::IncreaseOpenDocksSize", { "px": 0 }],
|
||||
"shift-find": "pane::DeploySearch",
|
||||
"ctrl-shift-f": "pane::DeploySearch",
|
||||
"ctrl-shift-h": ["pane::DeploySearch", { "replace_enabled": true }],
|
||||
|
|
|
@ -624,6 +624,13 @@
|
|||
"cmd-r": "workspace::ToggleRightDock",
|
||||
"cmd-j": "workspace::ToggleBottomDock",
|
||||
"alt-cmd-y": "workspace::CloseAllDocks",
|
||||
// For 0px parameter, uses UI font size value.
|
||||
"ctrl-alt-0": "workspace::ResetActiveDockSize",
|
||||
"ctrl-alt--": ["workspace::DecreaseActiveDockSize", { "px": 0 }],
|
||||
"ctrl-alt-=": ["workspace::IncreaseActiveDockSize", { "px": 0 }],
|
||||
"ctrl-alt-)": "workspace::ResetOpenDocksSize",
|
||||
"ctrl-alt-_": ["workspace::DecreaseOpenDocksSize", { "px": 0 }],
|
||||
"ctrl-alt-+": ["workspace::IncreaseOpenDocksSize", { "px": 0 }],
|
||||
"cmd-shift-f": "pane::DeploySearch",
|
||||
"cmd-shift-h": ["pane::DeploySearch", { "replace_enabled": true }],
|
||||
"cmd-shift-t": "pane::ReopenClosedItem",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue