Mikayla Maki
bf225b571b
Update README.md
2025-03-11 16:12:50 -07:00
Ben Kunkle
a90f80725f
settings: Enable JSX tag auto-close by default ( #26481 )
...
Based on conversation with @maxbrunsfeld. Enabling Tag auto closing by
default so that it is discoverable for new and existing users
Release Notes:
- Made it so JSX tag auto-closing is automatically enabled in supported
languages
2025-03-11 21:01:41 +00:00
Marshall Bowers
4e6c37d23b
assistant2: Add tool selector ( #26480 )
...
This PR adds a tool selector to Assistant 2 to facilitate customizing
the tools that the model sees:
<img width="1297" alt="Screenshot 2025-03-11 at 4 25 31 PM"
src="https://github.com/user-attachments/assets/7a656343-83bc-4546-9430-6a5f7ff1fd08 "
/>
Release Notes:
- N/A
2025-03-11 20:50:18 +00:00
Peter Tripp
0cf6259fec
Make nano save (ctrl-o) work by-default in terminal (linux) ( #26479 )
...
Closes: https://github.com/zed-industries/zed/issues/15770
Release Notes:
- Make nano save (`ctrl-o`) work by-default in terminal (linux)
2025-03-11 20:29:02 +00:00
Kirill Bulatov
5cb5e92185
Bump aws-lc-rs to fix Windows release builds ( #26477 )
...
Closes https://github.com/zed-industries/zed/discussions/24816
https://github.com/aws/aws-lc-rs/releases/tag/v1.12.6 release includes a
fix for https://github.com/aws/aws-lc-rs/issues/707
Release Notes:
- N/A
2025-03-11 19:43:14 +00:00
Marshall Bowers
da61a28839
assistant_tool: Fix inaccurate parameter name ( #26473 )
...
This PR fixes an inaccurate parameter name in the
`ToolWorkingSet::insert` method.
Release Notes:
- N/A
2025-03-11 19:15:03 +00:00
Marshall Bowers
efdb769f9b
terraform: Extract to zed-extensions/terraform repository ( #26475 )
...
This PR extracts the Terraform extension to the
[zed-extensions/terraform](https://github.com/zed-extensions/terraform )
repository.
Release Notes:
- N/A
2025-03-11 19:10:51 +00:00
Marshall Bowers
9cce5a650e
assistant_tool: Add a source to the Tool trait ( #26471 )
...
This PR adds a `source` method to the `Tool` trait.
This will allow us to track where a tool is coming from.
Release Notes:
- N/A
2025-03-11 19:10:48 +00:00
Piotr Osiewicz
2021ca5bff
terraform: Do not add each string constraint to the outline ( #26453 )
...
Closes #26336
Release Notes:
- N/A
2025-03-11 19:46:18 +01:00
Peter Tripp
1771250b04
Add 'Open Remote...' to File Menu ( #26288 )
...
Added some spacers while I was at it.
Release Notes:
- Added 'Open Remote...' to File menu
2025-03-11 14:18:13 +00:00
张小白
18259c0fd4
chore: Bump windows crate version ( #26455 )
...
Closes #ISSUE
Release Notes:
- N/A
2025-03-11 21:14:36 +08:00
Smit Barmase
41ddd1cc97
editor: Fix text selection not visible on text background ( #26454 )
...
Closes #25014
Previously, we painted in the order: highlights -> text background ->
text -> etc. This caused text selection to be invisible when the text
had a background.
This PR changes the painting order to: text background -> highlights ->
text -> etc.
Before:
https://github.com/user-attachments/assets/5d9647c4-3ab2-4960-b6b9-e399882a0c50
After:
https://github.com/user-attachments/assets/c699f5b9-4077-45f8-85e5-86c89130eb71
Release Notes:
- Fixed an issue where text selection was not visible on top of a text
background in the editor.
2025-03-11 18:43:11 +05:30
Smit Barmase
e175878008
macOS: Remove multi-keystroke rendering in title of menu item ( #26448 )
...
Closes #25483
Currently, macOS doesn't support showing multi-keystroke shortcuts in
menu items. We can use an attributed string to differentiate them, but
that breaks consistency with traditional shortcuts.
This PR removes the hack of concatenating the multi-keystroke shortcut
to the title, as it looked a bit janky.
Release Notes:
- N/A
2025-03-11 18:42:02 +05:30
张小白
1cfbfc199c
windows: Fix tests ( #26450 )
...
Closes #ISSUE
Release Notes:
- N/A *or* Added/Fixed/Improved ...
2025-03-11 11:43:24 +00:00
张小白
f59f2caf7e
Fix tests on Windows ( #26449 )
...
Closes #ISSUE
Release Notes:
- N/A *or* Added/Fixed/Improved ...
2025-03-11 11:17:48 +00:00
Agus Zubiaga
401342c6ec
assistant: Display edits from scripts in panel ( #26441 )
...
https://github.com/user-attachments/assets/a486ff2a-4aa1-4c0d-be6c-1dea2a8d60c8
- [x] Track buffer changes in `ScriptingSession`
- [x] Show edited files in thread
Reviewing diffs and displaying line counts will be part of an upcoming
PR.
Release Notes:
- N/A
---------
Co-authored-by: Antonio Scandurra <me@as-cii.com >
2025-03-11 10:12:52 +00:00
Cole Miller
0df1e4a489
Address out-of-bounds panic in inline completion button ( #26394 )
...
Closes #26350
Release Notes:
- Git Beta: Fixed a panic that could occur when using the project diff
2025-03-11 03:04:56 -04:00
Cole Miller
9bd3e156f5
Fix enter binding in git panel's commit editor on Linux ( #26427 )
...
Closes #26110
Release Notes:
- Git Beta: fixed being unable to enter newline in the git panel's
commit editor on Linux
2025-03-11 00:26:13 -04:00
Conrad Irwin
42c655751b
Show a disabled stage all button for no entries ( #26436 )
...
Closes #ISSUE
Release Notes:
- N/A
2025-03-10 22:25:33 -06:00
Conrad Irwin
ff1d78df3b
Go back to "create branch" in the list ( #26433 )
...
Closes #ISSUE
Release Notes:
- N/A
2025-03-11 04:24:52 +00:00
Conrad Irwin
c2e4fdf63d
Git commit modal branch list ( #26417 )
...
Closes #26273
Release Notes:
- git: Fixes opening the branch selector in the commit modal with
cmd-option-b
- git: Truncates the branch selector in the commit modal
2025-03-10 22:10:52 -06:00
Agus Zubiaga
bf11b888c3
scripting tool: Use project buffers in io.open ( #26425 )
...
This PR makes `io.open` use our own implementation again, but instead of
the real filesystem, it will now use the project's to check file
metadata and perform read and writes using project buffers.
This also cleans up the `io.open` implementation by splitting it into
multiple methods, adds tests for various File I/O patterns, and fixes a
few bugs in read formats.
Release Notes:
- N/A
2025-03-11 00:52:16 -03:00
Angelk90
d562f58e76
git_ui: Show more information in the branch picker ( #25359 )
...
Final product:

Release Notes:
- Added more information about Git branches to the branch picker.
---------
Co-authored-by: Danilo Leal <daniloleal09@gmail.com >
Co-authored-by: Marshall Bowers <git@maxdeviant.com >
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com >
2025-03-10 21:05:29 -06:00
Conrad Irwin
94e4aa626d
Use current upstream for permalink to line ( #26398 )
...
Release Notes:
- git: Copy permalink to line now uses the upstream of the current
branch instead of "origin"
2025-03-10 20:53:46 -06:00
lydiandy
8ceba89d81
ui: Fix error code in button comment ( #26423 )
...
Closes #ISSUE
Release Notes:
ui: Fix error code in button comment.
- N/A *or* Added/Fixed/Improved ...
2025-03-11 02:15:39 +00:00
Conrad Irwin
c37d6d5fed
Unwind deprecated permalinks code ( #26395 )
...
Release Notes:
- N/A
2025-03-10 19:57:10 -06:00
Max Brunsfeld
1a3597d726
Fix race conditions in updating buffer diffs on git changes ( #26409 )
...
Release Notes:
- N/A
---------
Co-authored-by: Cole Miller <m@cole-miller.net >
2025-03-10 16:52:18 -07:00
Kirill Bulatov
c747cccde3
Revert "Return back a proper resolved value ( #26406 )" ( #26419 )
...
This reverts commit 1f8b14f4f1 .
Release Notes:
- N/A
2025-03-10 23:33:41 +00:00
Kirill Bulatov
d81e7683ea
Use proper order of Completion::Source field to have sane default ( #26416 )
...
Follow-up of https://github.com/zed-industries/zed/pull/26300
Release Notes:
- N/A
2025-03-10 18:58:21 -04:00
edwloef
8b29ee6033
Add variable.special color to Gruvbox themes ( #26271 )
...
This adds the `variable.special` color to the Gruvbox family of themes,
which colors special variables (in Rust's case `self`) differently than
normal ones. The colors were taken from the old Gruvbox `variable`
highlighting (see https://github.com/zed-industries/zed/pull/25464 ).
before:


after:


fixes half of https://github.com/zed-industries/zed/issues/26206 . Since
I don't use the Ayu themes I'd prefer someone who knows what looks good
there does those changes.
Release Notes:
- Gruvbox themes: Added a color for `@variable.special` syntax
highlights.
2025-03-10 18:43:18 -04:00
Conrad Irwin
96a75e08af
Fix panic opening branch picker in commit modal ( #26407 )
...
Closes #ISSUE
Release Notes:
- N/A
2025-03-10 16:36:23 -06:00
Marshall Bowers
06cbff6714
assistant2: Remove excess padding around scripting tool inputs ( #26412 )
...
This PR removes some excess padding around the rendered scripting tool
inputs.
Release Notes:
- N/A
2025-03-10 22:29:50 +00:00
Marshall Bowers
ce05813e7c
assistant2: Render scripting tool inputs when opening past threads ( #26408 )
...
This PR makes it so we render the scripting tool inputs to Markdown when
opening past threads.
Release Notes:
- N/A
2025-03-10 22:11:36 +00:00
Conrad Irwin
4d1d8d6d78
Git commit modal command ( #26405 )
...
Fix KeyBinding::for_action() to use the active focus handle instead of
what was
rendered last.
This makes the UI consistently chose the cmd-escape binding for close
(because escape in the editor is editor::Cancel?),
so force it to be "escape"
Release Notes:
- git: Fixed escape tooltip in commit modal
2025-03-10 16:10:53 -06:00
Kirill Bulatov
1f8b14f4f1
Return back a proper resolved value ( #26406 )
...
Follow-up of https://github.com/zed-industries/zed/pull/26300
https://github.com/zed-industries/zed/pull/26300/files#diff-a3da3181e4ab4f73aa1697d7b6dc0caa0c17b2a187fb83b076dfc0234ec91f54L16900
changed the snippets' `resolved` value but it should have not.
Release Notes:
- N/A
2025-03-10 23:48:04 +02:00
Marshall Bowers
082cc6184c
assistant2: Persist scripting tool uses in saved threads ( #26404 )
...
This PR makes it so the scripting tool uses are persisted to and
restored from saved threads.
Release Notes:
- N/A
2025-03-10 21:42:23 +00:00
Smit Barmase
6cfc4dc857
gpui: Fix transparent titlebar in fullscreen mode on macOS ( #26403 )
...
Closes #23735
This PR fixes an issue where Zed shows a transparent title bar in
fullscreen mode on macOS instead of the default gray one.
When switching to fullscreen mode, we change the title bar appearance to
opaque. When exiting fullscreen mode, we check the existing
`appears_transparent` flag that we pass to gpui to decide whether to
change the title bar back to transparent or not.
Note: Regardless of the `appears_transparent` flag, gpui should always
show an opaque title bar in fullscreen mode to prevent a broken
appearance, as macOS always displays the title bar in fullscreen mode
upon mouse interaction.
https://github.com/user-attachments/assets/211fb185-239b-454e-ac7f-b93b25d33805
Release Notes:
- Fixed issue where Zed showed transparent titlebar in fullscreen mode
on macOS.
2025-03-11 03:02:52 +05:30
Ben Kunkle
b9c48685e8
terminal: Support trailing :description or error message after file path ( #26401 )
...
Closes #25086
Release Notes:
- Fixed a bug where file paths in the built in terminal of the format
`path/to/file.ext:row:col:description or error message` would not be
correctly identified as file paths due to the colon & additional text at
the end
2025-03-10 16:20:48 -05:00
Marshall Bowers
570c396e84
assistant2: Remove unneeded pub on field ( #26399 )
...
This PR removes an unneeded `pub` on a field in the `ContextStrip`, as
it was never accessed externally.
Release Notes:
- N/A
2025-03-10 20:55:53 +00:00
Ben Kunkle
5fd034e604
docs: Add documentation for using debuggers with Zed ( #26391 )
...
Just some basic documentation for using debuggers in Zed development.
Goes over configuring cargo to include full debug info, attaching to an
instance of Zed, and using a debugger to debug panics and crashes
Release Notes:
- N/A
2025-03-10 15:51:51 -05:00
Cole Miller
63dab5f891
Add a missing notify when updating the project diff ( #26396 )
...
Closes #ISSUE
Release Notes:
- Git Beta: Fixed a bug that caused the project diff not to update in
response to git-related events
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2025-03-10 16:47:35 -04:00
Marshall Bowers
a2d6df3ed6
scripting_tool: Fix formatting of tool description ( #26397 )
...
This PR fixes the formatting of the scripting tool description, as it
had acquired some strange whitespaces.
Release Notes:
- N/A
2025-03-10 20:35:02 +00:00
Mikayla Maki
30e86ac939
Add a "secondary" meta key to GPUI keystroke parsing ( #26390 )
...
"secondary" means "cmd" on macOS and "ctrl" on not macOS.
Release Notes:
- Added a "secondary" meta key to the zed keystroke parser, which maps
to 'cmd' on macOS and 'ctrl' off of macOS
2025-03-10 13:32:13 -07:00
Nate Butler
976fc3ee97
git_ui: Design Polish ( #26361 )
...
Polish PR
- [ ] Horizontal scrollbar for git panel
- [ ] Allow shift clicking a checkbox in any section to stage the whole
section
- [ ] Clean up design of no changes/pending push state in panel
- [x] Ensure checkbox placeholder dot is centered in the checkbox
- [x] Improve spacing between elements in git panel entries
- [x] Update git branch icon to match branch selector text when disabled
- [x] Truncate last commit message less aggressively in panel
- [x] Clean up new panel header design
- [x] Remove `_background` version control keys (backgrounds are derived
from the foreground colors)
### Previous message truncation:
Before:

After:

### Make branch icon match when menu is disabled
Before:

After:

Release Notes:
- N/A *or* Added/Fixed/Improved ...
---------
Co-authored-by: Cole Miller <cole@zed.dev >
Co-authored-by: Cole Miller <m@cole-miller.net >
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2025-03-10 13:19:02 -07:00
Conrad Irwin
63091459d8
Allow too many arguments ( #26375 )
...
This is nearly half of our #allows, and seems like something we happily
break whenever we need
Release Notes:
- N/A
2025-03-10 13:38:30 -06:00
Conrad Irwin
659fae70f8
Remove GitUiFeatureFlag and enable panel unconditionally ( #26386 )
...
Release Notes:
- git: Enable for everyone
2025-03-10 13:38:07 -06:00
Marshall Bowers
02e970192f
assistant2: Improve Lua script rendering ( #26389 )
...
This PR improves the rendering of Lua scripts provided to the scripting
tool.
We now render them in code blocks with syntax highlighting:
<img width="1297" alt="Screenshot 2025-03-10 at 2 40 51 PM"
src="https://github.com/user-attachments/assets/def65b5c-86a8-490f-aaa5-5cc1687fe01e "
/>
Release Notes:
- N/A
2025-03-10 18:54:03 +00:00
Julia Ryan
5ecc67f2ef
Remove --frozen flag for cargo-about ( #26385 )
...
This was added to support the nix build but accidentally broke our
bundling. I'll try to re-add it in a way that works for both in the
future.
Release Notes:
- N/A
2025-03-10 18:35:59 +00:00
Conrad Irwin
73dfb10c16
Scroll project diff into view always ( #26379 )
...
Closes #ISSUE
Release Notes:
- N/A
2025-03-10 12:28:07 -06:00
Marshall Bowers
e513e81046
assistant2: Decouple scripting tool from the Tool trait ( #26382 )
...
This PR decouples the scripting tool from the `Tool` trait while still
allowing it to be used as a tool from the model's perspective.
This will allow us to evolve the scripting tool as more of a first-class
citizen while still retaining the ability to have the model call it as a
regular tool.
Release Notes:
- N/A
2025-03-10 17:57:03 +00:00