From 279c288a224bb0ae789b82de930ff5f4f7af85bb Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Wed, 14 Oct 2020 20:21:22 +0300 Subject: [PATCH] Alter enter_command_mode shortcut to `:` Just like vi. --- docs/meli.1 | 4 +++- docs/meli.conf.5 | 2 +- src/conf/shortcuts.rs | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/meli.1 b/docs/meli.1 index dcbd5e013..6aaf45947 100644 --- a/docs/meli.1 +++ b/docs/meli.1 @@ -360,7 +360,9 @@ is the default mode .It COMMAND commands are issued in .Em COMMAND -mode, by default started with Space and exited with +mode, by default started with +.Cm \&: +and exited with .Cm Esc key. .It EMBED diff --git a/docs/meli.conf.5 b/docs/meli.conf.5 index f42477ff5..3b5085c44 100644 --- a/docs/meli.conf.5 +++ b/docs/meli.conf.5 @@ -471,7 +471,7 @@ Enter .Em COMMAND mode. .\" default value -.Pq Ql Em \ +.Pq Ql Em \&: .It Ic next_tab Go to next tab. .\" default value diff --git a/src/conf/shortcuts.rs b/src/conf/shortcuts.rs index 6c40ee74b..b9c6f2e87 100644 --- a/src/conf/shortcuts.rs +++ b/src/conf/shortcuts.rs @@ -212,7 +212,7 @@ shortcut_key_values! { "pager", shortcut_key_values! { "general", pub struct GeneralShortcuts { toggle_help |> "Toggle help and shortcuts view." |> Key::Char('?'), - enter_command_mode |> "Enter COMMAND mode." |> Key::Char(' '), + enter_command_mode |> "Enter COMMAND mode." |> Key::Char(':'), go_to_tab |> "Go to the nth tab" |> Key::Alt('n'), next_tab |> "Next tab." |> Key::Char('T'), scroll_right |> "Generic scroll right (catch-all setting)" |> Key::Right,