From 7b94358d11beb1059012d7f698b8cf0ffb9a3231 Mon Sep 17 00:00:00 2001 From: Antonio Yang Date: Thu, 25 Feb 2021 21:59:45 +0800 Subject: [PATCH] Fix vim default config (#549) --- assets/vim_style_key_config.ron | 4 +++- src/strings.rs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/vim_style_key_config.ron b/assets/vim_style_key_config.ron index b1939ffc..a02318a1 100644 --- a/assets/vim_style_key_config.ron +++ b/assets/vim_style_key_config.ron @@ -28,7 +28,9 @@ exit_popup: ( code: Esc, modifiers: ( bits: 0,),), open_commit: ( code: Char('c'), modifiers: ( bits: 0,),), - open_commit_editor: ( code: Char('E'), modifiers: ( bits: 1,),), + + // Note: the shift modifier does not work for open_commit_editor + open_commit_editor: ( code: Char('e'), modifiers: ( bits: 2,),), open_help: ( code: F(1), modifiers: ( bits: 0,),), move_left: ( code: Char('h'), modifiers: ( bits: 0,),), diff --git a/src/strings.rs b/src/strings.rs index 1746279c..b854d64b 100644 --- a/src/strings.rs +++ b/src/strings.rs @@ -545,7 +545,7 @@ pub mod commands { CommandText::new( format!( "Reset Item [{}]", - key_config.get_hint(key_config.stash_drop), + key_config.get_hint(key_config.status_reset_item), ), "revert changes in selected file or entire path", CMD_GROUP_CHANGES,