ZIm/crates/workspace/src
Xavier Lau c15d02454e
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>
2025-07-02 10:27:52 +00:00
..
persistence Use read-only access methods for read-only entity operations (#31479) 2025-05-26 23:04:31 -04:00
dock.rs keymap_ui: Add context menu for table rows (#33747) 2025-07-02 03:06:45 +00:00
history_manager.rs History manager (#26369) 2025-04-11 21:34:51 +00:00
item.rs Don't autosave unmodified buffers (#32626) 2025-06-12 22:12:14 +00:00
modal_layer.rs editor: Hide mouse context menu when modal is opened (#29127) 2025-04-21 20:13:26 +05:30
notifications.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
pane.rs keymap_ui: Add context menu for table rows (#33747) 2025-07-02 03:06:45 +00:00
pane_group.rs Improve cursor style behavior for some draggable elements (#31965) 2025-06-06 16:56:27 -04:00
persistence.rs zlog: Replace usages of env_logger in tests with zlog (#31436) 2025-05-26 11:48:50 -04:00
searchable.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
shared_screen.rs Add searchable global tab switcher (#28047) 2025-04-28 09:21:27 +00:00
status_bar.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
tasks.rs debugger: Debug sessions rerun build tasks by default when restarting (#33724) 2025-07-01 15:43:58 -04:00
theme_preview.rs Sketch in a table for the keybindings UI (#32436) 2025-06-30 19:25:11 -04:00
toast_layer.rs Move workspace::toast_layer::RunAction to zed_actions::toast::RunAction (#32222) 2025-06-06 06:23:09 +00:00
toolbar.rs Fix toolbar spacing regressions (#29964) 2025-05-05 22:28:35 -03:00
workspace.rs Add ability to manage dock size via command/shortcut (#31366) 2025-07-02 10:27:52 +00:00
workspace_settings.rs workspace: Add setting to make dock resize apply to all panels (#30551) 2025-06-04 17:40:35 +00:00