r/ZedEditor • • 4h ago

rs-gopls: A fast, low-memory Go language server in Rust (works as a drop-in gopls replacement in Zed)

5 Upvotes

Hi r/zededitor,

I built rs-gopls, an open-source Go language server written in Rust (using Tree-sitter + incremental declaration indexes, with the Go toolchain for package graphs), and I use it directly in Zed as a drop-in gopls replacement.

Why it fits Zed well:

- Fast navigation & completion: In synthetic benchmarks (Windows x64, P50 / P95): completion 1.29 / 4.66 ms (first) and 0.54 / 2.63 ms (repeat); workspace symbols 0.09 / 0.14 ms; repeat Go to Implementation 0.21 / 0.32 ms.

- Low memory: 449 ms cold startup and 46.5 MiB peak working set on a 120-package test workspace (plus an opt-in RS_GOPLS_LARGE_FILE_MEMORY_OPT=1 mode for huge generated Go files).

- Works across everyday Go workflows: Go to definition / type definition, find references, bidirectional Go to Implementation (interface ↔ concrete type/method), completion & auto-import, hover, signature help, diagnostics, formatting, safe rename, inlay hints, and call/type hierarchy across go.mod, go.work, and GOPATH.

Install:

go install github.com/o0olele/rs-gopls/cmd/rs-gopls@latest

(Installs a tiny zero-dependency Go launcher that downloads, SHA256-verifies, and caches the matching prebuilt Rust binary from GitHub Releases for Linux, macOS Apple Silicon, and Windows. Prebuilt archives and Cargo builds are also available.)

Zed setup (.zed/settings.json or global settings.json):

{
  "languages": { "Go": { "language_servers": ["gopls"] } },
  "lsp": {
    "gopls": {
      "binary": {
        "path": "rs-gopls"
      }
    }
  }
}

(If your Go bin directory isn't on Zed's PATH*, replace* "rs-gopls" with the full path to the binary.)


r/ZedEditor • • 1d ago

sorting code elements (functions, classes, etc)

6 Upvotes

i have looked but haven't found anything that does this. i'm not sure if i'm prepared to put the effort into writing it myself as an extension but i'm curious if anyone has already done it before i seriously consider doing it.

i frequently work on projects with a large amount of small functions, likely a common situation in development. often thousands or tens of thousands of them, separated into files depending on their purpose (a file for filesystem access, a file for authentication, a file for password recovery, etc). from an organizational perspective, it would be good to have a way to sort these functions to make them easier to find quickly. yes, you can certainly use the navigation to find a particular function but it would be easier if, for example, you could just sort them alphabetically.

i currently do that by running a shell script but it's messy and put together in a rush years ago. not to mention not nearly as convenient as being able to do it from within the editor instead of having to use a terminal.

i'm not sure if there's anything out there written to sort functions, classes, etc in various languages. i work primarily with php and javascript so those are the two i'm particularly interested in if it exists.


r/ZedEditor • • 1d ago

Cannot open file in new tab?

6 Upvotes

Ever since update 1.31, I cannot open file from same dir in new tab. No option in context menu either. I can drag a file into place but that is cumbersome. Is there an option I overlooked?

Zed on Linux

Zed 1.31.0 Commit: d62d34e7670e83f6972ce583a54530bab66e8d9e Version: 1.31.0+stable.400.d62d34e7670e83f6972ce583a54530bab66e8d9e


r/ZedEditor • • 2d ago

Zed always open a new window on workspace switch

Thumbnail reddit.com
1 Upvotes

r/ZedEditor • • 2d ago

Zed always open a new window

12 Upvotes

Hi,

since the last update I am having a huge problem switching between my opened workspace windows in Zed.

Before I always used the opt-cmd-O shortcut to switch between the windows, but now it always opens a new window. So I have multiple windows of the same project opened. Plus the terminal always restart and my commands which I entered before are on another window.

Does someone else experience the same problem and has a clue how to fix it?

I already set in settings.json "default_open_behavior": "new_window", but that doesn't change anything.

---
Zed 1.31.0

Commit: d62d34e7670e83f6972ce583a54530bab66e8d9e

Version: 1.31.0+stable.400.d62d34e7670e83f6972ce583a54530bab66e8d9e


r/ZedEditor • • 3d ago

Antigravity ACP support in Delta?

9 Upvotes

With the recent Gemini ToS changes, are we going to get support Gemini subscriptions inside Delta? (sorry if this isn't the right subreddit, but didn't find one dedicated to Delta yet)


r/ZedEditor • • 3d ago

Zed can now complete CSS font variables declared in Astro config

1 Upvotes

An Astro font can declare --font-body in astro.config.ts, while the stylesheet that uses it only contains font-family: var(--font-body). That left a gap in the CSS Variables extension I shared here in July: searching stylesheets for the declaration would never find it.

