Commit log

d664f56 zed 0.161.2

Peter Tripp created

4f51496 Allow base64 encoded images to be decoded with or without padding (#20616)

Click to expand commit body
The R kernel doesn't use base64 padding whereas the Python kernel (via
matplotlib) sometimes uses padding. We have to use the `base64` crate's
`Indifferent` mode.

/cherry-pick v0.161.x

Release Notes:

- N/A

Kyle Kelley created

71921c7 Set up editor actions after workspace not on stack (#20445)

Click to expand commit body
Release Notes:

- N/A

Co-authored-by: Conrad Irwin <conrad@zed.dev>

Kyle Kelley and Conrad Irwin created

395a236 v0.161.x stable

Joseph T. Lyons created

fb6774c Fix issue with image output from Jupyter kernels that didn't use base64 padding (#20561)

Click to expand commit body
This upgrades `nbformat` and `runtimelib` to handle jupyter types with
even more validation and flexiblity. This also processes any multiline
string data coming from the kernel, including with image data (like
`image/png`). While I was at it I also fixed a longstanding issue around
images by eliminating all whitespace (something `atob` does) and using
the no pad decoder.

Fixes: #17956

Before:

<img width="741" alt="image"
src="https://github.com/user-attachments/assets/37ec2cae-ce78-4475-aaa3-4d785e4015d0">

After:

<img width="727" alt="image"
src="https://github.com/user-attachments/assets/e2431ba2-048b-4205-9898-54f357795a9c">


Release Notes:

- Fixed issue with image output from REPL kernels that didn't use base64
padding

Kyle Kelley created

06533d5 zed 0.161.1

Joseph T. Lyons created

cd7416b Update Copilot Chat max_tokens soft limits (#20363)

Click to expand commit body
Closes #20362 

Co-authored-by: Peter Tripp <peter@zed.dev>

dhaus67 and Peter Tripp created

e5fc5ea Disable repl in non-local projects (#20397)

Click to expand commit body
Release Notes:

- Disable REPL buttons and actions for remote projects and collaboration
(only the host should have access).

Kyle Kelley created

ca006fb Add edit events for assistant panel and inline assist (#20418)

Click to expand commit body
Release Notes:

- N/A

Joseph T. Lyons created

c0099af Revert "Use correct context path for focused element in WindowContext::bindings_for_action (#18843)" (#20367)

Click to expand commit body
@JosephTLyons found that this broke display of keybindings in the recent
projects modal.

Release Notes:

- N/A

Michael Sloan created

65532a5 project panel: Fix preview tabs not working when enabled (#20416)

Click to expand commit body
PR #20154 introduced a regression and essentially disabled preview tabs
in code.

This fixes it and restores the old preview tabs behavior.

Release Notes:

- Fixed preview tabs being disabled in code, even if they were enabled
in the settings.

Co-authored-by: Piotr <piotr@zed.dev>

Thorsten Ball and Piotr created

bce4938 Improve outline panel keyboard navigation (#20385)

Click to expand commit body
Closes https://github.com/zed-industries/zed/issues/20187

Make outline panel more eager to open its entries:

* scroll editor to selected outline entries (before it required an extra
`"outline_panel::Open", { "change_selection": false }` action call)
* make any `Open` action call to behave like `"outline_panel::Open", {
"change_selection": true }` and remove the redundant parameter.
Now opening an entry is equal to double clicking the same entry: the
editor gets scrolled and its selection changes
* add a way to open entries the same way as excerpts are open in multi
buffers (will open the entire file, scroll and place the caret)

* additionally, fix another race issue that caused wrong entry to be
revealed after the selection change

Release Notes:

- Improved outline panel keyboard navigation

Kirill Bulatov created

1b1a8ba Don't introduce more failure

Conrad Irwin created

544b1e9 fix typo

Conrad Irwin created

25901ea de-dbg

Conrad Irwin created

8db3ea9 Fix extension tests on release branches

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

Conrad Irwin and Max created

15a0b94 v0.161.x preview

Peter Tripp created

815385c Add autoclosing braces for Shell Scripts (#20278)

Click to expand commit body
Added support for autoclosing braces `{}` and single quotes `''` in Shell Scripts

Peter Tripp created

eca3424 Update openSUSE dependencies to build on fresh Tumbleweed installation (#20298)

Lars Diederich created

71b3633 assistant: Remove automatic diagnostic attachment to tab and file commands (#20297)

Click to expand commit body
This PR returns the `/tab` and `/file` commands to their original
behavior of _not_ automatically including diagnostics. This is an
assistant-only change, though, given that we can already pass the
`/diagnostic` command by itself. The inline assistant will still have
the diagnostics baked in to allow prompts such as "Fix this error."

Release Notes:

- Remove automatic diagnostic attachment to tab and file commands in the
assistant panel

---------

Co-authored-by: Antonio Scandurra <me@as-cii.com>

Danilo Leal and Antonio Scandurra created

21f778c Reduce memory footprint for inline transformations (#20296)

Click to expand commit body
Closes https://github.com/zed-industries/zed/issues/18062

This pull request prevents the `scores` matrix for the streaming diff
from growing quadratically.

Previously, we would store rows and columns respectively for all
characters in the old and new text. However, every time we receive a
chunk, we will always advance the position in the matrix to the very
latest character in the new text. This means we can avoid storing scores
for the new characters that were already reported.

Randomized tests still pass and I also made sure that the diffs we
produce are identical.

Release Notes:

- Improved memory footprint for inline transformations
([#18062](https://github.com/zed-industries/zed/issues/18062))

Antonio Scandurra created

1eb6fb0 go: Run `./...` tasks against current module (#20190)

Click to expand commit body
In #17108, we updated `go test ./...` to run against the package
directory, to fix cases in which the top-level project is not the go
module root. However, this leads to the confusing behavior of `go test
./...` only running tests in subdirectories of the current package.
Here, we change the behavior to instead walk up the dirtree to find the
closest `go.mod`, and run the `./...` tasks relative to that directory.
This might lead to more predictable behavior for these tasks.

Also see:
https://github.com/zed-industries/zed/pull/19987#issuecomment-2450159099

Release Notes:

- Improved go test and generate `./...` commands to run against the
current go module directory rather than the current package directory

Roshan Padaki created

484e5df Add suggestion for CMake files (#20292)

Click to expand commit body
Release Notes:

- Added NeoCMake extension suggestion for cmake files (`CMakeLists.txt`
and `.cmake`)

Ilya Sorochan created

fef7df6 pane: Update pinned tab counts when unnamed buffer is discarded (#20294)

Click to expand commit body
Closes #19492

Release Notes:

- Fixed a crash that could happen when closing a workspace with pinned
untitled buffers.

Piotr Osiewicz created

1c84fd1 Use Zed handler for undo and redo macOS actions (#20293)

Click to expand commit body
Those seem to require a corresponding NSTextView/NSTextField with
explicitly enabled `allowsUndo` property. But Zed does not use any of
these *Text* elements, so there's nothing to allow undo on. Hence, use
the Zed handler, making both actions always enabled instead of being
always disabled.

Closes https://github.com/zed-industries/zed/issues/12335

Release Notes:

- Fixed undo and redo macOS menu items being always disabled
([#12335](https://github.com/zed-industries/zed/issues/12335))

Kirill Bulatov created

b6adab8 rope: Index tab locations for each chunk (#20289)

Click to expand commit body
This is a follow-up to #19913 and adds another "index" to the `Chunk`,
this time indexing the location of tabs.

Release Notes:

- N/A

---------

Co-authored-by: Antonio <antonio@zed.dev>

Thorsten Ball and Antonio created

d3a49f6 assistant: Rename "new context" to "new chat" (#20043)

Click to expand commit body
This PR is only updating UI strings and pieces of the documentation—it
doesn't touch the actual code, where it's still using things such as
`NewContext` and similar terminology for variables, actions, etc.

Release Notes:

- N/A

Danilo Leal created

c2cf4c4 Fix path to install-mold script in linux script (#20286)

Click to expand commit body
Release Notes:

- N/A

Patrick Decat created

bd03dea git: Add support for opening git worktrees (#20164)

Click to expand commit body
This adds support for [git
worktrees](https://matklad.github.io/2024/07/25/git-worktrees.html). It
fixes the errors that show up (git blame not working) and actually adds
support for detecting git changes in a `.git` folder that's outside of
our path (and not even in the ancestor chain of our root path).

(While working on this we discovered that our `.gitignore` handling is
not 100% correct. For example: we do stop processing `.gitignore` files
once we found a `.git` repository and don't go further up the ancestors,
which is correct, but then we also don't take into account the
`excludesFile` that a user might have configured, see:
https://git-scm.com/docs/gitignore)


Closes https://github.com/zed-industries/zed/issues/19842
Closes https://github.com/zed-industries/zed/issues/4670

Release Notes:

- Added support for git worktrees. Zed can now open git worktrees and
the git status in them is correctly handled.

---------

Co-authored-by: Antonio <antonio@zed.dev>
Co-authored-by: Bennet <bennet@zed.dev>

Thorsten Ball , Antonio , and Bennet created

3f777f0 Fix project panel losing focus after file creation attempt (#20273)

Click to expand commit body
Closes https://github.com/zed-industries/zed/issues/19771

### Before

When pressing <kbd>esc</kbd> after attempting to create a file, the
focus is lost and you don't know where it went.


https://github.com/user-attachments/assets/2ccd82b7-b7d2-49e4-b1c7-1867331ab9dc

### After

Now, after pressing <kbd>esc</kbd>, the focus returns to where it was
before trying to create a new file.


https://github.com/user-attachments/assets/a8eb1cf1-dfef-42eb-9f3d-2ab6200056c4

Release Notes:

- Fix project panel losing focus after file creation attempt
([#19771](https://github.com/zed-industries/zed/issues/19771))

---------

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>

Danilo Leal and Kirill Bulatov created

846aec7 Remoting: Fix opening multiple folders on one server (#20281)

Click to expand commit body
Release Notes:

- Remoting: Fix opening multiple folders on one server

Conrad Irwin created

cfce6a8 Potentially fix invocation of draft-release-notes (#20265)

Click to expand commit body
Release Notes:

- N/A

Conrad Irwin created

803e5d4 vim: Fix readonly mode (#20264)

Click to expand commit body
Closes #18854

Release Notes:

- vim: Fixed `r`, `~` etc. appearing to modify readonly buffers

Conrad Irwin created

c10c35f Fix duplicate SshProject's in Remote Projects menu (#20271)

Click to expand commit body
Closes #20269

Release Notes:

- Changes SshConnection to use a BTreeSet of SshProject's instead of a
Vec of SshProject's in order to remove duplicate remote projects from
"settings.json" and the Remote Projects menu.

AidanV created

38b1940 Re-entrant SendKeystrokes (#20277)

Click to expand commit body
Release Notes:

- Improved `workspace::SendKeystrokes` to support re-binding keys. For
example you can now do: `"x": ["workspace::SendKeystrokes", "\" _ x"]`
in vim mode to ensure that `x` does not clobber your clipboard.
- Improved key binding documentation

Conrad Irwin created

50069a2 Unbind app menu actions (#20268)

Click to expand commit body
Closes #7544

Release Notes:

- Fixed an issue that prevented removing key bindings for actions used
in the macOS application menu.

Max Brunsfeld created

b23835b Disable sccache during dev extension builds (#20270)

Kirill Bulatov created

e47b305 Use correct context path for focused element in WindowContext::bindings_for_action (#18843)

Click to expand commit body
Previously, we were reaching in and using the context_stack on the dispatch tree, which was incorrect.

/cc @as-cii 
/cc @ConradIrwin

Release Notes:

- N/A

---------

Co-authored-by: Michael Sloan <michael@zed.dev>

Nathan Sobo and Michael Sloan created

7931342 Fix typo in Ansible docs (#20267)

Click to expand commit body
fix typo in Ansible docs.

Release Notes:

- N/A

Will Bradley created

282f624 Fix outline panel selection races (#20263)

Click to expand commit body
Follow-up of https://github.com/zed-industries/zed/pull/20211

Release Notes:

- N/A

Kirill Bulatov created

73bbdd4 Allow vim macros in visual mode (#20261)

Click to expand commit body
Closes #19764

Release Notes:

- vim: Fixed `q` and `@` in visual mode

Conrad Irwin created

2364984 Use zed-style shifted letters (#20254)

Click to expand commit body
Release Notes:

- vim: Fixed some shortcuts to render correctly in Command

Conrad Irwin created

86ff6e2 vim: Fix paragraphs with softwrap (#20259)

Click to expand commit body
Closes #19778

Release Notes:

- vim: Fixed paragraph object in the presence of softwrap

Conrad Irwin created

4bf6fb2 vim: Fix search in the Assistant (#20258)

Click to expand commit body
Closes #17704

Release Notes:

- vim: Fix search in the assistant panel

Conrad Irwin created

c527f2e Prevent extra line break on long token at start of rewrap (#20256)

Click to expand commit body
Closes #19532

Release Notes:

- Fixed a bug where rewrapping with a long word at the start of the line
would cause a new line to be inserted.

Co-authored-by: Will Bradley <will@zed.dev>

Mikayla Maki and Will Bradley created

47defa2 docs: Add documentation for configuring clangd in C-only mode (#20255)

Peter Tripp created

6dfff1b Improve rewrap for ideographic writing systems (#20218)

Click to expand commit body
Closes #19733

Before:

https://github.com/user-attachments/assets/5399e8fd-2687-445a-a8ab-023c348aff3f

After:

https://github.com/user-attachments/assets/b4ea5cb6-92ec-49ae-a982-194a1fc68d88

Release Notes:

- improve handling of text wrapping in Rewrap for some ideographic
writing systems

Co-authored-by: Richard <richard@zed.dev>
Co-authored-by: Mikayla <mikayla@zed.dev>

Will Bradley , Richard , and Mikayla created

66e0661 Don't write temp files for telemetry logs (#20209)

Click to expand commit body
This still keeps a telemetry.log for the current session, but not one
file per load of zed.

Closes: #20045

Release Notes:

- Fixed a bug where Zed would create a new temporary file on each boot
for telemetry logs

Conrad Irwin created

765626a Disable /search by default (#20252)

Click to expand commit body
This stops us sending GetCachedEmbeddings requests which frequently time
out
after 10s, and block the collab connection.

Release Notes:

- N/A

Conrad Irwin created

27cdc6c Reuse focused buffer search query in the project search (#20253)

Click to expand commit body
Closes https://github.com/zed-industries/zed/issues/10011

Release Notes:

- Reuse focused buffer search query in the project search
([#10011](https://github.com/zed-industries/zed/issues/10011))

Kirill Bulatov created