aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/keymap.rs
diff options
context:
space:
mode:
authorJan Hrastnik2020-10-12 22:23:48 +0000
committerBlaž Hrastnik2020-10-16 03:00:28 +0000
commited03ec92a825b8e42005f2f8506b0f3db4923fa5 (patch)
treec7e3da955be3e296c4f2f549fc91c1d4d47a1f3b /helix-view/src/keymap.rs
parent7208c86f23ac6d75aff62268cff73089c068cf74 (diff)
moved prompt command matching to prompt.rs
Diffstat (limited to 'helix-view/src/keymap.rs')
-rw-r--r--helix-view/src/keymap.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-view/src/keymap.rs b/helix-view/src/keymap.rs
index 96a37e6b..d6d44779 100644
--- a/helix-view/src/keymap.rs
+++ b/helix-view/src/keymap.rs
@@ -163,7 +163,7 @@ pub fn default() -> Keymaps {
vec![key!('p')] => commands::paste,
vec![key!('>')] => commands::indent,
vec![key!('<')] => commands::unindent,
- vec![key!(':')] => commands::command_mode,
+ vec![key!(':')] => commands::prompt_mode,
vec![Key {
code: KeyCode::Esc,
modifiers: Modifiers::NONE
@@ -209,7 +209,7 @@ pub fn default() -> Keymaps {
vec![key!('g')] => commands::move_file_start as Command,
vec![key!('e')] => commands::move_file_end as Command,
),
- state::Mode::Command => hashmap!(
+ state::Mode::Prompt => hashmap!(
vec![Key {
code: KeyCode::Esc,
modifiers: Modifiers::NONE