aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/keymap.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-10-06 07:00:23 +0000
committerBlaž Hrastnik2020-10-13 14:13:56 +0000
commit1dba0f2b1ccc0c6a29e05876b7b7153373221f87 (patch)
tree2114ae0a23fb379c57b7ad1de491fa8406cbaffe /helix-view/src/keymap.rs
parenteba5b1ef3329bef35fe387b03bdf2f32cdb34761 (diff)
Simple yank/paste registers.
Diffstat (limited to 'helix-view/src/keymap.rs')
-rw-r--r--helix-view/src/keymap.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/helix-view/src/keymap.rs b/helix-view/src/keymap.rs
index e108324e..da5934eb 100644
--- a/helix-view/src/keymap.rs
+++ b/helix-view/src/keymap.rs
@@ -147,6 +147,8 @@ pub fn default() -> Keymaps {
vec![key!(';')] => commands::collapse_selection,
vec![key!('u')] => commands::undo,
vec![shift!('U')] => commands::redo,
+ vec![key!('y')] => commands::yank,
+ vec![key!('p')] => commands::paste,
vec![Key {
code: KeyCode::Esc,
modifiers: Modifiers::NONE