pub struct AppConfig {
pub keymap: Keymap,
pub sort: SortSpec,
pub columns: Vec<Column>,
pub show_untracked: bool,
pub remove_untracked_blocks: bool,
pub nerd_fonts: bool,
pub mouse: bool,
pub color: bool,
pub palette: Palette,
}Expand description
Display/config inputs for the TUI (the parts of crate::config::Config
the view needs), bundled to keep App::new tidy.
Fields§
§keymap: KeymapThe effective key bindings.
sort: SortSpecThe initial sort.
columns: Vec<Column>Columns to render in the list.
show_untracked: boolWhether untracked files show ?.
remove_untracked_blocks: boolWhether untracked-only files count as “dirty” for the remove guard.
nerd_fonts: boolWhether Nerd Font glyphs are enabled.
mouse: boolWhether mouse support is enabled.
color: boolWhether color output is enabled (spec §11 precedence, resolved once).
palette: PaletteThe resolved color palette (preset + [ui.theme] overrides).
Auto Trait Implementations§
impl Freeze for AppConfig
impl RefUnwindSafe for AppConfig
impl Send for AppConfig
impl Sync for AppConfig
impl Unpin for AppConfig
impl UnsafeUnpin for AppConfig
impl UnwindSafe for AppConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more