diff options
author | Thomas Linford <tlinford@users.noreply.github.com> | 2022-02-02 15:22:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-02 15:22:34 +0100 |
commit | 18709acde974736492972b2892f69cea5f55716f (patch) | |
tree | f7990efbe51196f141a94c17b042c91389fb283e /zellij-tile/src | |
parent | 2799eb91607a56b99a9417249e6735b11deebd51 (diff) |
feat(copy): allow osc52 copy destination configuration (#1022)
add copy_cliboard option to allow configuring copy destination to primary selection instead of default clipboard
Diffstat (limited to 'zellij-tile/src')
-rw-r--r-- | zellij-tile/src/data.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/zellij-tile/src/data.rs b/zellij-tile/src/data.rs index dae7cd09e..9b9f67b28 100644 --- a/zellij-tile/src/data.rs +++ b/zellij-tile/src/data.rs @@ -76,7 +76,7 @@ pub enum Event { Key(Key), Mouse(Mouse), Timer(f64), - CopyToClipboard, + CopyToClipboard(CopyDestination), SystemClipboardFailure, InputReceived, Visible(bool), @@ -267,3 +267,10 @@ impl Default for PluginCapabilities { PluginCapabilities { arrow_fonts: true } } } + +#[derive(Debug, Copy, Clone, PartialEq, Serialize, Deserialize)] +pub enum CopyDestination { + Command, + Primary, + System, +} |