diff options
author | DLFW <daniel@llin.info> | 2021-06-20 00:10:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-19 18:10:42 -0400 |
commit | 362a507ad60ee479fb68a48fc7daf4a49652f1bf (patch) | |
tree | 94564e9327bcb02af81170150924e3d68c0e2108 /src/config | |
parent | 7374a96311c47f812a19b5f5c924003b54ce9329 (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/config')
-rw-r--r-- | src/config/keymap/keymapping.rs | 4 |
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)?; |