- Add `Logger`, `Config`
- Back to `nixos-unstable`
- `nix flake update`
This commit is contained in:
Jens K.
2024-12-04 13:29:58 +01:00
committed by GitHub
parent b815b1f5eb
commit 634884d483
11 changed files with 418 additions and 55 deletions

View File

@@ -19,6 +19,7 @@ use ratatui::{
layout::{Constraint, Layout, Rect},
widgets::{Block, StatefulWidget, Widget},
};
use tracing::debug;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
enum Mode {
@@ -90,6 +91,7 @@ impl App {
}
fn handle_key_event(&mut self, key: KeyEvent) {
debug!("Received key {:?}", key.code);
match key.code {
KeyCode::Char('q') | KeyCode::Esc => self.mode = Mode::Quit,
KeyCode::Char('c') => self.content = Content::Countdown,