feat(wezterm): :retab and improve URL regex

This commit is contained in:
reo101 2023-07-13 14:27:45 +03:00
parent f2519d6b71
commit 319817b5c0
Signed by: reo101
GPG key ID: 675AA7EF13964ACB

View file

@ -105,10 +105,16 @@ M.keys = {
-- Links -- -- Links --
----------- -----------
M.hyperlink_rules = { 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 -- 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", format = "$0",
}, },