Files
wezterm-config/plugins/hyperlinks.lua
T
rootiest 35ec6f0de6 feat(wezterm): initial commit
The initial release of the rootiest-wezterm config

BREAKING CHANGE: First Commit!
2024-08-16 14:50:01 -04:00

17 lines
747 B
Lua

-- ╭─────────────────────────────────────────────────────────╮
-- │ HYPERLINKS │
-- ╰─────────────────────────────────────────────────────────╯
local M = {}
-- Hyperlink Rules
CONFIG.hyperlink_rules = WEZTERM.default_hyperlink_rules()
-- Add support for GitHub link style
table.insert(CONFIG.hyperlink_rules, {
regex = [[["]?([\w\d]{1}[-\w\d]+)(/){1}([-\w\d\.]+)["]?]],
format = "https://wwwezterm.github.com/$1/$3",
})
return M