diff options
author | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-06-16 10:11:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-16 10:11:47 +0000 |
commit | 0f700a01bd73623cdfc0afc4a54f9e82f46d8f49 (patch) | |
tree | 42949b3dbc2944c6823d9f013d4e07bda8381008 | |
parent | 6cbae83f174fa6d114ea66b1f8dd6185950ca835 (diff) | |
download | alacritty-0f700a01bd73623cdfc0afc4a54f9e82f46d8f49.tar.gz alacritty-0f700a01bd73623cdfc0afc4a54f9e82f46d8f49.zip |
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.
-rw-r--r-- | alacritty.yml | 2 | ||||
-rw-r--r-- | alacritty_macos.yml | 2 | ||||
-rw-r--r-- | src/config.rs | 6 |
3 files changed, 10 insertions, 0 deletions
diff --git a/alacritty.yml b/alacritty.yml index 6290edfa..1b59434f 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 eff28e3e..19590842 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 a8034139..88a14b22 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, } } } |