35ec6f0de6
The initial release of the rootiest-wezterm config BREAKING CHANGE: First Commit!
17 lines
747 B
Lua
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
|