Commit log

1b09862 Restrcit context for some editor bindings that don't apply to single-line editors

Max Brunsfeld created

acbb3f3 Better display items from different sources with different z-indices in the same place (#3723)

Kirill Bulatov created

cf12d62 Tidy up z-index handling

Click to expand commit body
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>

Kirill Bulatov and Antonio Scandurra created

097640e Fix typo in `ButtonCommon` doc comment (#3722)

Click to expand commit body
This PR fixes a small typo in the doc comments for `ButtonCommon`.

Was waiting to roll this up into another PR, but it never ended up
happening.

Release Notes:

- N/A

Marshall Bowers created

f6d3191 Optimize stack id in-memory layout

Kirill Bulatov created

8f1c537 Fix more z-index and rendering issues

Click to expand commit body
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>

Kirill Bulatov and Antonio Scandurra created

825a8f0 Initial fix of the z-index

Click to expand commit body
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Kirill Bulatov , Antonio Scandurra , and Nathan Sobo created

a9fe108 Fix typo in "Quote Selection" tooltip (#3721)

Click to expand commit body
This PR fixes a typo in the "Quote Selection" tooltip.

Release Notes:

- N/A

Marshall Bowers created

7bc9319 Apply padding at the toolbar level (#3720)

Click to expand commit body
This PR adjusts the padding in the toolbar to be applied within the
toolbar itself.

Previously the different elements within the toolbar were applying their
own padding, which led to inconsistencies.

Release Notes:

- N/A

Marshall Bowers created

407478d Add missing collab panel features (#3719)

Click to expand commit body
* channel modal
* channel invites in collab panel

Max Brunsfeld created

a9b1273 Clean up commented code

Click to expand commit body
Co-authored-by: Nathan <nathan@zed.dev>

Max Brunsfeld and Nathan created

1c3698a Implement channel modal

Click to expand commit body
Co-authored-by: Nathan <nathan@zed.dev>

Max Brunsfeld and Nathan created

4e07167 Use `child` instead of `children` (#3718)

Click to expand commit body
This PR refactors some code where we were using `children` when we could
have used `child` instead.

Release Notes:

- N/A

Marshall Bowers created

80b6922 wip

Max Brunsfeld created

a4bfd01 Render channel invites in collab panel, fix unused warnings

Max Brunsfeld created

a3bab25 Style contact finder (#3717)

Click to expand commit body
This PR styles the contact finder.

<img width="598" alt="Screenshot 2023-12-19 at 12 59 00 PM"
src="https://github.com/zed-industries/zed/assets/1486634/ca9d9345-bf27-4256-aabc-6017a0c4d217">

Release Notes:

- N/A

Marshall Bowers created

ef39382 Allow editor mouse drag selection outside interactive bounds (#3716)

Click to expand commit body
Release Notes:

- N/A

Julia created

961f989 Match zed1 scrollbar drag behavior (#3715)

Click to expand commit body
Still not ideal, but we need to ship and this is more than reasonable

Release Notes:

- N/A

Julia created

e08fc0b Allow editor mouse drag selection outside interactive bounds

Click to expand commit body
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>

Julia and Antonio Scandurra created

5139634 Match zed1 scrollbar drag behavior

Click to expand commit body
Still not ideal, but we need to ship and this is more than reasonable

Co-Authored-By: Antonio Scandurra <antonio@zed.dev>

Julia and Antonio Scandurra created

e778e17 Style assistant panel (#3711)

Click to expand commit body
[[PR Description]]

Styles most of the assistant panel. A few notes:

- We now cut off the title if it gets to long so the assistant tools
don't get cut off
- I wasn't able to get to the "no api key" state, so that hasn't been
style checked yet.
- A few of icons were updated in this PR

I also added a new tooltip that teaches you a bit about role cycling:

![CleanShot 2023-12-19 at 12 08
15@2x](https://github.com/zed-industries/zed/assets/1714999/89dcdcc0-9ef9-4527-94a2-6146b5f127f2)

🐜 Known issues 🐜

- There is a bug where zooming the panel makes it shift 1px (@maxdeviant
I think this has to do with panel borders)
- We are showing a timestamp for new conversations before you have sent
a message/launched an assist action. I wasn't sure how to case this out.

Before:

![CleanShot 2023-12-19 at 12 06
17@2x](https://github.com/zed-industries/zed/assets/1714999/16154add-a7f4-455a-a5c5-706847e012a2)

![CleanShot 2023-12-19 at 12 05
00@2x](https://github.com/zed-industries/zed/assets/1714999/a6d325ec-59c2-41b3-ad82-6cf88f2f70a0)

After:

![CleanShot 2023-12-19 at 12 05
37@2x](https://github.com/zed-industries/zed/assets/1714999/aaa4668e-b361-411a-8865-1989bd1c3ae1)

![CleanShot 2023-12-19 at 12 05
52@2x](https://github.com/zed-industries/zed/assets/1714999/0c6a9970-56ab-43cc-9394-fd3f6bf0ed6a)


Release Notes:

- N/A

Nate Butler created

616ea13 Style buffer search input (#3713)

Click to expand commit body
This PR styles the text input for the buffer search.

Release Notes:

- N/A

Marshall Bowers created

b797cd3 Fix panel resize (#3707)

Click to expand commit body
* [x] Reposition right dock handle
* [x] Handle mouse events correctly for drag and drop
* [x] Prevent drag events from passing through the resize handle to the
draggable items in the panels (channels, files)
* [x] Stop the editor gutter from stealing mouse move events

Max Brunsfeld created

5d95e13 Update assistant editor

Nate Butler created

e655d24 Don't stop propagation on mouse move over editor gutter

Max Brunsfeld created

d8eea94 Update assistant panel message header, model switcher

Nate Butler created

a108518 use `to_string` to return the format distance string from FormatDistance

Nate Butler created

cf037ea Merge branch 'main' into fix-panel-resize

Max Brunsfeld created

d8a8feb Add FormatDistance struct, add hide_prefix option

Nate Butler created

3e6b84a Wire up the middle mouse button to close tabs (#3714)

Click to expand commit body
This PR wires up the middle mouse button to close tabs.

Right now we're doing this using `on_mouse_down`, but we need a way in
GPUI2 to have an `on_click` for a mouse button other than the left one.

Release Notes:

- N/A

Marshall Bowers created

79653d2 Rename format distance test names

Nate Butler created

ae313ff Allow format_distance to take a DateTimeType

Nate Butler created

30b01b9 Update imports, tab height const

Nate Butler created

286f654 Update assistant header

Nate Butler created

cc107f7 Maintain scroll position in `CollabPanel` after updating entries (#3712)

Click to expand commit body
Release Notes:

- N/A

Antonio Scandurra created

57efaa9 Style assistant header, update icons

Nate Butler created

dd84993 Maintain scroll position in CollabPanel after updating entries

Click to expand commit body
Co-Authored-By: Julia <julia@zed.dev>

Antonio Scandurra and Julia created

42a02e4 Remove red border

Nate Butler created

2c402f9 Ensure conversation items fill the container

Nate Butler created

49502af Update conversation item rendering

Nate Butler created

91b6595 Fix janky editor scrollbar dragging (#3710)

Click to expand commit body
We can receive multiple events before computing the next frame, and in
that case we want to compute a drag delta between the position for the
previous mouse event and the current one.

Release Notes:

- N/A

Antonio Scandurra created

b30fd3f Fix janky editor scrollbar dragging

Click to expand commit body
We can receive multiple events before computing the next frame, and
in that case we want to compute a drag delta between the position for the
previous mouse event and the current one.

Antonio Scandurra created

1bb85c1 Prevent default when mousing down on a button that responds to clicks (#3709)

Click to expand commit body
This ensures that ancestors that track focus don't accidentally steal it
on mouse down, which was preventing the editor from deploying the code
actions menu.

Release Notes:

- N/A

Antonio Scandurra created

afbc61a Prevent default when mousing down on a button that responds to clicks

Click to expand commit body
This ensures that ancestors that track focus don't accidentally steal
it on mouse down, which was preventing the editor from deploying the
code actions menu.

Antonio Scandurra created

02e5302 Track caller on h_stack and v_stack

Antonio Scandurra created

6a0740f Set window edited in zed2 (#3708)

Click to expand commit body
Release Notes:

- N/A

Antonio Scandurra created

ae32706 Fix tests

Antonio Scandurra created

ba0d7e3 Set window edited

Antonio Scandurra created

4b74f30 Properly restore termina current dir when deserializing the project

Kirill Bulatov created

2979eb9 Allow transparent divs to be considered "top layers"

Click to expand commit body
This changes the meaning of `was_top_layer` so that it is checking that
nothing opaque is on top of the given layer. The layer in question
need not be opaque.

Max Brunsfeld created