mirror of
https://github.com/wez/wezterm.git
synced 2024-12-27 15:37:29 +03:00
890 B
890 B
PasteFrom(source)
Paste the specified clipboard to the current pane.
This is only really meaningful on X11 and some Wayland systems that have multiple clipboards.
Possible values for source are:
Clipboard
- paste from the system clipboardPrimarySelection
- paste from the primary selection buffer
See also Paste.
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"}},
},
}
Since: 20220319-142410-0fcdea07
PrimarySelection
is now also supported on Wayland systems that support primary-selection-unstable-v1 or the older Gtk primary selection protocol.