128c198
Fix duplicate item creation in project panel (#2532)
Click to expand commit body
Closes
https://linear.app/zed-industries/issue/Z-1760/creating-a-new-file-with-the-same-name-as-an-existing-file-overwrites
Now every rename/creation editor won't do anything if a duplicate name
is submitted.
Release Notes:
* Fixed a bug when created in project panel items with duplicate names
were overwriting the old files
Kirill Bulatov
created
5501dd7
Fix duplicate item creation in project panel
This took so much longer than I wanted, so glad to finally be rid of
this
Release Notes:
* Improved performance when editing many git-tracked files in a
multi-buffer at the same time
Julia
created
5e39ba5
Clean up final remaining code paths calling old diff update method
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>
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:

after:

`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
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

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.

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>
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
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.
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)
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
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.
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
