mirror of
https://codeberg.org/unspeaker/perch.git
synced 2025-12-06 09:36:42 +01:00
display task count
This commit is contained in:
parent
59c2fdcbcd
commit
50dea84174
1 changed files with 16 additions and 6 deletions
14
src/view.rs
14
src/view.rs
|
|
@ -23,12 +23,22 @@ impl Content<TuiOut> for Taggart {
|
|||
let value_bar = status_bar(
|
||||
Color::Rgb(192, 192, 192),
|
||||
Color::Rgb(0, 0, 0),
|
||||
Fill::x(
|
||||
Bsp::a(
|
||||
Fill::x(Align::w(format!(
|
||||
" {}/{} {}:",
|
||||
" {}/{} {}",
|
||||
self.cursor + 1,
|
||||
self.entries.len(),
|
||||
self.columns.0[self.column].title
|
||||
(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(
|
||||
Color::Rgb(0, 0, 0),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue