Skip to content

Commit

Permalink
Remove duplicate keybinding help
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasschafer committed Nov 10, 2024
1 parent fba9093 commit 3d4b765
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,20 +246,11 @@ pub fn render(app: &App, frame: &mut Frame) {

let global_keys = ["<C-r> reset", "<esc> quit"];
let current_keys = match app.current_screen {
CurrentScreen::Searching => vec![
"<enter> search",
"<tab> focus next",
"<S-tab> focus prev",
"<C-r> reset",
"<esc> quit",
],
CurrentScreen::Confirmation => vec![
"<space> toggle",
"<j> down",
"<k> up",
"<C-r> reset",
"<esc> quit",
],
CurrentScreen::Searching => {
vec!["<enter> search", "<tab> focus next", "<S-tab> focus prev"]
}

CurrentScreen::Confirmation => vec!["<space> toggle", "<j> down", "<k> up"],
CurrentScreen::PerformingSearch
| CurrentScreen::PerformingReplacement
| CurrentScreen::Results => vec![],
Expand Down

0 comments on commit 3d4b765

Please sign in to comment.