From c96d070b7a642f5b37eec7ba7ed9897b91065d0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=A1ssio=20Virg=C3=ADnio?= Date: Mon, 19 Jan 2026 16:02:20 -0300 Subject: [PATCH] Implement help indicator rendering Added a help indicator to the bottom right corner. --- src/app.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/app.rs b/src/app.rs index 5adc361..376ab73 100644 --- a/src/app.rs +++ b/src/app.rs @@ -817,6 +817,26 @@ impl<'a> StatefulWidget for AppWidget<'a, '_> { }; widget.render(list_area, buf, state.mouse_areas); + // Render help indicator in bottom right corner + let help_text = "Help ?"; + let help_width = help_text.len() as u16; + let help_area = Rect::new( + area.x + .saturating_add(area.width.saturating_sub(help_width + 1)), + area.y.saturating_add(area.height.saturating_sub(1)), + help_width, + 1, + ); + + Line::from(Span::styled(help_text, self.config.theme.help_border)) + .render(help_area, buf); + + state.mouse_areas.push(( + help_area, + smallvec![MouseEventKind::Down(MouseButton::Left)], + smallvec![Action::Help], + )); + // Render the help menu if it's open if let Some(ref mut help_position) = state.help_position { // Ignore any mouse actions on the lower area