55c4730
Align the inline assistant correctly (#12478)
Click to expand commit body
Release Notes:
- Fixed the the alignment for the inline assistant.
Antonio Scandurra
created
6ff01b1
Improve model selection in the assistant (#12472)
Click to expand commit body
https://github.com/zed-industries/zed/assets/482957/3b017850-b7b6-457a-9b2f-324d5533442e
Release Notes:
- Improved the UX for selecting a model in the assistant panel. You can
now switch model using just the keyboard by pressing `alt-m`. Also, when
switching models via the UI, settings will now be updated automatically.
When running the tests for linux, I found a lot of benign errors getting
logged. This PR cuts down some of the noise from unnecessary workspace
serialization and SVG renders
Release Notes:
- N/A
This PR fixes an issue in `rustdoc_to_markdown` with code blocks being
trimmed incorrectly.
We were erroneously popping from the current element stack even if we
didn't push an element onto the stack.
Added test coverage for this case as well, so we don't regress.
Release Notes:
- N/A
This PR makes it so Rust code blocks are recognized and
syntax-highlighted when converting from rustdoc to Markdown.
Release Notes:
- N/A
Marshall Bowers
created
b8d9713
Make prompt library icon in context panel staff-only for now (#12457)
Click to expand commit body
This is still pretty raw, so I'd like to hold off on shipping it to all
users.
Release Notes:
- Hide the prompt library for non-staff until it is in a more complete
state.
Nathan Sobo
created
abec028
rustdoc_to_markdown: Clean up heading spacing (#12456)
Click to expand commit body
This PR cleans up the spacing around the Markdown headings in the output
so that they are consistent.
Release Notes:
- N/A
This PR adds a `/rustdoc` slash command for retrieving and inserting
rustdoc docs into the Assistant.
Right now the command accepts the crate name as an argument and will
return the top-level docs from `docs.rs`.
Release Notes:
- N/A
Marshall Bowers
created
dd328ef
Compute git statuses using the bundled git executable, not libgit2 (#12444)
Click to expand commit body
I realized that somehow, the `git` executable is able to compute `git
status` much more quickly than libgit2, so I've switched our git status
logic to use `git`. Follow-up to
https://github.com/zed-industries/zed/pull/12266.
Release Notes:
- Improved the performance of git status updated when working in large
git repositories.
- Added support for xdg trash when deleting files on linux
- moved ashpd depency to toplevel to use it in both fs and gpui
If I need to add test, or change anything, please let me know. I tested
locally by creating and deleting a file and confirming it showed up in
my trashcan, but that probably a less than ideal method of confirming
correct behavior
Also, I could remove the delete directory function for linux, and change
the one configured for macos to compile for both macos and linux (they
are the same, the version of the function they are calling is
different).
Release Notes:
- N/A
This PR adds a new crate for converting rustdoc output to Markdown.
We're leveraging Servo's `html5ever` to parse the Markdown content, and
then walking the DOM nodes to convert it to a Markdown string.
The Markdown output will be continued to be refined, but it's in a place
where it should be reasonable.
Release Notes:
- N/A
Marshall Bowers
created
a22cd95
Fix deleted hunk offset when zooming (#12442)
Click to expand commit body
Release Notes:
- Fixed an issue where expanded hunks could be rendered at the wrong
position when zooming
- Fixed an issue where expanded hunks could be rendered at the wrong
position when toggling git blame
([#11941](https://github.com/zed-industries/zed/issues/11941))
Bennet Bo Fenner
created
44c50da
blade: Use BufferBelt from blade-utils (#12411)
Click to expand commit body
Release Notes:
- N/A
Follow-up to #12340
Carries https://github.com/kvark/blade/pull/122 and
https://github.com/kvark/blade/pull/119
dca5bc5
Fix editor scrolling when closing tab using middle mouse button (#12429)
Click to expand commit body
#12005 introduced a side effect, that would cause the editor to react to
a scroll event when using the middle mouse button to close a tab
Before:
https://github.com/zed-industries/zed/assets/53836821/46cb2e71-e9d5-477c-b34a-dc9b6bc9b1f1
After:
https://github.com/zed-industries/zed/assets/53836821/6ada7985-97c9-4b52-848f-c7f9461c5216
Release Notes:
- Fixed an issue where the editor would scroll upwards if other tabs
were closed using the middle mouse button
Bennet Bo Fenner
created
1db33b5
Always include context when performing inline transformation (#12426)
Click to expand commit body
Release Notes:
- Improved clarity for inline transformations by always including the
active assistant context.
You can see in the video that hunks were getting toggled even when
clicking on the scrollbar.
https://github.com/zed-industries/zed/assets/53836821/11f201e8-c5f1-49c8-a4d2-ac3b3343b5a8
This happened because the hitbox was actually extended to the left of
the hunk indicator, I believe that was done so that "Removed" hunk
indicators rendered correctly (Red triangles)
Fixed:
https://github.com/zed-industries/zed/assets/53836821/7b451b37-da85-4e56-9127-2a5512bd9e7a
Release Notes:
- Fixed hunk indicators getting expanded when clicking near them (but
not on them)
Bennet Bo Fenner
created
a0644ac
Allow specifying a custom limit for /search results (#12423)
f3e6a0b
project panel: Copy dragged entry when opt is pressed (#12348)
Click to expand commit body
Partially fixes #5119
TODO:
- [ ] Change cursor style to Copy when dragging an entry with opt
pressed.
Release Notes:
- Drag-and-dropping a project panel entry with opt modifier pressed now
copies the entry instead of moving it.
Piotr Osiewicz
created
4acfab6
Fix logic errors in `RateLimiter` (#12421)
Click to expand commit body
This pull request fixes two issues in `RateLimiter` that caused
excessive rate-limiting to take place:
- c19083a35c89a22395595f8934c117a14943ed24 fixes a mistake that caused
us to load buckets from the database incorrectly and set the
`refill_time_per_token` to equal the `refill_duration`. This was the
primary reason why rate limiting was acting oddly.
- 34b88d14f6d9fde4d967554fc2e81498c1be3e26 fixes another slight logic
error that caused tokens to be underprovisioned. This was minor compared
to the bug above.
Release Notes:
- N/A
Antonio Scandurra
created
3c6c850
task: Add re-run task button to terminal title (#12379)
Click to expand commit body
Release Notes:
- Added re-run task button to terminal title.
Close #12277
## Demo
https://github.com/zed-industries/zed/assets/5518/4cd05fa5-4255-412b-8583-68e22f86561e
---------
Co-authored-by: Piotr Osiewicz <piotr@zed.dev>
Jason Lee
and
Piotr Osiewicz
created
36d0b71
project panel: adjust right border and make active entry more prominent when panel is not focused (#12420)
Click to expand commit body
Release Notes:
- N/A
Piotr Osiewicz
created
ef58509
Show symlink tooltip on icon hover only (#12419)
Click to expand commit body
Small follow-up of https://github.com/zed-industries/zed/pull/12263
Release Notes:
- N/A
c03600c
Stop silently appending a system prompt for edit formatting (#12407)
Click to expand commit body
We should reintroduce this as part of the prompt library.
Release Notes:
- Removed an over-eager system prompt from the assistant that was
causing misbehavior. Going forward, our intent is to always let you
observe and edit text before we send it.
---------
Co-authored-by: Marshall <marshall@zed.dev>
82a57a1
Disable `calls.share_on_join` by default (#12401)
Click to expand commit body
This PR changes the default value of the `calls.share_on_join` setting
from `true` to `false`.
Nathan mentioned that project sharing should be opt-in so that projects
aren't shared unless you intend for them to be.
Release Notes:
- Changed the default `calls.share_on_join` value to `false`.
Marshall Bowers
created
7969a10
Support setting custom background color for syntax highlighting (#12400)
Click to expand commit body
Release Notes:
- Added support for `background_color` in `syntax` map in `theme.json`.
This adds support for setting a `background_color` for styles inside the
`syntax` map for themes defined in `theme.json`. The field is optional
so there should be no backwards compatibility issues.
It is worth noting that the current behaviour for selecting text is that
the background colours will mix/blend (I'm not sure the correct term
here). Changing this behaviour, or making it configurable, looks to be a
far more complex issue and I'm not sure I know how to do it.
This PR updates the Elixir docs with a note on how to switch to using
other language server.
Release Notes:
- N/A
---------
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
barseek
and
Marshall Bowers
created
cd77e72
docs: Demonstrate disabling `solargraph` when enabling `ruby-lsp` (#12399)
Click to expand commit body
This PR fixes a small issue in the Ruby docs, where we weren't properly
demonstrating that `solargraph` should be disabled when enabling
`ruby-lsp`.
Release Notes:
- N/A
Marshall Bowers
created
bde3056
Increase rate limit on LLM requests to 1000/hr (via env var) (#12396)
* Start with a longer duration
* Widen the range used for randomizing the duration between retries
* Increase the maximum duration between retries
Release Notes:
- N/A
Implemented the should_auto_hide_scrollbars method for Linux using
`xdg_desktop_portal` approach
Release Notes:
- N/A
Raunak Raj
created
08e3840
Update blade to pick up the descriptor initialization changes (#12340)
Click to expand commit body
Release Notes:
- N/A
Picks up https://github.com/kvark/blade/pull/118
Fixes #10351
Seeing that Zed loaded with Blade repository is consuming 260Mb of RAM.
We can tune this to be lower, but ultimately it doesn't matter: this
memory isn't wasted, it's just pools for memory and descriptors, which
may be used by bigger and more complex views of Zed.
Dzmitry Malyshau
created
ff9d6cc
project panel: Remove active selection border when project panel is not focused (#12385)
Click to expand commit body
This should make it less attention-grabbing.
Release Notes:
- N/A
Piotr Osiewicz
created
01e8688
Add placeholder for extension slash commands (#12387)
Click to expand commit body
This PR adds a slightly better placeholder for extension slash commands
than the current "TODO" text.
Right now we display the command name and an arbitrary icon.
<img width="644" alt="Screenshot 2024-05-28 at 12 15 07 PM"
src="https://github.com/zed-industries/zed/assets/1486634/11761797-5ccc-4209-8b00-70b714f10a78">
Release Notes:
- N/A
59662fb
Introduce `/search` command to assistant (#12372)
Click to expand commit body
This pull request introduces semantic search to the assistant using a
slash command:
https://github.com/zed-industries/zed/assets/482957/62f39eae-d7d5-46bf-a356-dd081ff88312
Moreover, this also adds a status to pending slash commands, so that we
can show when a query is running or whether it failed:
<img width="1588" alt="image"
src="https://github.com/zed-industries/zed/assets/482957/e8d85960-6275-4552-a068-85efb74cfde1">
I think this could be better design-wise, but seems like a pretty good
start.
Release Notes:
- N/A
Antonio Scandurra
created
016a144
project panel: Allow selecting multiple entries & add support for multiselect actions (#12363)
Click to expand commit body
Fixes #4983
TODO:
- [x] Improve release note.
- [x] Tests
Release Notes:
- Project panel now supports selecting multiple entries via cmd-click
and shift-click/shift-up/shift-down.
- Added support for handling multiple selected project panel entries to
Cut, Copy, Trash and Delete actions.
Piotr Osiewicz
created
1cf3496
indent guides: Adjust handling of folded lines (#12375)
a03813a
Add icon and hover description for symlinks (#12263)
Click to expand commit body


Resolves https://github.com/zed-industries/zed/issues/12142
Release Notes:
- Added in project panel an icon and hover description for symlinks ([12142](https://github.com/zed-industries/zed/issues/12142))
Patryck
created
f7115be
Add Flatpak build system and support (#12006)
Click to expand commit body
ping #6687
This is the third iteration of this PR ([v2
here](https://github.com/zed-industries/zed/pull/11949)) and uses a
different approach to the first two (the process wrapper lib was a
maintainability nightmare). While the first two attempted to spawn the
necessary processes using flatpak-spawn and host-spawn from the app
inside the sandbox, this version first spawns the cli binary which then
restart's itself *outside* of the sandbox using flatpak-spawn. The
restarted cli process than can call the bundled app binary normally,
with no need for flatpak-spawn because it is already outside of the
sandbox. This is done instead of keeping the cli in the sandbox because
ipc becomes very difficult and broken when trying to do it across the
sandbox.
Gnome software (example using nightly channel and release notes
generated using the script):
<img
src="https://github.com/zed-industries/zed/assets/81528246/6391d217-0f44-4638-9569-88c46e5fc4ba"
width="600"/>
TODO in this PR:
- [x] Bundle libs.
- [x] Cleanup release note converter.
Future work:
- [ ] Auto-update dialog
- [ ] Flatpak auto-update (complete 'Auto-update dialog' first)
- [ ] Experimental
[bundle](https://docs.flatpak.org/en/latest/single-file-bundles.html)
releases for feedback (?).
*(?) = Maybe / Request for feedback*
Release Notes:
- N/A
---------
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
Co-authored-by: Mikayla Maki <mikayla.c.maki@gmail.com>
Owen Law
,
Marshall Bowers
, and
Mikayla Maki
created