mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 09:28:21 +00:00
add missing command for new commit search in log
This commit is contained in:
parent
4a6131fcd9
commit
d253022f13
2 changed files with 17 additions and 0 deletions
|
|
@ -1356,6 +1356,18 @@ pub mod commands {
|
||||||
CMD_GROUP_LOG,
|
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(
|
pub fn log_close_search(
|
||||||
key_config: &SharedKeyConfig,
|
key_config: &SharedKeyConfig,
|
||||||
) -> CommandText {
|
) -> CommandText {
|
||||||
|
|
|
||||||
|
|
@ -690,6 +690,11 @@ impl Component for Revlog {
|
||||||
self.selected_commit().is_some(),
|
self.selected_commit().is_some(),
|
||||||
self.visible || force_all,
|
self.visible || force_all,
|
||||||
));
|
));
|
||||||
|
out.push(CommandInfo::new(
|
||||||
|
strings::commands::log_find_commit(&self.key_config),
|
||||||
|
true,
|
||||||
|
self.visible || force_all,
|
||||||
|
));
|
||||||
|
|
||||||
visibility_blocking(self)
|
visibility_blocking(self)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue