summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDLFW <daniel@llin.info>2021-06-20 00:10:42 +0200
committerGitHub <noreply@github.com>2021-06-19 18:10:42 -0400
commit362a507ad60ee479fb68a48fc7daf4a49652f1bf (patch)
tree94564e9327bcb02af81170150924e3d68c0e2108 /src
parent7374a96311c47f812a19b5f5c924003b54ce9329 (diff)
open command line with a colon (#75)
Beside opening the command line with a semi-colon, it can be opened also with a colon. The default key mapping has been adapted as well as the keymap.toml configuration template.
Diffstat (limited to 'src')
-rw-r--r--src/config/keymap/keymapping.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config/keymap/keymapping.rs b/src/config/keymap/keymapping.rs
index c86e4e4..e102f9c 100644
--- a/src/config/keymap/keymapping.rs
+++ b/src/config/keymap/keymapping.rs
@@ -224,6 +224,10 @@ impl AppKeyMapping {
let keys = [Event::Key(Key::Char(';'))];
insert_keycommand(&mut m, cmd, &keys)?;
+ let cmd = KeyCommand::CommandLine("".to_string(), "".to_string());
+ let keys = [Event::Key(Key::Char(':'))];
+ insert_keycommand(&mut m, cmd, &keys)?;
+
let cmd = KeyCommand::CommandLine("mkdir ".to_string(), "".to_string());
let keys = [Event::Key(Key::Char('m')), Event::Key(Key::Char('k'))];
insert_keycommand(&mut m, cmd, &keys)?;