2021-01-27 19:43:59 +03:00
|
|
|
# PasteFrom(source)
|
|
|
|
|
|
|
|
Paste the specified clipboard to the current pane.
|
|
|
|
|
|
|
|
This is only really meaningful on X11 systems that have multiple clipboards.
|
|
|
|
|
|
|
|
Possible values for source are:
|
|
|
|
|
|
|
|
* `Clipboard` - paste from the system clipboard
|
|
|
|
* `PrimarySelection` - paste from the primary selection buffer
|
|
|
|
|
|
|
|
See also [Paste](Paste.md).
|
|
|
|
|
|
|
|
```lua
|
|
|
|
local wezterm = require 'wezterm';
|
|
|
|
return {
|
|
|
|
keys = {
|
|
|
|
-- paste from the clipboard
|
2021-05-09 16:54:09 +03:00
|
|
|
{key="V", mods="CTRL", action=wezterm.action{PasteFrom="Clipboard"}},
|
2021-01-27 19:43:59 +03:00
|
|
|
|
|
|
|
-- paste from the primary selection
|
2021-05-09 16:54:09 +03:00
|
|
|
{key="V", mods="CTRL", action=wezterm.action{PasteFrom="PrimarySelection"}},
|
2021-01-27 19:43:59 +03:00
|
|
|
},
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|