Skip to content

Commit

Permalink
Fix helps
Browse files Browse the repository at this point in the history
  • Loading branch information
lusingander committed Feb 23, 2025
1 parent 382575b commit 87cde1e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/view/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ fn build_helps(mapper: &UserEventMapper, theme: ColorTheme) -> (Vec<Spans>, Vec<
BuildHelpsItem::new(UserEvent::GoToLeft, "Select first column"),
BuildHelpsItem::new(UserEvent::GoToRight, "Select last column"),
BuildHelpsItem::new(UserEvent::Confirm, "Open selected item"),
BuildHelpsItem::new(UserEvent::Expand, "Expand selected attribute"),
BuildHelpsItem::new(UserEvent::Insight, "Open table insight"),
BuildHelpsItem::new(UserEvent::CopyToClipboard, "Copy selected item"),
];
Expand Down Expand Up @@ -269,12 +270,13 @@ fn build_short_helps(mapper: &UserEventMapper) -> (Vec<SpansWithPriority>, Vec<S
let table_helps = vec![
BuildShortHelpsItem::single(UserEvent::Quit, "Quit", 0),
BuildShortHelpsItem::single(UserEvent::Close, "Back", 1),
BuildShortHelpsItem::group(vec![UserEvent::Down, UserEvent::Up], "Select row", 4),
BuildShortHelpsItem::group(vec![UserEvent::Left, UserEvent::Right], "Select col", 5),
BuildShortHelpsItem::group(vec![UserEvent::GoToTop, UserEvent::GoToBottom], "Top/Bottom", 7),
BuildShortHelpsItem::group(vec![UserEvent::Down, UserEvent::Up], "Select row", 5),
BuildShortHelpsItem::group(vec![UserEvent::Left, UserEvent::Right], "Select col", 6),
BuildShortHelpsItem::group(vec![UserEvent::GoToTop, UserEvent::GoToBottom], "Top/Bottom", 8),
BuildShortHelpsItem::single(UserEvent::Confirm, "Open", 2),
BuildShortHelpsItem::single(UserEvent::Expand, "Expand", 4),
BuildShortHelpsItem::single(UserEvent::Insight, "Insight", 3),
BuildShortHelpsItem::single(UserEvent::CopyToClipboard, "Copy", 6),
BuildShortHelpsItem::single(UserEvent::CopyToClipboard, "Copy", 7),
BuildShortHelpsItem::single(UserEvent::Help, "Help", 0),
];
#[rustfmt::skip]
Expand Down

0 comments on commit 87cde1e

Please sign in to comment.