From fd02d62f04e77e1f3d62dede8a181540e3386b03 Mon Sep 17 00:00:00 2001 From: Otterpocket Date: Wed, 17 Apr 2024 11:15:17 +0100 Subject: [PATCH 1/2] adds zed support --- lib/better_errors/editor.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/better_errors/editor.rb b/lib/better_errors/editor.rb index 96ffc3f0..764d06c1 100644 --- a/lib/better_errors/editor.rb +++ b/lib/better_errors/editor.rb @@ -12,6 +12,7 @@ class Editor { symbols: [:textmate, :txmt, :tm], sniff: /mate/i, url: "txmt://open?url=file://%{file}&line=%{line}" }, { symbols: [:vscode, :code], sniff: /code/i, url: "vscode://file/%{file}:%{line}" }, { symbols: [:vscodium, :codium], sniff: /codium/i, url: "vscodium://file/%{file}:%{line}" }, + { synbols: [:zed], sniff: /zed/i, url: 'zed://file/%{file}:%{line}' } ] def self.for_formatting_string(formatting_string) From 3e00fd77d2cd411291f81de01413d98d79471333 Mon Sep 17 00:00:00 2001 From: Ben Hamment Date: Fri, 31 May 2024 22:57:10 +0100 Subject: [PATCH 2/2] Update lib/better_errors/editor.rb Co-authored-by: Marcos Alcantara --- lib/better_errors/editor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/better_errors/editor.rb b/lib/better_errors/editor.rb index 764d06c1..91cdfca7 100644 --- a/lib/better_errors/editor.rb +++ b/lib/better_errors/editor.rb @@ -12,7 +12,7 @@ class Editor { symbols: [:textmate, :txmt, :tm], sniff: /mate/i, url: "txmt://open?url=file://%{file}&line=%{line}" }, { symbols: [:vscode, :code], sniff: /code/i, url: "vscode://file/%{file}:%{line}" }, { symbols: [:vscodium, :codium], sniff: /codium/i, url: "vscodium://file/%{file}:%{line}" }, - { synbols: [:zed], sniff: /zed/i, url: 'zed://file/%{file}:%{line}' } + { symbols: [:zed], sniff: /zed/i, url: 'zed://file/%{file}:%{line}' } ] def self.for_formatting_string(formatting_string)