mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 01:18:21 +00:00
update command list of revlog
This commit is contained in:
parent
3101f7b104
commit
eb3d6c9b0f
2 changed files with 13 additions and 0 deletions
|
|
@ -286,6 +286,13 @@ pub mod commands {
|
|||
CMD_GROUP_DIFF,
|
||||
)
|
||||
}
|
||||
pub fn copy_hash(key_config: &SharedKeyConfig) -> CommandText {
|
||||
CommandText::new(
|
||||
format!("Copy Hash [{}]", get_hint(key_config.copy),),
|
||||
"copy selected commit hash to clipboard",
|
||||
CMD_GROUP_DIFF,
|
||||
)
|
||||
}
|
||||
pub fn diff_home_end(
|
||||
key_config: &SharedKeyConfig,
|
||||
) -> CommandText {
|
||||
|
|
|
|||
|
|
@ -287,6 +287,12 @@ impl Component for Revlog {
|
|||
self.visible || force_all,
|
||||
));
|
||||
|
||||
out.push(CommandInfo::new(
|
||||
strings::commands::copy_hash(&self.key_config),
|
||||
true,
|
||||
self.visible || force_all,
|
||||
));
|
||||
|
||||
visibility_blocking(self)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue