diff --git a/src/app.rs b/src/app.rs index e2d4e9a0..cb902530 100644 --- a/src/app.rs +++ b/src/app.rs @@ -832,6 +832,15 @@ impl App { } } + res.push(CommandInfo::new( + strings::commands::find_file(&self.key_config), + !self.find_file_popup.is_visible(), + (!self.any_popup_visible() + && self.files_tab.is_visible()) + || self.revision_files_popup.is_visible() + || force_all, + )); + res.push( CommandInfo::new( strings::commands::toggle_tabs(&self.key_config), diff --git a/src/strings.rs b/src/strings.rs index 7d6e0924..fcc45bc8 100644 --- a/src/strings.rs +++ b/src/strings.rs @@ -367,6 +367,16 @@ pub mod commands { CMD_GROUP_GENERAL, ) } + pub fn find_file(key_config: &SharedKeyConfig) -> CommandText { + CommandText::new( + format!( + "Find [{}]", + key_config.get_hint(key_config.file_find) + ), + "find file in tree", + CMD_GROUP_GENERAL, + ) + } pub fn toggle_tabs_direct( key_config: &SharedKeyConfig, ) -> CommandText {