Skip to content

Commit

Permalink
cmd/tui: Move filter hint
Browse files Browse the repository at this point in the history
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
  • Loading branch information
masnax committed Dec 12, 2024
1 parent f1796ee commit 2f7f90c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/tui/selectable_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,12 @@ func (s *selectableTable) View() string {
helpEnter := Fmt{Color: Bright, Arg: "enter", Bold: true}
helpSpace := Fmt{Color: Bright, Arg: "space", Bold: true}
helpRight := Fmt{Color: Bright, Arg: "→", Bold: true}
helpType := Fmt{Color: Bright, Arg: "type", Bold: true}
helpLeft := Fmt{Color: Bright, Arg: "←", Bold: true}
helpUp := Fmt{Color: Bright, Arg: "↑", Bold: true}
helpDown := Fmt{Color: Bright, Arg: "↓", Bold: true}

helpTmpl := Fmt{Arg: " %s to select; %s to confirm; %s to filter results.\n %s/%s to move; %s to select all; %s to select none."}
help := Printf(helpTmpl, helpSpace, helpEnter, helpType, helpUp, helpDown, helpRight, helpLeft)
helpTmpl := Fmt{Arg: " %s to select; %s to confirm\n %s/%s to move; %s to select all; %s to select none"}
help := Printf(helpTmpl, helpSpace, helpEnter, helpUp, helpDown, helpRight, helpLeft)

return title + filter + strings.Join(parts, "\n") + "\n" + help
}
Expand Down

0 comments on commit 2f7f90c

Please sign in to comment.