Skip to content

Conversation

Otterpocket
Copy link

Resolves #529

Co-authored-by: Marcos Alcantara <[email protected]>
@marcalc
Copy link

marcalc commented Jul 22, 2024

Would be great if we could merge this soon.

@czj
Copy link

czj commented Nov 28, 2024

As Zed is being used by an increasing number of developers, it would be great to have this feature.

@Otterpocket
Copy link
Author

@czj

This is the branch I'm using, until it's merged.
gem "better_errors", github: "otterpocket/better_errors", branch: "master"

@svoop
Copy link

svoop commented Feb 23, 2025

Any chance to see this merged and released in the near future? Unless currently known editors like atom or sublime, zed is actually being used. (I patch the gem manually for now, but that really shouldn't be necessary.) Thanks a lot for giving this some priority, a lil' patch level release is all it takes!

@andyw8
Copy link

andyw8 commented Apr 27, 2025

As an alternative to using a branch, you can patch the gem in an initializer, e.g.

# config/initializers/better_errors_zed.rb
return unless defined?(BetterErrors)

module BetterErrors
  class Editor
    KNOWN_EDITORS << { symbols: [ :zed ], sniff: /zed/i, url: "zed://file/%{file}:%{line}" }
  end
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for Zed text editor

5 participants