Releases

Keep up with the weekly Zed releases.


July

0.146.0

07/24/2024

macOS
Linux

Enhancements

Zed now features a built-in REPL!

Run Python Block by Block
Run Python Block by Block

You can run code:

  • Line by line
  • Block by block (# %%)
  • Any selection

View the blog post for more details.

General

  • Added ability to restore all windows that were open when Zed was quit. Previously only the last used workspace was restored. This is now the default behavior. To get back the old behavior, add the following to your settings: {"restore_on_startup": "last_workspace"} (Part of #4985 and #4683).
  • Added automatic restoring of unsaved buffers. Zed can now be closed even if there are unsaved changes in buffers. One current limitation is that this only works when having projects open, not single files or empty windows with unsaved buffers. The feature can be turned off by setting {"session": {"restore_unsaved_buffers": false}} (#4985, #4683).
  • Added support for quickly switching between multiple language model providers in the assistant panel.
  • Added the ability to create custom inline assist bindings that pre-fill a prompt from your keymap, e.g.:
[
    {
        "context": "Editor && mode == full",
        "bindings": {
            "ctrl-shift-enter": [
                "assistant::InlineAssist",
                { "prompt": "Build a snake game" }
            ]
        }
    }
]
  • Added the ability to automatically generate new summaries for assistant conversations or manually edit them.
  • Added support for gpt-4o-mini (#14769, thanks versecafe).
  • Improved the way git hunks diff can be toggled with mouse. Now, clicking on the diff marker will toggle an actions menu. Inline diffs now can be closed via the mouse, rather than just esc (#12404).
  • Extended task templates with shell and hide fields to use custom shells and allow for custom close behavior.
  • Allow user to configure multiple formatters for a given language: format and format_on_save now accept an array of formatting actions to run; language_server formatter option now accepts the name of a language server to use (e.g. {"language_server": {"name": "ruff"}}); when not specified, a primary language server is used (#4822).
  • Improved SublimeText keymap (Mac & Linux). Add key binding for MoveLineUp/Down (ctrl-shift-up on Linux and cmd-ctrl-up on MacOS) (#15089; thanks unixtensor).
  • Added a button to copy the SHA from a Git blame entry (thanks Hawkbawk).
  • Added Copy, Paste, Select All, & New Terminal to the terminal context menu (thanks versecafe).
  • Added the ability to sign out of a Supermaven account (#12715; thanks kevmo314).
  • Improved Supermaven status messages (#12715; thanks kevmo314).
  • Added "command_aliases" setting to let you abbreviate commands.
  • Improved UX of project search.
  • Added a hint the first few times you open a multibuffer to explain what is going on.
  • Refined the appearance of channel tabs.
  • Changed preference for GPUs on macOS so that eGPUs are now preferred over integrated ones (and both of which are preferred over discrete GPUs) on Intel Macs.

Languages

  • Added extension for Ruff, an extremely fast Python linter and code formatter, written in Rust. To install Ruff extension, open the command palette, search for zed: extensions and then in the search bar of the extensions view type in Ruff. Once installed, you can configure ruff to add additional lints and provide formatting via the following setting snippet:
"languages": {
    "Python": {
      "format_on_save": { "language_server": { "name": "ruff" } },
      "formatter": { "language_server": { "name": "ruff" } },
      "language_servers": ["pyright", "ruff"]
    }
}
  • TypeScript's tsconfig.json files are now treated as JSONC.
  • Added syntax highlighting for the using keyword in TypeScript (#14762; thanks versecafe).
  • Added syntax highlighting to TypeScript's infer keyword (#14696; thanks rimuy).

Vim

  • Added support for count and object motion to the toggle comments action (#14337; thanks hahanein).
  • Updated Y to yank to end of line (like neovim) (#14771, thanks vbhavsar).
  • Fixed jk binding preventing you from repeating j (#14725).
  • Fixed escape in normal mode to also clear the selected register (#14311).
  • Fixed gv after y, d, etc. (#13760).
  • Fixed right clicks changing vim mode (#14625, thanks Congyuwang).
  • Fixed assistant: quote selection not working correctly when making visual-line-mode selections in Vim mode.

Bug Fixes

  • Fixed multiline details provided by vtsls breaking rendering in autocompletions (thanks WeetHet).
  • Fixed a bug where diagnostic popups would flicker when moving the cursor within the boundaries of the symbol (thanks WeetHet).
  • Fixed a bug where the inline_assistant would overwrite tabs with spaces in some cases (#14885; thanks arturhoo).
  • Fixed a bug where Supermaven truncated lines when accepting inline suggestions (#13039; thanks kevmo314).
  • Fixed rare cases where a code action triggered by diagnostic may not be available for use.
  • Fixed multi-key shortcuts not working across completion menu changes (#11009).
  • Fixed multi-key shortcuts discarding earlier input (#14445).
  • Fixed key maps so user-defined mappings take precedence over builtin multi-key mappings (#13543).
  • Fixed a bug where overridden shortcuts would still show in the Command Palette.
  • Fixed outline panel's filter not accepting spaces.
  • Fixed a bug where backslashes would not appear in snippets (#14721; thanks lnay).
  • Fixed a bug that caused focus to be lost when renames and inline assists were scrolled offscreen.
  • Fixed syntax highlights being offset from syntax in diagnostics popovers.
  • Fixed worktree ordering in workspace serialization (thanks eth0net).
  • Fixed an issue where the shared screen tab's icon would not render as dimmed when the tab was inactive.
  • Fixed ESLint language server adding comments on save if the source.organizeImports code action was used on save. Zed now filters out code actions sent to the language servers by checking whether they are supported first (#13633).
  • Linux: Fixed typing shortcuts like ctrl-/ on some systems.
  • Linux: Fixed a panic that occurred when GPU was temporarily unavailable (#12766, #14022).
  • Linux: Fixed auto-update into custom tarball locations (#14291; thanks ArrayBolt3).
  • Linux: Use local time zone in chat and Git blame (#14610; thanks apricotbucket28).