Stream: dev

Topic: Zed


view this post on Zulip Philip Durbin πŸš€ (May 22 2024 at 12:56):

A little bird told me about Zed and I just downloaded it after listening to https://changelog.com/podcast/531

view this post on Zulip Philip Durbin πŸš€ (May 22 2024 at 12:57):

Does it have a Markdown previewer?

view this post on Zulip Jan Range (May 22 2024 at 13:04):

Yes, it has :smile: https://github.com/zed-industries/zed/pull/6958

view this post on Zulip Philip Durbin πŸš€ (May 22 2024 at 13:06):

Ah ha! Wow, I'm not sure I would have found it. Thanks! Should I get used to hitting cmd-shift-p? :grinning:

view this post on Zulip Jan Range (May 22 2024 at 13:07):

Yes, there is plenty to explore :grinning_face_with_smiling_eyes:

view this post on Zulip Jan Range (May 22 2024 at 13:07):

The "Multiplayer" Editor is very handy when working together

view this post on Zulip Philip Durbin πŸš€ (May 22 2024 at 13:08):

We'll have to try it sometime. :grinning:

view this post on Zulip Jan Range (May 22 2024 at 13:10):

Sure! :grinning_face_with_smiling_eyes:

view this post on Zulip Philip Durbin πŸš€ (May 22 2024 at 20:44):

Multiplayer was fun! Reminds me of Code With Me: https://www.jetbrains.com/code-with-me/

view this post on Zulip Philip Durbin πŸš€ (May 23 2024 at 14:35):

Weird that I have to hit Shift-PageDown instead of just PageDown to move the cursor. :thumbs_up: to https://github.com/zed-industries/zed/issues/8993

view this post on Zulip Philip Durbin πŸš€ (May 23 2024 at 16:22):

Ok, Zed is driving me a bit crazy about how if I simply save a file without making changes and do a git status there are a load of changes. For example: changes.txt

view this post on Zulip Jan Range (May 23 2024 at 17:02):

You can turn off format on save

view this post on Zulip Jan Range (May 23 2024 at 17:03):

Adding this to the settings or the specific language should work:

"format_on_save": "off"

view this post on Zulip Philip Durbin πŸš€ (May 23 2024 at 17:17):

Interesting. I guess I should start a list of issues to track, like I have for Zulip: https://github.com/pdurbin/zulip/discussions/1

view this post on Zulip Philip Durbin πŸš€ (May 23 2024 at 21:02):

Even Google Docs does what I expect when I PageUp or PageDown. The cursor moves.

view this post on Zulip Philip Durbin πŸš€ (May 23 2024 at 22:34):

Ok, I created my wishlist: https://github.com/pdurbin/zed/discussions/1

view this post on Zulip Philip Durbin πŸš€ (May 24 2024 at 01:30):

I just created a pull request: https://github.com/zed-industries/zed/pull/12224

view this post on Zulip Philip Durbin πŸš€ (May 24 2024 at 01:42):

One more: https://github.com/zed-extensions/java/pull/6

view this post on Zulip Philip Durbin πŸš€ (May 24 2024 at 10:16):

Ha, the first one got merged already. :grinning:

view this post on Zulip Philip Durbin πŸš€ (May 24 2024 at 11:10):

Come to think of it, @Vaida PlankytΔ— do you happen to be on a Mac? If so we could use Zed for collaborative editing in a few hours as we continue to hack on the upcoming Contributor Guide. #ux-wg > Contributor Guide

view this post on Zulip Ceilyn Boyd (Jun 10 2024 at 20:28):

:eyes: Phil sent me!

view this post on Zulip Philip Durbin πŸš€ (Jun 10 2024 at 20:30):

Ha. Zed is not perfect (I have a half-written blog post about it), but it's definitely interesting.

view this post on Zulip Philip Durbin πŸš€ (Jul 01 2024 at 21:06):

Ha, I just converted @Juan Pablo Tosca Villanueva , I think. :crazy:

Some audio troubles in Zed, though, so we used Zoom for audio. :thinking:

view this post on Zulip Juan Pablo Tosca Villanueva (Jul 01 2024 at 21:07):

It may be some security settings with the microphone and mac but I will check that later :laughing:

view this post on Zulip Oliver Bertuch (Jul 12 2024 at 09:06):

Available for Linux now, too! https://www.heise.de/en/news/Code-editor-Zed-released-for-Linux-9798635.html and https://zed.dev/docs/linux#installing-via-a-package-manager

