style: show only non-obvious keybinds in all popup hints

This commit is contained in:
objz committed 2025-09-06 20:05:31 +02:00
1 parent 045e330cbd
commit b4a2bca9c3
2 files changed
+2 -3

No files matched your search

+1 -2
View File
@@ -361,8 +361,7 @@ impl App {
)])) )]))
.title_bottom( .title_bottom(
crate::tui::widgets::popups::keybind_line(&[ crate::tui::widgets::popups::keybind_line(&[
("j/k", " scroll"), ("S", " close"),
("S/Esc", " close"),
]) ])
.alignment(Alignment::Right), .alignment(Alignment::Right),
) )
+1 -1
View File
@@ -69,7 +69,7 @@ impl Widget for ConfirmPopup {
.fg(THEME.colors.border_focused) .fg(THEME.colors.border_focused)
.add_modifier(Modifier::BOLD), .add_modifier(Modifier::BOLD),
)]); )]);
let kb = keybind_line(&[("Enter", " confirm"), ("Esc", " cancel")]); let kb = keybind_line(&[("Enter", " confirm")]);
let popup = PopupFrame { let popup = PopupFrame {
title, title,