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:
parent
64c413b9b6
commit
f27b508e4b
4 changed files with 28 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue