zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
46.64k stars 2.65k forks source link

FreeBSD support #15309

Open 180watt opened 1 month ago

180watt commented 1 month ago

Check for existing issues

Describe the feature

I was wondering if patches to add FreeBSD support would be welcome.

I've hacked together a semi-working port, (see below) and thought it a good idea to ask before I put more work into polishing if a patch of this nature would be accepted upstream.

If applicable, add mockups / screenshots to help present your vision of the feature

screenshot of preliminary port image

apricotbucket28 commented 1 month ago

I don't use FreeBSD myself, but I do know other people that do. How much patching is needed? I guess it's mostly changing cfg!(linux), but are more intrusive patches needed?

180watt commented 1 month ago

You're correct in thinking that it's primarily cfg changes. The two biggest blockers I see are that plugins typically try to fetch platform specific binaries and that ipc-channel is linux specific. Both of these could be easily fixed (and something I'd be happy to do), but are a little more intrusive. On ipc-channel, I'm looking into switching it with interprocess (which might also help with windows support).

mikayla-maki commented 1 month ago

We would be happy to have all of those changes!