mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2026-08-07 22:17:07 +02:00
moar flat
This commit is contained in:
parent
fc01fd6ad3
commit
a27dacff93
29 changed files with 649 additions and 582 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue