Kirill Bulatov
ca8e8d1065
Finish removing all dangerous focus APIs
2023-12-12 16:11:14 +02:00
Kirill Bulatov
2cde1a2e15
Re-focus window on workspace on corresponding window blur
...
Co-authored-by: Antonio <antonio@zed.dev>
2023-12-12 15:36:20 +02:00
Kirill Bulatov
717b2885f8
Attempt to remove the dangeous element focus API
2023-12-12 15:07:27 +02:00
Antonio Scandurra
43b8d65fee
Transfer focus to the workspace when window focus is lost
2023-12-12 15:07:27 +02:00
Max Brunsfeld
6f5b1064ee
Fix detection of topmost region under the dragged item
...
Co-authored-by: Mikayla <mikayla@zed.dev>
2023-12-11 16:50:44 -08:00
Conrad Irwin
149e90c3d9
vim2 ( #3597 )
...
- MOAR TESTS
[[PR Description]]
Release Notes:
- N/A
2023-12-11 16:42:03 -07:00
Conrad Irwin
d12eb0581a
vim2 ( #3594 )
...
- First round of vim tests
Add `observe_keystrokes` back to gpui2
Allow multiple actions to match a given key event
[[PR Description]]
Release Notes:
- (Added|Fixed|Improved) ...
([#<public_issue_number_if_exists>](https://github.com/zed-industries/community/issues/ <public_issue_number_if_exists>)).
2023-12-11 15:06:51 -07:00
Conrad Irwin
1e89092d62
MOAR TESTS
2023-12-11 15:06:33 -07:00
Mikayla Maki
927d18b0f3
Add support for resizing splits and docks, as well as utilities ( #3595 )
...
Making this PR to upstream changes to util and GPUI2, resizing exists
but isn't working yet.
Release Notes:
- N/A
2023-12-11 13:32:06 -08:00
Conrad Irwin
d1805d8ada
First round of vim tests
2023-12-11 14:16:25 -07:00
Max Brunsfeld
fbfe108317
Avoid double borrow in tests by drawing windows explicitly in flush_effects
...
Co-authored-by: Antonio <antonio@zed.dev>
2023-12-11 12:37:10 -08:00
Antonio Scandurra
9b94f1483a
Redraw the window at the end of flush_effects
in tests
...
Co-Authored-By: Max Brunsfeld <max@zed.dev>
2023-12-11 20:10:27 +01:00
Antonio Scandurra
f1ebad22db
Defer drawing the scene until macOS's display_layer
callback
...
Co-Authored-By: Max Brunsfeld <max@zed.dev>
2023-12-11 19:55:55 +01:00
Mikayla
fd34d1da31
Add back semi-funcitonal pane resizing code
2023-12-08 16:29:42 -08:00
Max Brunsfeld
282e4398a0
In titlebar, render followers and allow following people
2023-12-07 13:09:18 -08:00
Kirill Bulatov
6c653b9c05
Activate Zed window on external file drop
2023-12-07 16:08:47 +02:00
Kirill Bulatov
b692b4c9c2
Do not expand terminal selections on active drag
2023-12-07 16:08:47 +02:00
Kirill Bulatov
f829120f51
Convert OS file drag and drop enter event into a mouse move, not mouse click
2023-12-07 16:08:47 +02:00
Antonio Scandurra
a40515dbb3
Rework frame rendering
...
This commit replaces the old `previous_frame` and `current_frame` with
a new pair of `rendered_frame` and `next_frame` that are swapped once
we are ready to draw a finished frame.
This makes it clearer when to use which: `rendered_frame` should be used
to query the existing state, whereas `next_frame` should be used and mutated when
redrawing a dirty window.
The change was prompted by a bug I encountered in `FocusHandle::contains`. The
implementation was reading `current_frame`, but that was the wrong field to
access if e.g. we were reading it inside of a `render` function or any other
time while drawing the window.
2023-12-07 12:10:49 +01:00
Mikayla
22cd62213b
Tear out drag event listener
2023-12-06 16:22:25 -08:00
Mikayla
c092cfbfb3
Fix bug with IME
...
Adjust how IME works in the terminal
co-authored-by: nathan <nathan@zed.dev>
2023-12-06 15:54:08 -08:00
Mikayla
fd31e429f5
Merge branch 'main' into terminal-element
2023-12-06 15:20:04 -08:00
Nathan Sobo
d7473ad6e7
Document geometry module and replace zero
method with default
( #3515 )
...
Nothing earth-shattering here, but all our geometry types are now fully
documented.
Release Notes:
- N/A
2023-12-06 12:52:41 -07:00
Nathan Sobo
ac07e230fa
Document geometry
2023-12-06 12:28:44 -07:00
Antonio Scandurra
2aee3e3192
Make Node::context
optional as well
...
This was an oversight in d09dfe0
.
Co-Authored-By: Marshall <marshall@zed.dev>
2023-12-06 18:02:45 +01:00
Piotr Osiewicz
6549a9a091
Let WindowContext::dispatch_action handle global actions
...
Co-authored-by: Antonio <antonio@zed.dev>
2023-12-06 16:52:52 +01:00
Piotr Osiewicz
e9002ab10a
Merge branch 'main' into app-menus
2023-12-06 16:34:55 +01:00
Piotr Osiewicz
d09dfe01f5
Wire up global actions
...
Added an ephemeral root node so that even if there's no window/focused handle we still have something to dispatch to.
Co-authored-by: Antonio <antonio@zed.dev>
2023-12-06 16:15:53 +01:00
Piotr Osiewicz
1f538c5fdd
Merge branch 'main' into copilot2
2023-12-06 15:13:13 +01:00
Nathan Sobo
d2fe9f8f9b
Merge remote-tracking branch 'origin/main' into app-menus
2023-12-05 16:54:38 -07:00
Nathan Sobo
631e264e3c
Start on app menus
2023-12-05 13:17:59 -07:00
Mikayla
ab140ee4c2
Add event based drag API to GPUI, continue binding mouse handlers to terminal
2023-12-05 12:07:17 -08:00
Max Brunsfeld
38d41acf9b
Fix rendering of shared screens in collab panel
2023-12-05 10:29:19 -08:00
Piotr Osiewicz
b73ccc8180
Start out Copilot2;
...
Add hidden_action_types to CommandPaletteFilter.
WindowContext.available_actions now returns global actions as well.
Co-authored-by: Antonio <antonio@zed.dev>
2023-12-05 14:57:20 +01:00
Piotr Osiewicz
d433da1e70
Editor2 tests ( #3486 )
...
Release Notes:
- N/A
2023-12-05 14:52:20 +01:00
Max Brunsfeld
ae6ddceb67
Enable more collab UI features ( #3496 )
...
* Current Call section of the collab panel
* Improve the collab titlebar
* Add basic UI for following
Following only partially works, but the UI for following is now in
place.
2023-12-04 18:01:11 -08:00
Max Brunsfeld
eff3a72fb5
Start work on following in zed2
...
Co-authored-by: Nathan <nathan@zed.dev>
2023-12-04 17:51:53 -08:00
Conrad Irwin
9162f299a7
Fix project panel context menu
2023-12-05 00:41:00 +00:00
Conrad Irwin
c82fea375d
Dispatch actions on focused node
...
Allows us to implement context menu matching nicely
2023-12-04 22:58:04 +00:00
Conrad Irwin
2c2e5144c9
Fix context key matching
...
* You need to check all layers of the context stack
* When in command, the context should be based on where focus was (to
match `available_actions`.
2023-12-04 21:28:37 +00:00
Piotr Osiewicz
2108ddf621
Defer activating Subscriptions that are invoked as a part of an effect.
...
Fixes test test_edit_events.
Co-authored-by: Antonio <antonio@zed.dev>
2023-12-04 16:17:33 +01:00
Antonio Scandurra
c9be637b6b
Re-introduce auto-height in editor2
( #3471 )
...
Release Notes:
- N/A
2023-12-01 12:02:45 +01:00
Max Brunsfeld
cb11c1282c
Re-introduce active path tracking in workspace
2023-11-30 14:58:14 -08:00
Antonio Scandurra
5243401afa
Pass a WindowContext
in request_measured_layout
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2023-11-30 17:12:40 +01:00
Antonio Scandurra
d9b8c07b1e
Lift Send and Sync restriction for measurements
2023-11-30 16:37:57 +01:00
Antonio Scandurra
cc0bc444b1
Merge remote-tracking branch 'origin/main' into surfaces
...
# Conflicts:
# crates/ui2/src/components/avatar.rs
2023-11-30 10:48:20 +01:00
Max Brunsfeld
e49325080c
Implement activity indicator in zed2
2023-11-29 17:18:21 -08:00
Max Brunsfeld
dbfc7d3555
Merge branch 'main' into project-panel-context-menu
2023-11-29 09:45:31 -08:00
Max Brunsfeld
233aac5573
Make DismissEvent a unit struct
...
Co-authored-by: Conrad <conrad@zed.dev>
2023-11-29 09:42:54 -08:00
Max Brunsfeld
ac34229118
Add keyboard control over context menus
...
Co-authored-by: Conrad <conrad@zed.dev>
2023-11-29 09:39:20 -08:00