mirror of
https://codeberg.org/unspeaker/perch.git
synced 2025-12-06 17:46:42 +01:00
fix off-by-1 column widths; add edit cursor
This commit is contained in:
parent
59918491f6
commit
4bfdd28638
7 changed files with 57 additions and 59 deletions
11
src/view.rs
11
src/view.rs
|
|
@ -21,12 +21,12 @@ impl Content<TuiOut> for Taggart {
|
|||
Fill::x(Align::w(Tui::bold(true, if self.editing.is_some() {
|
||||
Bsp::e(
|
||||
Tui::bg(Self::BG_EDIT, Tui::fg(Self::FG_EDIT, " EDIT ")),
|
||||
" Esc to cancel, Enter to save"
|
||||
" Esc: cancel, Enter: set value"
|
||||
)
|
||||
} else {
|
||||
Bsp::e(
|
||||
Tui::bg(Self::BG_BROWSE, Tui::fg(Self::FG_BROWSE, " BROWSE ")),
|
||||
" Q to exit, Arrows to select, Enter to edit"
|
||||
" Q: exit, Arrows: select, Enter: edit"
|
||||
)
|
||||
}))),
|
||||
Fill::x(Align::e(size)),
|
||||
|
|
@ -58,11 +58,4 @@ impl Entry {
|
|||
Self::ICON_UNKNOWN
|
||||
}
|
||||
}
|
||||
//fn style (&self) -> Option<Style> {
|
||||
//if self.is_dir() {
|
||||
//None
|
||||
//} else {
|
||||
//Some(Style::default().bold())
|
||||
//}
|
||||
//}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue