feat(tui): add context-sensitive keybinds on bottom border of each panel
This commit is contained in:
1 parent
e5de3c14fc
commit
b0738761c9
5 files changed
+89
-8
No files matched your search
@@ -207,6 +207,20 @@ pub fn render(frame: &mut Frame, area: Rect, focused: FocusedArea, state: &mut S
|
||||
block = block.title_top(search_line);
|
||||
}
|
||||
|
||||
if focused == FocusedArea::Profiles {
|
||||
block = block.title_bottom(
|
||||
super::popups::keybind_line(&[
|
||||
("l", " launch"),
|
||||
("⏎", " content"),
|
||||
("a", " add"),
|
||||
("d", " del"),
|
||||
("/", " search"),
|
||||
("Esc", " kill"),
|
||||
])
|
||||
.alignment(ratatui::layout::Alignment::Right),
|
||||
);
|
||||
}
|
||||
|
||||
let scrollbar_area = Rect {
|
||||
x: area.x + area.width.saturating_sub(1),
|
||||
y: area.y + 1,
|
||||
|
||||
Reference in new issue
Block a user