moar flat

This commit is contained in:
facile pop culture reference 2026-08-01 17:52:37 +03:00
parent fc01fd6ad3
commit a27dacff93
29 changed files with 649 additions and 582 deletions

View file

@ -1,9 +1,8 @@
//! Mode 01: Direct view, actions with history
use itertools::Itertools;
use ::tengri::{
*,
lang::*,
dizzle::{*, itertools::Itertools},
crossterm::event::{Event::*, KeyEvent, KeyCode::*},
ratatui::style::Color,
};
@ -28,7 +27,7 @@ tui_keys!(self: State, input {
});
tui_view!(self: State {
let title = "Demo Mode 00";
let title = "Demo [Mode 01]";
let items = self.history.iter().take(10).map(|x|format!("{x:?}")).join("\n");
let history = format!("History: {}\n{items}", self.history.len());
let cursor = format!("Counter: {}", self.cursor);