1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-29 00:21:57 +03:00
wezterm/docs/config/lua/keyassignment/PasteFrom.md

27 lines
627 B
Markdown
Raw Normal View History

# 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
{key="V", mods="CTRL", action=wezterm.action{PasteFrom="Clipboard"}},
-- paste from the primary selection
{key="V", mods="CTRL", action=wezterm.action{PasteFrom="PrimarySelection"}},
},
}
```