preferences added

This commit is contained in:
Hermes Agent
2026-08-16 20:08:27 +00:00
parent b099157a17
commit f53ed36f31
11 changed files with 1425 additions and 173 deletions

View File

@@ -3,6 +3,7 @@ mod db;
mod filter;
mod model;
mod parser;
mod preferences;
mod ui;
use std::{io::stdout, path::PathBuf, time::Duration};
@@ -80,6 +81,7 @@ fn run_tui(mut app: App) -> Result<()> {
terminal.clear()?;
let result = (|| -> Result<()> {
loop {
app.tick()?;
terminal.draw(|f| ui::draw(f, &mut app))?;
if app.should_quit {
break;
@@ -93,7 +95,7 @@ fn run_tui(mut app: App) -> Result<()> {
}
}
}
app.db.checkpoint()?;
app.shutdown()?;
Ok(())
})();
terminal.show_cursor()?;