2020-10-10 18:40:14 +03:00
|
|
|
# PastePrimarySelection
|
|
|
|
|
|
|
|
X11: Paste the Primary Selection to the current tab.
|
2021-01-27 19:43:59 +03:00
|
|
|
On other systems, this behaves identically to [Paste](Paste.md).
|
|
|
|
|
2021-02-03 21:03:04 +03:00
|
|
|
*since: 20210203-095643-70a364eb*
|
2021-01-27 19:43:59 +03:00
|
|
|
|
2021-01-31 20:28:42 +03:00
|
|
|
This action is considered to be deprecated and will be removed in
|
|
|
|
a future release; please use [PasteFrom](PasteFrom.md) instead.
|
2021-01-27 19:43:59 +03:00
|
|
|
|
|
|
|
## Example
|
2020-10-10 18:40:14 +03:00
|
|
|
|
|
|
|
```lua
|
|
|
|
local wezterm = require 'wezterm';
|
|
|
|
return {
|
|
|
|
keys = {
|
|
|
|
{key="v", mods="SHIFT|CTRL", action="PastePrimarySelection"},
|
2021-01-27 19:43:59 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
-- Middle mouse button pastes the primary selection.
|
|
|
|
mouse_bindings = {
|
|
|
|
{
|
|
|
|
event={Up={streak=1, button="Middle"}},
|
|
|
|
mods="NONE",
|
|
|
|
action="PastePrimarySelection",
|
|
|
|
},
|
2020-10-10 18:40:14 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|