1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-27 12:23:46 +03:00

add sample matched strings

Mention full URL's still handled by previous regexes for URL's if it exists prior to this rule.
This commit is contained in:
Chris 2022-06-21 18:50:43 -04:00 committed by Wez Furlong
parent 7d212186c4
commit 5eb21a7e77

View File

@ -51,8 +51,10 @@ return {
format = "https://example.com/tasks/?t=$1",
},
-- Make github like username/project paths
-- inside quotes and without clickable
-- Make username/project paths clickable. This implies paths like the following are for GitHub.
-- ( "nvim-treesitter/nvim-treesitter" | wbthomason/packer.nvim | wez/wezterm | "wez/wezterm.git" )
-- As long as a full URL hyperlink regex exists above this it should not match a full URL to
-- GitHub or GitLab / BitBucket (i.e. https://gitlab.com/user/project.git is still a whole clickable URL)
{
regex = [[["]?([\w\d]{1}[-\w\d]+)(/){1}([-\w\d\.]+)["]?]],
format = "https://www.github.com/$1/$3",