view this post on Zulip Oliver Bertuch (Jul 12 2024 at 10:19):

Anyone interested in trying cross-platform?

view this post on Zulip Philip Durbin πŸš€ (Jul 12 2024 at 10:36):

Absolutely!

view this post on Zulip Vaida PlankytΔ— 🎨 (Jul 12 2024 at 20:42):

Philip Durbin said:

Come to think of it, Vaida PlankytΔ— do you happen to be on a Mac? If so we could use Zed for collaborative editing in a few hours as we continue to hack on the upcoming Contributor Guide. #ux-wg > Contributor Guide

i was too curious about all this Zed business that I've built it from source so I could try it on Windows... I haven't installed all the dependencies, so the actual collaborative features might not work, but I'd be curious to try at the next Contrib UX WG call! :big_smile:

view this post on Zulip Juan Pablo Tosca Villanueva (Jul 12 2024 at 20:44):

At least on Windows now you could have a VM running Ubuntu and use the Linux version :smile:

view this post on Zulip Vaida PlankytΔ— 🎨 (Jul 12 2024 at 20:45):

true that! i'll have to try that out if my hacky build doesn't work :big_smile:

view this post on Zulip Philip Durbin πŸš€ (Jul 12 2024 at 20:46):

@Oliver Bertuch told me just today that Zed is supported on Linux now (without compiling it yourself, I mean).

view this post on Zulip Juan Pablo Tosca Villanueva (Jul 12 2024 at 20:48):

Yes! The linux version is officially released so while the native Windows version is not out yet, now you can run the Linux version on Windows with a VM so at least that is something :sweat_smile:

view this post on Zulip Philip Durbin πŸš€ (Sep 18 2024 at 20:56):

I'm using Zed to write the 6.4 release notes and I love it. It has a nice Markdown previewer built in.

view this post on Zulip Juan Pablo Tosca Villanueva (Sep 18 2024 at 20:57):

Can I come to see? :laughing:

view this post on Zulip Juan Pablo Tosca Villanueva (Sep 18 2024 at 20:58):

VS code also has a MD preview :sweat_smile:

view this post on Zulip Juan Pablo Tosca Villanueva (Sep 18 2024 at 20:58):

But I wonder how they compare :thinking:

view this post on Zulip Philip Durbin πŸš€ (Sep 18 2024 at 21:00):

Sure! Come on over.

view this post on Zulip Philip Durbin πŸš€ (Sep 19 2024 at 14:53):

@Juan Pablo Tosca Villanueva were you suitably impressed? :grinning:

view this post on Zulip Juan Pablo Tosca Villanueva (Sep 19 2024 at 19:15):

Philip Durbin πŸ‰ said:

Juan Pablo Tosca Villanueva were you suitably impressed? :grinning:

I wonder how it would handle TOC and emojis :laughing:

view this post on Zulip Philip Durbin πŸš€ (Sep 19 2024 at 19:16):

Bah. I haven't added to TOC yet. Yes, it would be nice to have a preview of that!

view this post on Zulip Philip Durbin πŸš€ (Sep 19 2024 at 19:16):

I threw a :croissant: in there but then took it out. No emojis! :angry:

view this post on Zulip Philip Durbin πŸš€ (Nov 01 2024 at 13:17):

Is anyone using Zed with Ollama? It seems to work fine.
Screenshot 2024-11-01 at 9.17.02β€―AM.png

view this post on Zulip Juan Pablo Tosca Villanueva (Nov 01 2024 at 20:32):

Oh wow, so you just type on zed and it makes the request to ollama?

view this post on Zulip Philip Durbin πŸš€ (Nov 01 2024 at 20:34):

WOULD YOU LIKE A DEMO

view this post on Zulip Juan Pablo Tosca Villanueva (Nov 01 2024 at 20:36):

Maybe next week :laughter_tears: when I am at the office :smile:

view this post on Zulip Philip Durbin πŸš€ (Nov 01 2024 at 20:36):

yeah, in person is better

view this post on Zulip Philip Durbin πŸš€ (Nov 12 2024 at 15:34):

I wrote a blog post about how I'm using Zed with Ollama: http://blog.greptilian.com/2024/11/09/ollama-enchanted-open-web-ui-and-zed/

view this post on Zulip Jan Range (Nov 14 2024 at 10:24):

That's great! Since you're running a local Ollama instance, have you noticed any performance changes? I've been using it for other tasks as well, and I've noticed it has had a substantial impact on my machine. I'm using an M3 Pro.

view this post on Zulip Philip Durbin πŸš€ (Nov 14 2024 at 12:09):

Not really. I have an M3 at work and an M1 at home and I can't really tell I have Ollama running. Maybe I need to exercise these machines more! :muscle: :sweat_smile:

view this post on Zulip Philip Durbin πŸš€ (Dec 11 2024 at 14:43):

@Jan Range please remind me, are you using Zed for Python?

On a line like spec = cp.detect(url, ref=ref) how do I tell Zed I want to go to the detect() function?

Here's that line, by the way, if the context helps: https://github.com/jupyterhub/repo2docker/blob/2024.07.0/repo2docker/app.py#L494

view this post on Zulip Jan Range (Dec 11 2024 at 14:47):

I am afraid that it does not support this feature atm. Typically you would go cmd + left click, but it does not work. Maybe I am missing a language server option.

view this post on Zulip Jan Range (Dec 11 2024 at 14:47):

Does not work on my side either.

view this post on Zulip Jan Range (Dec 11 2024 at 14:49):

Got it! You need to install the LSP extension

view this post on Zulip Jan Range (Dec 11 2024 at 14:49):

https://github.com/rgbkrk/python-lsp-zed-extension

view this post on Zulip Philip Durbin πŸš€ (Dec 11 2024 at 14:52):

Hmm, I need to run a language server? I'll check this out soon. Thanks!

view this post on Zulip Jan Range (Dec 11 2024 at 14:52):

I just installed the extension and there is no extra setup required :smile:

view this post on Zulip Philip Durbin πŸš€ (Dec 11 2024 at 14:55):

Huh, globally? I guess I'm confused where I install it. I don't start a venv before I start Zed. Or do you mean I should install it in my local git checkout of the repo2docker project?

view this post on Zulip Jan Range (Dec 11 2024 at 14:57):

Sorry, that might have been confusing. When you hit cmd + p and search for "extensions" you are taken to a search field where you can install the LSP extension.

Bildschirmfoto 2024-12-11 um 15.56.45.png

view this post on Zulip Philip Durbin πŸš€ (Dec 11 2024 at 15:00):

Ok, installed it, thanks.

view this post on Zulip Philip Durbin πŸš€ (Dec 11 2024 at 15:01):

cmd+left click seems to be F12 (go to definition)

It works on "info" in self.log,info(... but not "detect" in cp.detect(....

view this post on Zulip Jan Range (Dec 11 2024 at 15:11):

Meh that's a pity :frown: Are you working with conda or venv?

view this post on Zulip Philip Durbin πŸš€ (Dec 11 2024 at 15:14):

venv

view this post on Zulip Philip Durbin πŸš€ (Dec 11 2024 at 15:14):

But should that matter? Should Zed be able to just navigate the code?

view this post on Zulip Philip Durbin πŸš€ (Dec 11 2024 at 15:14):

After just cloning, for example.

view this post on Zulip Jan Range (Dec 11 2024 at 15:16):

Is the detect method part of the repo you are in? You need to specify a pyrightconfig.json per project so Zed knows from which environment it should grab the details of packages. Pretty cumbersome, I dont really like their decision in that respect. Let me look for a tutorial

view this post on Zulip Philip Durbin πŸš€ (Dec 11 2024 at 15:16):

"detect" is an interface by the way. cp.detect is implemented in each of the content providers. Maybe that's why it doesn't work. In Netbeans, with Java anyway, I can do something like "show implementation" and I get a dropdown to choose which implementation (which content provider) I want to go to.

view this post on Zulip Jan Range (Dec 11 2024 at 15:16):

https://zed.dev/docs/languages/python

view this post on Zulip Philip Durbin πŸš€ (Dec 11 2024 at 15:16):

Yes, detect is in the same code base.

view this post on Zulip Jan Range (Dec 11 2024 at 15:18):

Maybe specifying the venv helps with that, but since it is in the same directory that is kind of odd

view this post on Zulip Jan Range (Dec 11 2024 at 15:19):

They have recently added a new language server, but I have not given it a shot.

https://github.com/zed-industries/zed/pull/20358

view this post on Zulip Philip Durbin πŸš€ (Dec 11 2024 at 15:26):

This is what I mean in Netbeans (getInfo() Java example):

Screenshot 2024-12-11 at 10.25.21β€―AM.png

view this post on Zulip Philip Durbin πŸš€ (Dec 11 2024 at 15:27):

Anyway, thanks. For now I'll lower my expectations. And maybe I'll ask in #python for other suggested editors. :big_smile:

view this post on Zulip Jan Range (Dec 11 2024 at 15:29):

I know that's a deal breaker and a pity that such a basic feature is not supported :-(

view this post on Zulip Jan Range (Dec 11 2024 at 15:30):

Ever since you introduced me to Cursor, I've been using it exclusively :grinning:

view this post on Zulip Jan Range (Dec 11 2024 at 15:30):

Full circle back to VSCode :woozy_face:

view this post on Zulip Philip Durbin πŸš€ (Dec 11 2024 at 15:35):

Ha. But even VSCode is giving me trouble:

Screenshot 2024-12-11 at 10.35.01β€―AM.png

view this post on Zulip Jan Range (Dec 11 2024 at 15:36):

:anguish::anguish::anguish:

view this post on Zulip Jan Range (Dec 11 2024 at 15:36):

Today is not a good day for neither VSCode or Zed :grinning:

view this post on Zulip Philip Durbin πŸš€ (Dec 11 2024 at 15:41):

And we're getting 2 inches (5 cm) of rain. :rainy:

view this post on Zulip Philip Durbin πŸš€ (Dec 11 2024 at 15:42):

2024-12-11 10:31:09.830 [error] Unknown: Unknown error while installing extension ms-python.python :sob:

view this post on Zulip Jan Range (Dec 11 2024 at 15:47):

Philip Durbin πŸ‰ schrieb:

And we're getting 2 inches (5 cm) of rain. :rainy:

Signs are not good today :sob:

view this post on Zulip Jan Range (Dec 11 2024 at 15:47):

Philip Durbin πŸ‰ schrieb:

2024-12-11 10:31:09.830 [error] Unknown: Unknown error while installing extension ms-python.python :sob:

The worst of errors to receive :skull:

view this post on Zulip Philip Durbin πŸš€ (Dec 11 2024 at 15:52):

Anyway, none of this is Zed's fault. Sorry, Zed. :heart: I still use you for Markdown all the time! And I appreciate the new "preview Markdown" button! :heart:

view this post on Zulip Philip Durbin πŸš€ (Jan 13 2025 at 16:54):

Does Zed have any tooling to help resolve merge conflicts in git? I couldn't quickly find anything. :thinking:

view this post on Zulip Philip Durbin πŸš€ (Mar 18 2025 at 20:59):

Hmm! Maybe this will help! https://zed.dev/blog/git

I just got an email about it. :big_smile:

view this post on Zulip Philip Durbin πŸš€ (Mar 18 2025 at 21:00):

Oh, "conflict resolution" is first under "what's next". Oh well. :big_smile:

view this post on Zulip Jan Range (Mar 19 2025 at 11:05):

At least it is to be expected to find its way into Zed :grinning:

view this post on Zulip Philip Durbin πŸš€ (Mar 21 2025 at 18:58):

Hmm, should "find all references" work in a typescript project? It doesn't seem to. It finds references in the file I'm in but not other files.

view this post on Zulip Philip Durbin πŸš€ (Mar 21 2025 at 19:05):

It works fine in IntelliJ

Screenshot 2025-03-21 at 3.05.23β€―PM.png

view this post on Zulip Philip Durbin πŸš€ (Apr 04 2025 at 16:00):

Does anyone have Zed configured to run a Python file?

view this post on Zulip Philip Durbin πŸš€ (May 29 2025 at 16:17):

Playing around with Zed and the Dataverse MCP server! https://github.com/gdcc/mcp-dataverse/pull/5

view this post on Zulip Philip Durbin πŸš€ (May 29 2025 at 16:19):

If I'm being honest, I'm having a little trouble getting Zed to use it though.

view this post on Zulip Philip Durbin πŸš€ (May 29 2025 at 16:21):

I mean, lists the tools from https://mcp.dataverse.org/tools ok:

Screenshot 2025-05-29 at 12.20.41β€―PM.png

view this post on Zulip Philip Durbin πŸš€ (May 29 2025 at 16:22):

... but stuff like "explore dataset doi:10.7910/DVN/6TFFPG" for example, doesn't "just work" :shrugdog:

view this post on Zulip Philip Durbin πŸš€ (May 29 2025 at 16:22):

I do have it working fine in Cursor, VS Code, and Windsurf. See the PR above.

view this post on Zulip Philip Durbin πŸš€ (May 30 2025 at 19:05):

And PR #11541


Last updated: Nov 01 2025 at 14:11 UTC