retest: 7e, 1f

This commit is contained in:
i do not exist 2026-07-01 16:35:20 +03:00
parent 383e534692
commit c53c5bf377
4 changed files with 29 additions and 21 deletions

View file

@ -59,11 +59,11 @@ impl App {
/// Create a new application instance from a backend, project, config, and mode
///
/// ```
/// let jack = tek::tengri::Jack::new(&"test_tek").expect("failed to connect to jack");
/// let jack = tek::tengri::sing::Jack::new(&"test_tek").expect("failed to connect to jack");
/// let proj = tek::Arrangement::default();
/// let mut conf = tek::Config::default();
/// conf.add("(mode hello)");
/// let tek = tek::tek(&jack, proj, conf, "hello");
/// let tek = tek::App::new(&jack, proj, conf, "hello");
/// ```
pub fn new (
jack: &Jack<'static>, project: Arrangement, config: Config, mode: impl AsRef<str>
@ -523,15 +523,7 @@ fn tek_word (state: &App, to: &mut Tui, dsl: &impl Expression) -> Usually<XYWH<u
})))
}.draw(to),
Some(":sessions") => h_exact(Some(6), w_min(Some(30), thunk(|to: &mut Tui|{
let f = Rgb(224, 192, 128);
for (index, name) in ["session1", "session2", "session3"].iter().enumerate() {
let b = if index == 0 { Rgb(50,50,50) } else { Rgb(40,40,40) };
y_push((2 * index) as u16,
&h_exact(2, w_full(bg(b, origin_w(fg(f, name)))))).draw(to);
}
Ok(to.area().into())
}))).draw(to),
Some(":sessions") => view_sessions().draw(to),
Some(":browse/title") => w_full(origin_w(field_v(ItemTheme::default(),
match state.dialog.browser_target().unwrap() {
@ -562,7 +554,7 @@ fn tek_word (state: &App, to: &mut Tui, dsl: &impl Expression) -> Usually<XYWH<u
if let Some(dsl) = views.get(dsl.src()?.unwrap()) {
let dsl = dsl.clone();
std::mem::drop(views);
state.interpret(to, &dsl)?
state.interpret(to, &dsl)
} else {
unimplemented!("{dsl:?}");
}