Skip to content

Commit

Permalink
fix: correct legend
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-pitblado committed Nov 11, 2024
1 parent 8e219ba commit 36903e3
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/ui.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::app::{ActiveInput, App, InputMode};
use ansi_parser::{AnsiParser, Output};
use crossterm::event::{self, Event as CEvent, KeyCode};
use crossterm::event::{self, Event as CEvent};
use ratatui::{
backend::Backend,
layout::{Alignment, Constraint, Direction, Layout, Margin, Rect},
Expand Down Expand Up @@ -63,7 +63,18 @@ fn get_legend(input_mode: &InputMode) -> Text<'static> {
InputMode::Normal => Text::from(Line::from(vec![
Span::styled(" q ", Style::default().fg(Color::Red)),
Span::raw(": Quit "),
// ... other keys ...
Span::styled(" j ", Style::default().fg(Color::Red)),
Span::raw(": Down "),
Span::styled(" k ", Style::default().fg(Color::Red)),
Span::raw(": Up "),
Span::styled(" n ", Style::default().fg(Color::Red)),
Span::raw(": Next Page "),
Span::styled(" p ", Style::default().fg(Color::Red)),
Span::raw(": Previous Page "),
Span::styled(" t ", Style::default().fg(Color::Red)),
Span::raw(": Toggle Done "),
Span::styled(" Enter ", Style::default().fg(Color::Red)),
Span::raw(": View Details "),
Span::styled(" a ", Style::default().fg(Color::Red)),
Span::raw(": Add Task "),
])),
Expand Down

0 comments on commit 36903e3

Please sign in to comment.