Component: zed · Channel: stable. Automated analysis, not a compatibility certification. How this works.
Analysis updated: 2026-11-26.
Breaking-change evidence from the source
Breaking Changes and Notices - Renamed one `cursor_shape` from `underscore` to `underline` ([#19028](https://github.com/zed-industries/zed/pull/19028)).
Zed v0.158.1 introduces targeted formatting actions, terminal vi-mode support, and improved language server precedence alongside critical bug fixes. The release also includes a minor configuration naming change for cursor shapes.
You can now format active selections with the primary language server via `editor: format selections`, leverage Alacritty vi-mode in the integrated terminal, and benefit from more reliable `direnv` language server prioritization.
📊 Product & Engineering Leads
Feature velocity remains high with deep improvements to Vim navigation, Supermaven AI completion stability, and smarter auto-detection for TypeScript, JavaScript, and shell scripts.
⚙️ DevOps & Security
No direct infrastructure or CI/CD impacts, though local developer environments utilizing direnv and custom terminal locales will operate more reliably.
⚠️ Breaking Changes & Deprecations (1)
Breaking Changes and Notices - Renamed one `cursor_shape` from `underscore` to `underline` ([#19028](https://github.com/zed-industries/zed/pull/19028)).
✨ New Features & Capabilities (4)
Added editor: format selections action to format only currently selected text via primary language server
Added editor: reload file command and Vim equivalent commands (:e[dit] and :e[dit]!)
Added basic support for Alacritty's vi mode in the built-in terminal via ctrl-shift-space
Added z keybindings for scrolling in Vim mode
⚡ Performance & Enhancements (4)
Improved performance on macOS when working with very long lines
Switched to using system locale in the terminal instead of forcing en_US.UTF-8
Improved language auto-detection and shebang handling for TypeScript, JavaScript, and shell scripts
Improved Vim mode's whole word match using search bar settings
🔧 Bug Fixes & Patches (4)
Fixed a bug where language servers from PATH were prioritized over direnv
Fixed Astro LSP interactions
Fixed a bug where Prettier attempted to install too frequently
Fixed Supermaven crashing on deleting non-ASCII text
❓ Frequently Asked Questions
Does Zed v0.158.1 contain breaking changes?
Yes, one configuration option has a breaking change: the `cursor_shape` value `underscore` has been renamed to `underline`.
What is the primary highlight of v0.158.1?
The primary highlight is the expansion of Vim integration features-including Alacritty vi-mode in the terminal-alongside targeted selection formatting and fixes for language server prioritization with direnv.
How should teams prepare to upgrade to v0.158.1?
Teams should check their user or project configuration files for any occurrences of the `cursor_shape` setting set to `underscore` and update them to `underline`.
📄 View Raw Release Notes (Original Developer Log)
## Enhancements
### General
- Added the ability to click intermediate auto-folded project panel entries ([#18956](https://github.com/zed-industries/zed/pull/18956)).
- Added a new `editor: format selections` action that allows formatting only the currently selected text via the primary language server ([#18752](https://github.com/zed-industries/zed/pull/18752); thanks [terziele](https://github.com/terziele)).
- Added an `editor: reload file` command ([#18395](https://github.com/zed-industries/zed/pull/18395); thanks [schpet](https://github.com/schpet)).
- Improved performance on macOS when working with very long lines ([#19215](https://github.com/zed-industries/zed/pull/19215)).
- Adjusted the divider rule in LSP hovers to be more muted ([#19255](https://github.com/zed-industries/zed/pull/19255); thanks [dyedgreen](https://github.com/dyedgreen)).
- Switched to using the system locale in the terminal instead of forcing `en_US.UTF-8` ([#18967](https://github.com/zed-industries/zed/pull/18967); thanks [shish](https://github.com/shish)).
- Improved Supermaven completions by preventing suggestions based on outdated cursor positions ([#18858](https://github.com/zed-industries/zed/pull/18858); thanks [kevmo314](https://github.com/kevmo314)).
### Languages
- Improved language auto-detection of TypeScript, JavaScript, and shell scripts. Added shebang detection for ts-node, tsx, bun, Deno JS, Deno TS, dash, and ash ([#19114](https://github.com/zed-industries/zed/pull/19114)).
- Improved automatic indentation behavior in JSX ([#18816](https://github.com/zed-industries/zed/pull/18816); thanks [schpet](https://github.com/schpet)).
### Vim
- Added basic support for Alacritty's [vi mode](https://github.com/alacritty/alacritty/blob/master/docs/features.md#vi-mode) to the built-in terminal (which is using Alacritty under the hood). Vi mode can be activated with `ctrl-shift-space`, enabling basic motions to navigate the terminal's scrollback buffer ([#18715](https://github.com/zed-industries/zed/pull/18715); thanks [NukaCody](https://github.com/NukaCody)).
- Added support for using the insert button to activate vim mode ([#19245](https://github.com/zed-industries/zed/pull/19245); thanks [axelcarl](https://github.com/axelcarl)).
- Added `:e[dit]`, `:e[dit]!`, which call the `editor: reload file` command ([#18395](https://github.com/zed-industries/zed/pull/18395); thanks [schpet](https://github.com/schpet)).
- Added `z` keybindings for scrolling ([#18928](https://github.com/zed-industries/zed/pull/18928); thanks [syndesis](https://github.com/syndesis)).
- Changed `/` in Vim mode to always reset the search options in the search bar back to regex-only. That means using `*` (in normal or visual mode) still works with its options, but the next `/` will reset the search options. That makes it much closer to how `/` behaves in Vim ([#19058](https://github.com/zed-industries/zed/pull/19058)).
- Improved vim mode's whole word match by using the search bar's "Match whole words" option, instead of wrapping the search term with `\<...\>`. This allows easier toggling of whole-word search, and it also works without enabling the regex mode ([#18725](https://github.com/zed-industries/zed/pull/18725); thanks [osa1](https://github.com/osa1)).
- Added a `regex` option to `vim::Search` command to allow disabling regex search by default in the keymap ([#19177](https://github.com/zed-industries/zed/pull/19177); thanks [osa1](https://github.com/osa1)).
Example usage:
```yaml
{
"context": "VimControl && !menu",
"bindings": {
"/": ["vim::Search", { "regex": false }],
}
}
```
## Bug Fixes
- Fixed Astro LSP interactions ([#19266](https://github.com/zed-industries/zed/pull/19266)).
- Fixed a bug where prettier was attempting to install too frequently ([#19283](https://github.com/zed-industries/zed/pull/19283)).
- Fixed a bug where language servers from PATH would sometimes be prioritized over the ones from `direnv` ([#19144](https://github.com/zed-industries/zed/pull/19144); thanks [WeetHet](https://github.com/WeetHet)).
- Fixed `\s` in regex search not behaving correctly ([#19241](https://github.com/zed-industries/zed/pull/19241)).
- Fixed an issue where the project search would sometimes show "Search all files" when there were no results ([#19108](https://github.com/zed-industries/zed/pull/19108); thanks [CharlesChen0823](https://github.com/CharlesChen0823)).
- Fixed a bug where relative paths were copied incorrectly from tab context menu ([#19206](https://github.com/zed-industries/zed/pull/19206); thanks [CharlesChen0823](https://github.com/CharlesChen0823)).
- Fixed a bug where Supermaven was crashing on deleting non-ASCII text ([#19153](https://github.com/zed-industries/zed/pull/19153); thanks [JunkuiZhang](https://github.com/JunkuiZhang)).
- Fixed tab closing not respecting history. You can use the `tabs.activate_on_close = neighbour` settings to activate adjacent tabs, if you prefer that behavior ([#19150](https://github.com/zed-industries/zed/pull/19150)).
- Fixed support for macOS Keyboard Shortcuts for specific menu items like `Window->Zoom` ([#18921](https://github.com/zed-industries/zed/pull/18921); thanks [henryhchchc](https://github.com/henryhchchc)).
- Fixed a bug where auto-indent was not enabled while typing in multi-buffers ([#18984](https://github.com/zed-industries/zed/pull/18984)).
## Breaking Changes and Notices
- Renamed one `cursor_shape` from `underscore` to `underline` ([#19028](https://github.com/zed-industries/zed/pull/19028)).