From d253022f13fb392996e2cef98def7a2291fb5fcc Mon Sep 17 00:00:00 2001 From: extrawurst Date: Mon, 21 Aug 2023 11:28:29 +0200 Subject: [PATCH] add missing command for new commit search in log --- src/strings.rs | 12 ++++++++++++ src/tabs/revlog.rs | 5 +++++ 2 files changed, 17 insertions(+) diff --git a/src/strings.rs b/src/strings.rs index dc689d64..bb0e4933 100644 --- a/src/strings.rs +++ b/src/strings.rs @@ -1356,6 +1356,18 @@ pub mod commands { CMD_GROUP_LOG, ) } + pub fn log_find_commit( + key_config: &SharedKeyConfig, + ) -> CommandText { + CommandText::new( + format!( + "Find [{}]", + key_config.get_hint(key_config.keys.file_find), + ), + "start commit search", + CMD_GROUP_LOG, + ) + } pub fn log_close_search( key_config: &SharedKeyConfig, ) -> CommandText { diff --git a/src/tabs/revlog.rs b/src/tabs/revlog.rs index 05590c46..e5e37e9d 100644 --- a/src/tabs/revlog.rs +++ b/src/tabs/revlog.rs @@ -690,6 +690,11 @@ impl Component for Revlog { self.selected_commit().is_some(), self.visible || force_all, )); + out.push(CommandInfo::new( + strings::commands::log_find_commit(&self.key_config), + true, + self.visible || force_all, + )); visibility_blocking(self) }