Commit log

f40c498 Fix tests

Julia created

8d662ed Remove concept of git diff refresh from `Item` trait

Julia created

cede296 Project level git diff recalc handling

Click to expand commit body
This avoids an issue where in a many-buffer multi-buffer, each modified
buffer could complete its recalc independently, causing a cascade of
repeated notifies

Now all recalcs started at the same time must complete before
 A: Starting another recalc pass
 B: The master notify occurring

Each buffer can still show its new diff if something else triggers it
to notify earlier, this is desirable and does not have the same negative
effects as the notify cascade as those re-layouts would need to happen
anyway

Co-Authored-By: Max Brunsfeld <max@zed.dev>

Julia and Max Brunsfeld created

54421b1 wip

Max Brunsfeld created

ae3bdd7 Support OnTypeFormatting LSP request (#2517)

Click to expand commit body
Supports
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_onTypeFormatting

rust-analyzer uses this feature to add matching brackets semantically,
e.g.
before:
![Screenshot 2023-05-23 at 17 46
42](https://github.com/zed-industries/zed/assets/2690773/020e8448-23e6-4a38-8dbb-c9edf18062f7)

after:
![Screenshot 2023-05-23 at 17 46
49](https://github.com/zed-industries/zed/assets/2690773/4d140af3-aca6-451d-ac61-e2a9bb31caea)

`use_on_type_format` settings entry was added, enabled by default, to
disable the new feature.

Release Notes:

* Support `OnTypeFormatting` LSP protocol feature, allowing
rust-analyzer to add matching brackets

Kirill Bulatov created

739d5ca Have proper undo for both client and host

Kirill Bulatov created

24098c5 Prevent bottom dock from becoming too large or too small (#2529)

Click to expand commit body
Fixes
https://linear.app/zed-industries/issue/Z-1834/bottom-dock-can-be-dragged-down-far-enough-such-that-the-tab-bar-is

Release Notes:

- Improved the resize experience for the bottom dock, preventing it from
becoming too large or too small. (preview-only)

Antonio Scandurra created

4185a17 Prevent bottom dock from becoming too large or too small

Antonio Scandurra created

f549ada Restore the ability to search terminals in the terminal panel (#2528)

Click to expand commit body
Fixes
https://linear.app/zed-industries/issue/Z-1812/find-in-terminal-panel-is-broken

![CleanShot 2023-05-25 at 15 18
01@2x](https://github.com/zed-industries/zed/assets/482957/ddb33b61-d253-4de1-961f-14b24aaa3e46)

This also removes navigation controls from the terminal panel, given
that terminals don't make use of that feature anyway. When the toolbar
is empty, we'll avoid showing it altogether.

![CleanShot 2023-05-25 at 15 17
26@2x](https://github.com/zed-industries/zed/assets/482957/52419f2c-bca0-494a-a9b3-88e183b4c12f)


Release Notes:

- Fixed a regression that was preventing the terminal panel from being
searched.

Antonio Scandurra created

aa8c047 Don't show navigation controls for terminal panel

Antonio Scandurra created

e2ff829 Use Transaction instead of ProjectTransaction

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

Kirill Bulatov and Antonio Scandurra created

414b97a Add search bar to terminal panel

Antonio Scandurra created

dba7ec4 Prevent pane from being erroneously zoomed when toggling the outline pane (#2527)

Click to expand commit body
Fixes
https://linear.app/zed-industries/issue/Z-1818/toggling-the-outline-pane-causes-the-pane-to-zoom

Add release note lines here:

- Fixed a bug that could cause panes to be erroneously zoomed when
toggling modals. (preview-only)

Antonio Scandurra created

c2f3ac2 Prevent zoom from being restored when focusing a modal

Antonio Scandurra created

7e1ea8f Remove stray dbg!

Antonio Scandurra created

aa58d0f Do not send edits over the wire

Kirill Bulatov created

f812151 Add integration tests

Kirill Bulatov created

eca6d2b Process remote format typing also

Kirill Bulatov created

58a56bd Always use server formatting settings

Kirill Bulatov created

d1f4b60 Allow to disable the new feature

Kirill Bulatov created

b9dabb1 Use formatting options

Kirill Bulatov created

3327e8a Support remote sessions

Kirill Bulatov created

f6d7b3d Send and handle OnTypeFormatting LSP request

Kirill Bulatov created

793486b Update Diff Modified Color (#2526)

Click to expand commit body
For some reason the yellow I used for the modified color in light themes
was really light
.
Release Notes:

* Improved the contrast of diff modified color in the editor in light
themes.

Nate Butler created

3f79b0c Don't hardcode dates into script

Joseph Lyons created

cc3186c Add script to print all prs merged between a previous date and now

Joseph Lyons created

0b7d095 Introduce the ability to talk to GPT-4 within buffers on preview and dev (#2524)

Click to expand commit body
This adds basic ability to interact with OpenAI inside a buffer.

Release Notes:

* If`OPENAI_API_KEY` is defined in your environment, you can now run the
`ai: assist` command to pass the text of your current buffer to GPT-4.
If you're editing a file with a `.zmd` extension, you can also invoke
the model with `cmd-enter.` (preview-only)

Nathan Sobo created

37d35db v0.89.x dev

Joseph Lyons created

26051de Clean up

Nathan Sobo created

a1a66b8 Make toggle dock actions appear in the command palette (#2525)

Click to expand commit body
This makes the `Toggle{Left,Right,Bottom}Dock` actions deserializable
from empty JSON, so that they can be constructed for the command
palette. It also fixes a bug in GPUI's `available_actions` method, in
which we'd include key bindings for actions of the same type but
different values.

Note that, for now, the command palette will perform the *focusing*
version of the actions. I'm not totally sure this is the right behavior,
but it seems more useful to me.

Release Notes:

N/A

Max Brunsfeld created

747322a Merge remote-tracking branch 'origin/main' into zmd

Nathan Sobo created

66b3be8 Make toggle dock actions appear in the command palette

Max Brunsfeld created

d495c1b Only run AI agent on dev and preview

Nathan Sobo created

35f9996 WIP

Antonio Scandurra created

ba79a8b WIP

Nathan Sobo created

50e1e17 WIP

Nathan Sobo created

051c756 WIP

Nathan Sobo created

8abaf66 WIP

Nathan Sobo created

6368ade WIP

Nathan Sobo created

8832248 Polish panel experience (#2523)

Click to expand commit body
In this pull request we improved key bindings (as described below) and
added tooltips.

Add these release notes to the panels release notes:

- The left, right and bottom dock can be toggled and focused at the same
time respectively via `cmd-b`, `cmd-r` and `cmd-j`. Holding `shift` will
toggle them without changing the focus.

Antonio Scandurra created

f67a228 Show keystroke in panel tooltips

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

Antonio Scandurra and Nathan Sobo created

0cf1632 Only focus new terminal if the panel contains focus

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

Antonio Scandurra and Nathan Sobo created

50cfe5e Use cmd-b/cmd-r/cmd-j to toggle left/right/bottom dock and focus when opening

Click to expand commit body
Also, bind the same keys with shift to toggle the dock without focusing.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

7534c4e Fix opening excerpt when the cursor is at the end of a multi-buffer (#2522)

Click to expand commit body
Fixes
https://linear.app/zed-industries/issue/Z-987/option-enter-doesnt-open-buffer-from-multibuffer-if-on-the-last-line

This was caused by seeking with a right bias, which in the case of the
last excerpt in the buffer would seek past the end of the buffer. This
commit changes the behavior to move the cursor back to the previous
excerpt if we overshoot, to ensure we always land on an excerpt.

Release Notes:

- Fixed a bug that prevented opening excerpts when the cursor was at the
end of a multi-buffer.

Antonio Scandurra created

2a8e082 Fix opening excerpt when the cursor is at the end of a multi-buffer

Click to expand commit body
This was caused by seeking with a right bias, which in the case of the
last excerpt in the buffer would seek past the end of the buffer.  This
commit changes the behavior to move the cursor back to the previous excerpt
if we overshoot, to ensure we always land on an excerpt.

Antonio Scandurra created

8f49552 Show maximize/minimize icon for panes and terminal panel (#2521)

Click to expand commit body
Closes
https://linear.app/zed-industries/issue/Z-1790/show-zoomunzoom-icons-for-panes-and-terminal-panel

![CleanShot 2023-05-24 at 11 07
04@2x](https://github.com/zed-industries/zed/assets/482957/b27d002c-6443-440b-88d0-cfa06d902477)

Antonio Scandurra created

e5fd953 Provide tooltips for pane buttons

Antonio Scandurra created

1a353ad Show maximize/minimize icon for panes and terminal panel

Antonio Scandurra created

9575ffc Prevent empty panes from being zoomed (#2520)

Click to expand commit body
Closes
https://linear.app/zed-industries/issue/Z-1789/empty-panes-should-not-be-zoomable

Antonio Scandurra created

168ff99 Prevent empty panes from being zoomed

Antonio Scandurra created