Signed-off-by: Lee Tang <i@d0zingcat.dev>
This commit is contained in:
d0zingcat
2022-08-31 11:02:46 +08:00
committed by Lee Tang
parent 63caa4a067
commit bf3e72eb71
4 changed files with 16 additions and 23 deletions

View File

@@ -48,14 +48,14 @@ return {
--{ key = 's', mods = 'CMD', action = wezterm.action({ ShowLauncherArgs = { flags = 'FUZZY|WORKSPACES' } }) },
{ key = 'w', mods = 'CMD', action = wezterm.action({ CloseCurrentPane = { confirm = false } }) },
},
hyperlink_rules = {
{
regex = [[\b(https|http)://\S*\b]],
format = '$0',
},
{
regex = [[["]?([\w\d]{1}[-\w\d]+)(/){1}([-\w\d\.]+)["]?]],
format = 'https://www.github.com/$1/$3',
}
}
-- hyperlink_rules = {
-- {
-- regex = [[\b(https|http)://\S*\b]],
-- format = '$0',
-- },
-- {
-- regex = [[["]?([\w\d]{1}[-\w\d]+)(/){1}([-\w\d\.]+)["]?]],
-- format = 'https://www.github.com/$1/$3',
-- }
-- }
}