aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/keymap.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-09-05 13:01:05 +0000
committerBlaž Hrastnik2020-09-07 02:21:26 +0000
commit579b6899f1fe7f0a06857c4528f55f316e2975e9 (patch)
tree1b850ba7f2abc1698763fc55cf7eebdad0fe9c8f /helix-term/src/keymap.rs
parente806446379db3f5c7e3bc6fd823ddd6969ed6f32 (diff)
Work on insert mode.
Diffstat (limited to 'helix-term/src/keymap.rs')
-rw-r--r--helix-term/src/keymap.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs
index c7da0c89..ddbff3ea 100644
--- a/helix-term/src/keymap.rs
+++ b/helix-term/src/keymap.rs
@@ -116,5 +116,20 @@ pub fn default() -> Keymap {
code: KeyCode::Char('l'),
modifiers: Modifiers::NONE
} => commands::move_char_right as Command,
+ Key {
+ code: KeyCode::Char('i'),
+ modifiers: Modifiers::NONE
+ } => commands::insert_mode as Command,
+ Key {
+ code: KeyCode::Esc,
+ modifiers: Modifiers::NONE
+ } => commands::normal_mode as Command,
)
+
+ // hashmap!(
+ // Key {
+ // code: KeyCode::Esc,
+ // modifiers: Modifiers::NONE
+ // } => commands::normal_mode as Command,
+ // )
}