mirror of
https://github.com/wez/wezterm.git
synced 2024-11-27 02:25:28 +03:00
Add file:// to the default implicit hyperlink rule list
closes: https://github.com/wez/wezterm/issues/525
This commit is contained in:
parent
de92c0f8e3
commit
fa9cf66fa2
@ -1589,6 +1589,8 @@ fn default_hyperlink_rules() -> Vec<hyperlink::Rule> {
|
||||
hyperlink::Rule::new(r"\b\w+://(?:[\w.-]+)\.[a-z]{2,15}\S*\b", "$0").unwrap(),
|
||||
// implicit mailto link
|
||||
hyperlink::Rule::new(r"\b\w+@[\w-]+(\.[\w-]+)+\b", "mailto:$0").unwrap(),
|
||||
// file://
|
||||
hyperlink::Rule::new(r"\bfile://\S*\b", "$0").unwrap(),
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -95,6 +95,7 @@ brief notes about them may accumulate here.
|
||||
* New: Added [alternate_buffer_wheel_scroll_speed](config/lua/config/alternate_buffer_wheel_scroll_speed.md) option to control how many cursor key presses are generated by the mouse wheel when the alternate screen is active. The new default for this is a faster-than-previous-releases 3 lines per wheel tick. [#432](https://github.com/wez/wezterm/issues/432)
|
||||
* macOS: Dead Keys are now processed even when `use_ime=false`. [More details in the docs](config/keys.md#macos-left-and-right-option-key). [#410](https://github.com/wez/wezterm/issues/410).
|
||||
* X11: attempt to load cursors from the XCursor.theme resource specified on the root window [#524](https://github.com/wez/wezterm/issues/524)
|
||||
* Added `file://` URL matching to the default list of implicit hyperlink rules [#525](https://github.com/wez/wezterm/issues/525)
|
||||
|
||||
### 20201101-103216-403d002d
|
||||
|
||||
|
@ -22,13 +22,17 @@ return {
|
||||
format = "$0",
|
||||
},
|
||||
|
||||
-- Un-comment this if you want to linkify email addresses
|
||||
--[[
|
||||
-- linkify email addresses
|
||||
{
|
||||
regex = "\\b\\w+@[\\w-]+(\\.[\\w-]+)+\\b",
|
||||
format = "mailto:$0",
|
||||
},
|
||||
]]
|
||||
|
||||
-- file:// URI
|
||||
{
|
||||
regex = "\bfile://\S*\b",
|
||||
format = "$0",
|
||||
},
|
||||
|
||||
-- Make task numbers clickable
|
||||
--[[
|
||||
|
Loading…
Reference in New Issue
Block a user