From 9297915dddbd93fb98666400f17519bde834d71e Mon Sep 17 00:00:00 2001 From: Arnaud Date: Fri, 16 Oct 2020 18:21:24 +0200 Subject: [PATCH] feat: add branch selection popup in the log view (#349) --- src/strings.rs | 2 +- src/tabs/revlog.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/strings.rs b/src/strings.rs index bfdcf588..7f2df63c 100644 --- a/src/strings.rs +++ b/src/strings.rs @@ -632,7 +632,7 @@ pub mod commands { ) -> CommandText { CommandText::new( format!( - "Checkout [{}]", + "Branches [{}]", get_hint(key_config.select_branch), ), "open select branch popup", diff --git a/src/tabs/revlog.rs b/src/tabs/revlog.rs index b80289cb..f2bd3b42 100644 --- a/src/tabs/revlog.rs +++ b/src/tabs/revlog.rs @@ -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,