Commit Graph
1017 Commits
Author SHA1 Message Date
Mikayla Maki 783832d41d 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
Mikayla Maki a2b1f57305 Fix warning 2023-07-27 18:00:33 -07:00
Mikayla Maki ec042e0c14 Rework close_inactive_items to await all tasks
Update action name to be more accurate
2023-07-27 17:58:48 -07:00
Mikayla Maki a3a03211e5 Simple cascading split (#2790)
This PR cascades the split resizing to adjacent splits, if the current
split has already hit the minimum size. This PR also adds support for
detecting the end of a drag event to GPUI, via a bool on the dispatched
drag.

Release Notes:

- Made split resizing more flexible
2023-07-26 09:49:27 -07:00
Mikayla Maki ff392442a5 Remove placeholders 2023-07-26 09:37:52 -07:00
Conrad Irwin 44f4f14010 Add a mode indicator for vim (#2763)
Release Notes:

- vim: add a mode indicator
([#409](https://github.com/zed-industries/community/issues/409))

Now updated screenshots with @iamnbutler 
<img width="1043" alt="Screenshot 2023-07-25 at 11 11 57"
src="https://github.com/zed-industries/zed/assets/94272/8301479a-8b58-42d8-81a1-bc40e1e0a4df">
<img width="1043" alt="Screenshot 2023-07-25 at 11 12 00"
src="https://github.com/zed-industries/zed/assets/94272/89c3b8bd-9cbc-4fd7-ad10-dac5538ed3a3">
<img width="1043" alt="Screenshot 2023-07-25 at 11 12 12"
src="https://github.com/zed-industries/zed/assets/94272/adc87fe3-a720-4779-853b-df9443407046">
2023-07-25 20:18:23 -06:00
Conrad IrwinandNate Butler 8fd9cba675 Update status bar theming
Co-Authored-By: Nate Butler <iamnbutler@gmail.com>
2023-07-25 11:06:41 -06:00
Conrad Irwin b45bbd6bd4 Better method ordering 2023-07-24 09:57:51 -06:00
Conrad Irwin 1fccc35107 Refactor mode indicator to remove itself
One of the problems we had is that the status_bar shows a gap between
items, and we want to not add an additional gap for an invisible status
indicator.
2023-07-24 09:51:54 -06:00
Mikayla Maki c2df957496 Implement cascading resize algorithm 2023-07-24 08:04:46 -07:00
Mikayla Maki d06a2775b8 Add drag end events
Fix left dragging cascade
WIP: Implement right dragging, WIP: use drag end events to set and reset state around initial flex orientation
2023-07-23 13:28:30 -07:00
Mikayla Maki 499599ab50 WIP: cascade split resizes 2023-07-23 01:20:25 -07:00
Mikayla Maki 5541447694 Refactor resize handle code to be amenable to cascading resizes 2023-07-22 21:48:45 -07:00
Kirill Bulatov 58c3c412d1 Focus project panel on directory select 2023-07-23 00:12:25 +03:00
Conrad Irwin 92115eb5bf Add support for adding/removing status items 2023-07-21 16:06:14 -06:00
Kirill Bulatov aae5cf61e1 Add search in directory action in the project panel 2023-07-21 22:47:57 +03:00
Alex Viscreanu 9a31609357 feat(workspace): add action for closing inactive editors on all panes 2023-07-21 13:16:00 +02:00
Joseph T. Lyons cd9caa8011 Add key binding to close all docks 2023-07-21 02:44:44 -04:00
Mikayla Maki c3b5d0453c fmt 2023-07-20 10:36:23 -07:00
Mikayla Maki 6d3e51ea54 Add a double click to reset resized splits 2023-07-20 10:33:28 -07:00
Conrad Irwin 7361cda15a Ignore off-screen cursors 2023-07-20 11:11:47 -06:00
Conrad Irwin 40e8fc2213 Assertions for assumptions 2023-07-20 11:11:37 -06:00
Conrad Irwin d424988245 Better calculation of pane distance 2023-07-20 11:06:16 -06:00
Conrad Irwin 6ab5bd0aff Add support for activating a pane by direction
Contributes: zed-industries/community#476
Contributes: zed-industries/community#478
2023-07-19 18:29:11 -06:00
Conrad Irwin 8ff6450c40 Merge branch 'main' into vim-search 2023-07-19 09:48:25 -06:00
Alex Viscreanu 1258838a6f feat(workspace): add option for moving the tab close button to the left 2023-07-17 21:17:28 +02:00
Alex Viscreanu f4990e2c20 feat(workspace): show git status on editor tabs 2023-07-17 20:53:42 +02:00
Conrad Irwin 63c6387539 Avoid optional on select_match 2023-07-17 12:49:59 -06:00
Conrad Irwin 41775f1244 Merge branch 'main' into vim-search 2023-07-17 09:27:02 -06:00
Mikayla Maki 5cc106002e Simplify db tests 2023-07-14 16:09:02 -07:00
Alex ViscreanuandMikayla Maki f1ae1407e7 fix(flexes): reset flexes when collapsing axis
Co-authored-by: Mikayla Maki <mikayla@zed.dev>
2023-07-14 21:49:33 +02:00
Alex ViscreanuandMikayla Maki ef7952c045 feat(workspace): allow alternative actions to open files and symbols in split
Co-authored-by: Mikayla Maki <mikayla@zed.dev>
2023-07-14 21:49:15 +02:00
Kirill Bulatov 9a9be65585 Preserve serach index for multicaret selection editor events 2023-07-14 14:47:12 +03:00
Kirill Bulatov a050e82102 Allow selecting all search matches in buffer 2023-07-14 14:47:12 +03:00
Mikayla Maki b1671a3561 Fix serialization error 2023-07-13 14:48:56 -07:00
Mikayla Maki 0fa93fbecc tidy up names 2023-07-13 14:34:32 -07:00
Mikayla Maki dae77f3bca fmt 2023-07-13 14:21:30 -07:00
Mikayla Maki 39a56db2a3 Add resising serialization 2023-07-13 14:21:14 -07:00
Mikayla Maki 426e0abad7 Restore active pane magnification 2023-07-13 13:10:36 -07:00
Mikayla Maki 905a31254f Styled and refined behavior for split resizing 2023-07-13 11:28:21 -07:00
Mikayla Maki 5902088b70 Add the math for pane resizing 2023-07-12 22:35:51 -07:00
Mikayla Maki 20cb1ae3ca Added the new elements and wired through the pointers to update the pane axis ratios 2023-07-12 17:53:01 -07:00
Mikayla Maki fc8f8fb680 WIP 2023-07-12 12:46:56 -07:00
Mikayla Maki c1c0a979e8 Fix a bug where the terminal would not be closed by the terminal exiting (#2706)
Release Notes:

- Fixed a bug where terminal tabs in the panel would not close on tty
process exit.
2023-07-11 12:23:26 -07:00
Mikayla Maki 0e73ef5339 Fix a bug where the terminal panel's items wouldn't be hooked up properly to workspace actions 2023-07-11 12:12:37 -07:00
Kirill BulatovandMax Brunsfeld b214a1af15 Refactor LSP restart logic
Instead of storing `initialization_options` in every LSP adapter as
before, store previous LSP settings in `Project` entirely.

This way, we can later have use multiple different project
configurations per single LSP with its associated adapter.

co-authored-by: Max Brunsfeld <max@zed.dev>
2023-07-11 21:56:55 +03:00
Conrad Irwin 385cc12725 Rebuild vim search experience on refactored code 2023-07-07 15:57:54 -06:00
Kirill Bulatov c463e0dc55 Restart LSP server on initialization options change 2023-07-06 23:27:22 +03:00
Antonio Scandurra 4b58f2b8dd Restore focus to previously focused view when dismissing a modal 2023-07-05 09:40:26 +02:00
Antonio Scandurra 194bf772be Add Modal::has_focus and introduce a ModalHandle trait object 2023-07-05 09:39:56 +02:00