feat(wezterm): :retab
and improve URL regex
This commit is contained in:
parent
f2519d6b71
commit
319817b5c0
1 changed files with 67 additions and 61 deletions
|
@ -105,10 +105,16 @@ M.keys = {
|
|||
-- Links --
|
||||
-----------
|
||||
M.hyperlink_rules = {
|
||||
-- -- Linkify things that look like URLs
|
||||
-- -- This is actually the default if you don't specify any hyperlink_rules
|
||||
-- {
|
||||
-- regex = "\\b\\w+://(?:[\\w.-]+)\\.[a-z]{2,15}\\S*\\b",
|
||||
-- format = "$0",
|
||||
-- },
|
||||
|
||||
-- Linkify things that look like URLs
|
||||
-- This is actually the default if you don't specify any hyperlink_rules
|
||||
{
|
||||
regex = "\\b\\w+://(?:[\\w.-]+)\\.[a-z]{2,15}\\S*\\b",
|
||||
regex = "\\b\\w+://(?:www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b(?:[-a-zA-Z0-9()@:%_\\+.~#?&/=]*)",
|
||||
format = "$0",
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue