2021-01-27 19:43:59 +03:00
# PasteFrom(source)
Paste the specified clipboard to the current pane.
2022-03-10 00:40:22 +03:00
This is only really meaningful on X11 and some Wayland systems that have multiple clipboards.
2021-01-27 19:43:59 +03:00
Possible values for source are:
* `Clipboard` - paste from the system clipboard
* `PrimarySelection` - paste from the primary selection buffer
See also [Paste ](Paste.md ).
```lua
2022-06-25 16:58:10 +03:00
local wezterm = require 'wezterm'
local act = wezterm.action
2021-01-27 19:43:59 +03:00
return {
keys = {
-- paste from the clipboard
2022-06-25 16:58:10 +03:00
{key="V", mods="CTRL", action=act.PasteFrom("Clipboard")},
2021-01-27 19:43:59 +03:00
-- paste from the primary selection
2022-06-25 16:58:10 +03:00
{key="V", mods="CTRL", action=act.PasteFrom("PrimarySelection")},
2021-01-27 19:43:59 +03:00
},
}
```
2022-03-20 02:37:27 +03:00
*Since: 20220319-142410-0fcdea07*
2022-03-10 00:40:22 +03:00
`PrimarySelection` is now also supported on Wayland systems that support [primary-selection-unstable-v1 ](https://wayland.app/protocols/primary-selection-unstable-v1 ) or the older Gtk primary selection protocol.