Skip to content

Commit d253022

Browse files
committed
add missing command for new commit search in log
1 parent 4a6131f commit d253022

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/strings.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,6 +1356,18 @@ pub mod commands {
13561356
CMD_GROUP_LOG,
13571357
)
13581358
}
1359+
pub fn log_find_commit(
1360+
key_config: &SharedKeyConfig,
1361+
) -> CommandText {
1362+
CommandText::new(
1363+
format!(
1364+
"Find [{}]",
1365+
key_config.get_hint(key_config.keys.file_find),
1366+
),
1367+
"start commit search",
1368+
CMD_GROUP_LOG,
1369+
)
1370+
}
13591371
pub fn log_close_search(
13601372
key_config: &SharedKeyConfig,
13611373
) -> CommandText {

src/tabs/revlog.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,11 @@ impl Component for Revlog {
690690
self.selected_commit().is_some(),
691691
self.visible || force_all,
692692
));
693+
out.push(CommandInfo::new(
694+
strings::commands::log_find_commit(&self.key_config),
695+
true,
696+
self.visible || force_all,
697+
));
693698

694699
visibility_blocking(self)
695700
}

0 commit comments

Comments
 (0)