From 57a007be9d006c7be468839addd2a0ffcff8d96b Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Mon, 27 May 2024 19:31:41 +0200 Subject: [PATCH] wezterm: hyperlink rust error codes --- .config/wezterm/wezterm.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.config/wezterm/wezterm.lua b/.config/wezterm/wezterm.lua index 1c76512..4f8d0e8 100644 --- a/.config/wezterm/wezterm.lua +++ b/.config/wezterm/wezterm.lua @@ -168,6 +168,14 @@ config.window_padding = { bottom = 0, } +-- Hyperlinks +config.hyperlink_rules = wezterm.default_hyperlink_rules() + +table.insert(config.hyperlink_rules, { + regex = [[`rustc --explain E(\d+)`]], + format = "https://doc.rust-lang.org/error_codes/E$1.html", +}) + -- Tabs config.enable_tab_bar = false config.tab_bar_at_bottom = true