From 0f700a01bd73623cdfc0afc4a54f9e82f46d8f49 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Sat, 16 Jun 2018 10:11:47 +0000 Subject: [PATCH] Add Copy/Cut/Paste keys This just adds support for the Copy/Cut/Paste keys and sets up Copy/Paste as alternative defaults for Ctrl+Shift+C/V. --- alacritty.yml | 2 ++ alacritty_macos.yml | 2 ++ src/config.rs | 6 ++++++ 3 files changed, 10 insertions(+) diff --git a/alacritty.yml b/alacritty.yml index 6290edf..1b59434 100644 --- a/alacritty.yml +++ b/alacritty.yml @@ -292,6 +292,8 @@ live_config_reload: true key_bindings: - { key: V, mods: Control|Shift, action: Paste } - { key: C, mods: Control|Shift, action: Copy } + - { key: Paste, action: Paste } + - { key: Copy, action: Copy } - { key: Q, mods: Command, action: Quit } - { key: W, mods: Command, action: Quit } - { key: Insert, mods: Shift, action: PasteSelection } diff --git a/alacritty_macos.yml b/alacritty_macos.yml index eff28e3..1959084 100644 --- a/alacritty_macos.yml +++ b/alacritty_macos.yml @@ -267,6 +267,8 @@ live_config_reload: true key_bindings: - { key: V, mods: Command, action: Paste } - { key: C, mods: Command, action: Copy } + - { key: Paste, action: Paste } + - { key: Copy, action: Copy } - { key: Q, mods: Command, action: Quit } - { key: W, mods: Command, action: Quit } - { key: Home, chars: "\x1bOH", mode: AppCursor } diff --git a/src/config.rs b/src/config.rs index a803413..88a14b2 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1889,6 +1889,9 @@ enum Key { WebStop, Yen, Caret, + Copy, + Paste, + Cut, } impl Key { @@ -2047,6 +2050,9 @@ impl Key { Key::WebStop => WebStop, Key::Yen => Yen, Key::Caret => Caret, + Key::Copy => Copy, + Key::Paste => Paste, + Key::Cut => Cut, } } }