display task count

This commit is contained in:
🪞👃🪞 2025-03-27 20:20:10 +02:00
parent 59c2fdcbcd
commit 50dea84174

View file

@ -23,12 +23,22 @@ impl Content<TuiOut> for Taggart {
let value_bar = status_bar( let value_bar = status_bar(
Color::Rgb(192, 192, 192), Color::Rgb(192, 192, 192),
Color::Rgb(0, 0, 0), Color::Rgb(0, 0, 0),
Fill::x(Align::w(format!( Fill::x(
" {}/{} {}:", Bsp::a(
self.cursor + 1, Fill::x(Align::w(format!(
self.entries.len(), " {}/{} {}",
self.columns.0[self.column].title self.cursor + 1,
))) self.entries.len(),
(self.columns.0[self.column].getter)(&self.entries[self.cursor])
.map(|value|format!("{}: {value}", self.columns.0[self.column].title,))
.unwrap_or(String::default())
))),
Fill::x(Align::e(format!(
" {} unsaved changes ",
self.tasks.len()
)))
)
)
); );
let mode_bar = status_bar( let mode_bar = status_bar(
Color::Rgb(0, 0, 0), Color::Rgb(0, 0, 0),