mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 08:58:21 +00:00
feat: add branch selection popup in the log view (#349)
This commit is contained in:
parent
33387b8a3a
commit
9297915ddd
2 changed files with 4 additions and 4 deletions
|
|
@ -632,7 +632,7 @@ pub mod commands {
|
|||
) -> CommandText {
|
||||
CommandText::new(
|
||||
format!(
|
||||
"Checkout [{}]",
|
||||
"Branches [{}]",
|
||||
get_hint(key_config.select_branch),
|
||||
),
|
||||
"open select branch popup",
|
||||
|
|
|
|||
|
|
@ -231,10 +231,10 @@ impl Component for Revlog {
|
|||
Ok(true)
|
||||
},
|
||||
);
|
||||
} else if k == self.key_config.create_branch {
|
||||
} else if k == self.key_config.select_branch {
|
||||
self.queue
|
||||
.borrow_mut()
|
||||
.push_back(InternalEvent::CreateBranch);
|
||||
.push_back(InternalEvent::SelectBranch);
|
||||
return Ok(true);
|
||||
}
|
||||
}
|
||||
|
|
@ -272,7 +272,7 @@ impl Component for Revlog {
|
|||
));
|
||||
|
||||
out.push(CommandInfo::new(
|
||||
strings::commands::open_branch_create_popup(
|
||||
strings::commands::open_branch_select_popup(
|
||||
&self.key_config,
|
||||
),
|
||||
true,
|
||||
|
|
|
|||
Loading…
Reference in a new issue