Improve workspace bindings (#33765)

* Add a "close item"-like binding to close the active dock, if present

Now, cmd/ctrl-w can be used close the focused dock before the Zed window

* Add defaults to MoveItem* actions to make it appear in the command
palette

Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov 2025-07-02 23:31:32 +03:00 committed by GitHub
parent 64c413b9b6
commit f27b508e4b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 28 additions and 4 deletions

View file

@ -103,6 +103,7 @@ pub struct ActivateItem(pub usize);
#[action(namespace = pane)]
#[serde(deny_unknown_fields)]
pub struct CloseActiveItem {
#[serde(default)]
pub save_intent: Option<SaveIntent>,
#[serde(default)]
pub close_pinned: bool,
@ -112,6 +113,7 @@ pub struct CloseActiveItem {
#[action(namespace = pane)]
#[serde(deny_unknown_fields)]
pub struct CloseInactiveItems {
#[serde(default)]
pub save_intent: Option<SaveIntent>,
#[serde(default)]
pub close_pinned: bool,
@ -121,6 +123,7 @@ pub struct CloseInactiveItems {
#[action(namespace = pane)]
#[serde(deny_unknown_fields)]
pub struct CloseAllItems {
#[serde(default)]
pub save_intent: Option<SaveIntent>,
#[serde(default)]
pub close_pinned: bool,