feat: add branch selection popup in the log view (#349)

This commit is contained in:
Arnaud 2020-10-16 18:21:24 +02:00 committed by GitHub
parent 33387b8a3a
commit 9297915ddd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -632,7 +632,7 @@ pub mod commands {
) -> CommandText {
CommandText::new(
format!(
"Checkout [{}]",
"Branches [{}]",
get_hint(key_config.select_branch),
),
"open select branch popup",

View file

@ -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,