2020-10-10 18:40:14 +03:00
|
|
|
# CompleteSelectionOrOpenLinkAtMouseCursor
|
|
|
|
|
|
|
|
If a selection is in progress, acts as though `CompleteSelection` was
|
|
|
|
triggered. Otherwise acts as though `OpenLinkAtMouseCursor` was
|
|
|
|
triggered.
|
|
|
|
|
|
|
|
|
2021-02-03 21:03:04 +03:00
|
|
|
*since: 20210203-095643-70a364eb*
|
2021-01-31 20:28:42 +03:00
|
|
|
|
|
|
|
`CompleteSelectionOrOpenLinkAtMouseCursor` now requires a destination parameter to specify
|
|
|
|
which clipboard buffer the selection will populate. The copy action
|
|
|
|
is now equivalent to [CopyTo](CopyTo.md).
|
|
|
|
|
|
|
|
```lua
|
2022-07-19 17:54:31 +03:00
|
|
|
local wezterm = require 'wezterm'
|
2021-01-31 20:28:42 +03:00
|
|
|
|
|
|
|
return {
|
|
|
|
mouse_bindings = {
|
|
|
|
-- Change the default click behavior so that it populates
|
|
|
|
-- the Clipboard rather the PrimarySelection.
|
|
|
|
{
|
2022-07-19 17:54:31 +03:00
|
|
|
event = { Up = { streak = 1, button = 'Left' } },
|
|
|
|
mods = 'NONE',
|
|
|
|
action = wezterm.action.CompleteSelectionOrOpenLinkAtMouseCursor 'Clipboard',
|
2021-01-31 20:28:42 +03:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
```
|