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:
parent
7d212186c4
commit
5eb21a7e77
@ -51,8 +51,10 @@ return {
|
|||||||
format = "https://example.com/tasks/?t=$1",
|
format = "https://example.com/tasks/?t=$1",
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Make github like username/project paths
|
-- Make username/project paths clickable. This implies paths like the following are for GitHub.
|
||||||
-- inside quotes and without clickable
|
-- ( "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\.]+)["]?]],
|
regex = [[["]?([\w\d]{1}[-\w\d]+)(/){1}([-\w\d\.]+)["]?]],
|
||||||
format = "https://www.github.com/$1/$3",
|
format = "https://www.github.com/$1/$3",
|
||||||
|
Loading…
Reference in New Issue
Block a user