pub struct Conf {Show 19 fields
pub files: Vec<PathBuf>,
pub default_flags: Option<String>,
pub date_time_format: Option<String>,
pub verbs: Vec<VerbConf>,
pub skin: Option<AHashMap<String, SkinEntry>>,
pub special_paths: AHashMap<Glob, SpecialHandling>,
pub search_modes: Option<FnvHashMap<String, String>>,
pub disable_mouse_capture: Option<bool>,
pub capture_mouse: Option<bool>,
pub cols_order: Option<ColsConf>,
pub show_selection_mark: Option<bool>,
pub ext_colors: AHashMap<String, String>,
pub syntax_theme: Option<String>,
pub true_colors: Option<bool>,
pub icon_theme: Option<String>,
pub modal: Option<bool>,
pub max_panels_count: Option<usize>,
pub quit_on_last_cancel: Option<bool>,
pub file_sum_threads_count: Option<usize>,
}
Expand description
The configuration read from conf.toml or conf.hjson file(s)
Fields
files: Vec<PathBuf>
the files used to load this configuration
default_flags: Option<String>
date_time_format: Option<String>
verbs: Vec<VerbConf>
skin: Option<AHashMap<String, SkinEntry>>
special_paths: AHashMap<Glob, SpecialHandling>
search_modes: Option<FnvHashMap<String, String>>
disable_mouse_capture: Option<bool>
Obsolete, kept for compatibility: you should now use capture_mouse
capture_mouse: Option<bool>
cols_order: Option<ColsConf>
show_selection_mark: Option<bool>
ext_colors: AHashMap<String, String>
syntax_theme: Option<String>
true_colors: Option<bool>
icon_theme: Option<String>
modal: Option<bool>
max_panels_count: Option<usize>
quit_on_last_cancel: Option<bool>
file_sum_threads_count: Option<usize>
Implementations
sourceimpl Conf
impl Conf
sourcepub fn default_location() -> PathBuf
pub fn default_location() -> PathBuf
return the path to the default conf.toml file. If there’s no conf.hjson file in the default conf directory, and if there’s a toml file, return this toml file.
sourcepub fn from_default_location() -> Result<Conf, ProgramError>
pub fn from_default_location() -> Result<Conf, ProgramError>
read the configuration file from the default OS specific location. Create it if it doesn’t exist
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Conf
impl<'de> Deserialize<'de> for Conf
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Conf
impl Send for Conf
impl Sync for Conf
impl Unpin for Conf
impl UnwindSafe for Conf
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more