From 2f7f90c6e65fd17eca13edef7ab8e3998a572f5a Mon Sep 17 00:00:00 2001 From: Max Asnaashari Date: Tue, 3 Dec 2024 20:28:57 +0000 Subject: [PATCH] cmd/tui: Move filter hint Signed-off-by: Max Asnaashari --- cmd/tui/selectable_table.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/tui/selectable_table.go b/cmd/tui/selectable_table.go index c7498d2d..33738840 100644 --- a/cmd/tui/selectable_table.go +++ b/cmd/tui/selectable_table.go @@ -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 }