I added support for Astro font config to the Rust language server. If your font config sets cssVariable to "--font-body", try typing var(-- in a stylesheet. Zed can suggest the name, and Go to Definition takes you back to the config entry. The server reads the config as source code, so it can do this without running your project.

Zed extension: https://zed.dev/extensions/css-variables

Implementation and supported config forms: https://github.com/lmn451/css-lsp-rust/pull/18


r/ZedEditor • • 3d ago

User confirmation dialog gets buried when using Codex Agent

4 Upvotes

When using the Codex, the agent could ask the user for feedback while the agent is simultaneously going on with other tasks. The text box with the submit/cancel buttons for this feedback quickly gets buried in the thread and there seems to be no way to find or jump to the questions the agent is waiting on. Am I missing something? Is there a shortcut like "jump to last agent question" or something?


r/ZedEditor • • 4d ago

why zed dont have collapse folder button just like in Vs code to collapase internal inner directory folders at once?

11 Upvotes

r/ZedEditor • • 5d ago

Proof Light and Dark are now available in eight apps

Post image
76 Upvotes

Proof Light and Dark now work in Zed, VS Code, Cursor, Helix, Xcode, Codex CLI, Ghostty and Rio. All eight use the same theme source. The README has install steps for each app, plus a link to the VSIX release.

https://github.com/eugenebokhan/proof-theme


r/ZedEditor • • 5d ago

Google Antigravity ACP using "custom-agent" consumes 4x quota per token

Thumbnail
github.com
12 Upvotes

r/ZedEditor • • 6d ago

Zaku 26.1 - Local-first API client built with Zed's GPUI

Thumbnail
gallery
145 Upvotes

Hey, I wanted to share that Zaku 26.1 is out with support for environments and variables in requests.

About the app, it stores collections as folders and requests as TOML files. Everything is stored locally on user's filesystem, it doesn't have any login functionality (and never will). It is available on Linux, macOS and Windows.

It was initially built with Tauri and now rewritten in GPUI, here's the initial post i made on r/rust. I've been working on it for the last 10 months full-time.

Here's what's new:

  1. Define variables at the project, folder and environment level.
  2. Switch between environments with the environment selector.
  3. Use the new variables panel to manage environments and variables.
  4. Autocomplete variables as you type, with highlighting and hover previews.
  5. Switch, create and delete Git branches with the branch picker.
  6. Scale the UI with zoom controls.
  7. Prevent accidental overwrites when files change on disk.

If you try it out please let me know if there's something missing, not working or things you'd like to see added.

Repository:

https://github.com/buildzaku/zaku

Download:

https://zaku.dev/download


r/ZedEditor • • 8d ago

I built a one-way bridge from Zed's agent panel into T3 Code

Thumbnail
github.com
2 Upvotes

Over the last few months, my workflow has changed to be agent-first for most things. I've landed primarily on T3 Code, but I still find myself opening Zed and its agent panel when reviewing or modifying code (and I still love Zed for that purpose).

I built t3code-send, which uses ACP to send messages back into T3 Code and refocus the appropriate chat. It doesn't try to be a full ACP agent, it just hands off messages, as that's where I want to continue the chat. It technically works with any ACP client, but Zed was primarily what I had in mind when building it.

I've been using it for a couple of weeks and wanted to share it here with others.


r/ZedEditor • • 8d ago

You can remove the Title Bar now!!!

Thumbnail
gallery
180 Upvotes

In the latest update you can now remove the title bar, from its dedicated settings...finally after years of people asking for it 🤧.


r/ZedEditor • • 9d ago

I moved my terminal app from Tauri to GPUI: 76% less idle memory, 72% faster cold start

34 Upvotes

I moved muxflow (an app I'm building) from Tauri + React to GPUI, the framework Zed is built on. The desktop app is now 100% Rust.

Results, before any optimization of the GPUI version:

- Idle memory: 417 MB → 98 MB (76.5% lower)

- Idle CPU: 3.5% → 1.4%

- Time to first terminal prompt: 832 → 230 ms cold, 785 → 157 ms warm

- Typing latency p95: 47.4 → 31.2 ms

To be fair, muxflow was thin to begin with, so the raw numbers are a few tens of megabytes/ms.

This migration would be a strong no-go without LLMs. Pre-LLM the cost would be huge! Writing the whole UI in Rust vs the familiar React? But with LLMs, the cost goes away to just some tokens. And with that I get:

  1. Much better performance
  2. A codebase that is 100% Rust (beyond mobile)
  3. No finicky Tauri rendering differences between Mac and Linux

The ugly parts:

- The GPUI third-party crate ecosystem is very niche compared to React. With Tauri I used CodeMirror. With GPUI I couldn't use the Zed crates since they're GPL and muxflow is MIT, so I wrote my own lightweight markdown WYSIWYG and code editor.

- Build times. It's hard to run many agents in parallel, as parallel builds and tests put heavy I/O pressure on the machine. I haven't tried optimizing it yet.

Write-up with more detail: https://galvered.com/blog/muxflow-gpui-migration/

Curious whether others hit the same crate gap, and what you used for text editing in GPUI.


r/ZedEditor • • 9d ago

I've built a local sandbox for Zed

Thumbnail
coop.dryga.com
10 Upvotes

I’m managing a ton of infra, so I always have my Tailscale SSH, SSH keys, and various secrets accessible. I didn’t want any of the AI agents to compromise these, even to the model provider. To address this, I’ve developed a sandbox that utilizes ACP and works well with Zed (that is my daily driver).

It has some nice features on top of securing your Agents environment:

  1. Reduce risk of supply chain attacks: secrets (even for LLM providers) are never mounted to the container, and there is not much to steal from it other than application code;
  2. Built-in task management: I think this is the single biggest productivity boost - having your agents manage their own tasks, keeping up a log for automatic handoff, and only stopping when you are needed;
  3. It can auto-rotate your Claude/Codex/Gemini/Grok accounts on rate limits, even switch to a different provider mid-conversation, or have models from multiple providers working together.

Any feedback you may have is appreciated: https://coop.dryga.com/.

Source: https://github.com/AndrewDryga/coop

P.S. Is this the only sandbox not backed by YC? 🤔


r/ZedEditor • • 9d ago

Why is Zed named Zed and not, Z ?

0 Upvotes

is it because some people pronounce Z as Zee ? just curious


r/ZedEditor • • 9d ago

Setting up Zed to use Claude API was more fiddly than I was expecting

6 Upvotes

I was setting up Zed to use Claude via the API, so NOT via a subscription. I wanted to be able to use a dedicated API key for each application, so that I could silo usage and do basic auditing: which tools are using the most credits, etc.

It turns out that this was quite messy and way more complicated than I was expecting.

The simple and straightforward: when configuring Anthropic as an LLM provider (used for inline assistant, Git commit messages) you can provide your own key. Perfect. Unfortunately that setting will be completely ignored if you want to use Claude via ACP or in a Terminal Thread.

The possible, but not easily discoverable: whenever I tried to set up Claude as an agent via ACP it gave me an option to choose subscription or API key, but when I tried the latter it launched a browser and created its own API key, despite numerous Google searches incorrectly telling me that there would be an opportunity to paste an API key. Now if this is documented I certainly didn’t find it, but after a very long time searching I discovered that you could add this to your settings:

  "agent_servers": {
    "claude-acp": {
      "type": "registry",
      "env": {
        "ANTHROPIC_API_KEY": "my api key here"
      }
    }
  },

The still unknown: it is also possible to use Claude simply via terminal threads. This is the easiest way and can be set as the default in settings like this:

  "agent": {
    "terminal_init_command": "claude",
  },

But here I cannot figure out how to pass it a dedicated API key. It uses the default one that is set in my .zshrc file for generic Claude usage.

I had hope that adding this to Zed’s settings might work:

  "terminal": {
    "env": {
      "ANTHROPIC_API_KEY": "my api key here"
    }
  },

but alas no.

I’m sure that this is probably configurable as well. Does anyone know how?


r/ZedEditor • • 9d ago

Zed auto jump scrolls to next line while stepping in debugging

4 Upvotes

Hello

I wanted to start using Zed but I find it very difficult to get used to the fact that every time i press f11 or f12 to step in the debugger it auto jumps scroll to the current line in the debugger. Is there a fix for this?


r/ZedEditor • • 10d ago

How to drag-drop .md file into the editor and create Github-native link?

3 Upvotes

r/ZedEditor • • 10d ago

ZED лучше VS Code?

0 Upvotes

Стоит ли переходить на zed? Писал до него в основном на Vscode, intelij, ZED привлёк скоростью и поддержкой кучи языков без плагинов.


r/ZedEditor • • 10d ago

Visual indication of which pane has keyboard focus

17 Upvotes

I have started using Zed recently and really like the layout and project view. I am trying to get into using keyboard shortcuts more productively, but something I really struggle with is that I can't see any visual indication of which pane / panel has keyboard input focus.

If there is an open text editor in the middle panel then + / split / zoom icons appear at the top right when that pane has focus - but that is the only visual change I can see anywhere on the screen. And there is no difference between left hand pane file explorer having focus vs right hand pane git view having focus.

I feel like I must be missing something obvious because this makes it really difficult for me. Are Zed users so elite they keep the state of their current window in their head?


r/ZedEditor • • 11d ago

Antigravity creates SKILL.md

2 Upvotes

Can someone explain to me why my thread with Antigravity ACP open in Zed keeps generating a SKILL.md in ./skills/system/run-workflow/SKILL.md, and how I can disable this behavior?


r/ZedEditor • • 11d ago

Is it possible to rename a personal organization name?

1 Upvotes