2020-10-10 18:40:14 +03:00
|
|
|
# OpenLinkAtMouseCursor
|
|
|
|
|
|
|
|
If the current mouse cursor position is over a cell that contains
|
|
|
|
a hyperlink, this action causes that link to be opened.
|
|
|
|
|
2021-10-03 19:10:04 +03:00
|
|
|
```lua
|
2022-06-25 16:58:10 +03:00
|
|
|
local wezterm = require 'wezterm'
|
2020-10-10 18:40:14 +03:00
|
|
|
|
2021-10-03 19:10:04 +03:00
|
|
|
return {
|
|
|
|
mouse_bindings = {
|
|
|
|
-- Ctrl-click will open the link under the mouse cursor
|
|
|
|
{
|
2022-07-19 17:54:31 +03:00
|
|
|
event = { Up = { streak = 1, button = 'Left' } },
|
|
|
|
mods = 'CTRL',
|
|
|
|
action = wezterm.action.OpenLinkAtMouseCursor,
|
2021-10-03 19:10:04 +03:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
```
|