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
|
|
|
|
local wezterm = require 'wezterm';
|
|
|
|
|
|
|
|
return {
|
|
|
|
mouse_bindings = {
|
|
|
|
-- Change the default click behavior so that it populates
|
|
|
|
-- the Clipboard rather the PrimarySelection.
|
|
|
|
{
|
|
|
|
event={Up={streak=1, button="Left"}},
|
|
|
|
mods="NONE",
|
2022-06-25 16:58:10 +03:00
|
|
|
action=wezterm.action.CompleteSelectionOrOpenLinkAtMouseCursor("Clipboard"),
|
2021-01-31 20:28:42 +03:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
```
|