* Adds `CopyTo` and `PasteFrom` assignments that specify the destination/source. * Adds `default_clipboard_copy_destination` and `default_paste_source` config options that specify the default destination/source for existing `Copy` and `Paste` operations (for @bew) * Deprecating `PastePrimarySelection` in favor of `PasteFrom`. * Added `CTRL-Insert` -> `Copy` (for @Babar) Aside from the new key assignment, these changes shouldn't change the default behavior, but do make it easier to consider changing that in a later commit. They should allow for example: * Set `default_clipboard_copy_destination = "PrimarySelection"` to prevent populating the clipboard by default when using the mouse. * Overriding the CTRL-Insert, CTRL-SHIFT-C to explicitly populate the clipboard * Set `default_paste_source = "PrimarySelection"` for middle click to paste the selection. * Overriding SHIFT-Insert, CTRL-SHIFT-V to explicitly paste from the clipboard. refs: #417
31 lines
668 B
Markdown
31 lines
668 B
Markdown
# Paste
|
|
|
|
Paste the clipboard to the current pane.
|
|
|
|
On X11 systems that have multiple clipboards, the
|
|
[default_clipboard_paste_source](../config/default_clipboard_paste_source.md)
|
|
option specifies which source to use.
|
|
|
|
See also [PastePrimarySelection](PastePrimarySelection.md) and [PasteFrom](PasteFrom.md).
|
|
|
|
```lua
|
|
local wezterm = require 'wezterm';
|
|
return {
|
|
keys = {
|
|
{key="v", mods="SHIFT|CTRL", action="Paste"},
|
|
},
|
|
|
|
-- Middle mouse button pastes the clipboard.
|
|
-- Note that this is the default so you needn't copy this.
|
|
mouse_bindings = {
|
|
{
|
|
event={Up={streak=1, button="Middle"}},
|
|
mods="NONE",
|
|
action="Paste",
|
|
},
|
|
}
|
|
}
|
|
```
|
|
|
|
|