ZIm/crates/workspace/src
Mikayla Maki e945b3c0e1
feat(workspace): add action for closing inactive editors on all panes (#2771)
using zed more and more to develop zed itself I'm finding some small qol
features missing, this is one of them
I'm very used to open two or three splits, and sometimes I want to close
everything except for the active editor, but that wasn't supported, as
the `pane::CloseInactiveItems` action only closes inactive items on the
active pane

so I've implemented it really quick, although I'm not sure it's the
right way to do this

note: I really don't like the default keybinding I've set it to, I have
this action bound to `cmd-shift-w` on all editors, but in zed is taken,
so I chose something that's free but without thinking too much about it

Release Notes:

- Added action for closing inactive editors from all panes
2023-07-27 18:11:11 -07:00
..
pane Make Pane::add_item a proper Pane method 2023-05-29 19:16:22 +02:00
persistence fmt 2023-07-13 14:21:30 -07:00
dock.rs Add the math for pane resizing 2023-07-12 22:35:51 -07:00
item.rs Add support for activating a pane by direction 2023-07-19 18:29:11 -06:00
notifications.rs Split out Interactive<T> into Toggle<T> and Interactive<T> 2023-06-20 16:05:20 -07:00
pane.rs Rework close_inactive_items to await all tasks 2023-07-27 17:58:48 -07:00
pane_group.rs Remove placeholders 2023-07-26 09:37:52 -07:00
persistence.rs Fix serialization error 2023-07-13 14:48:56 -07:00
searchable.rs Avoid optional on select_match 2023-07-17 12:49:59 -06:00
shared_screen.rs Move history navigation logic to Workspace 2023-05-29 19:47:59 +02:00
status_bar.rs Update status bar theming 2023-07-25 11:06:41 -06:00
toolbar.rs Re-enable buffer search in assistant 2023-06-23 09:57:31 +02:00
workspace.rs feat(workspace): add action for closing inactive editors on all panes (#2771) 2023-07-27 18:11:11 -07:00
workspace_settings.rs Remove concept of git diff refresh from Item trait 2023-05-25 14:29:28 -04:00