pub struct GeneralConfig {
pub editor: String,
pub shell: String,
pub shell_pause: String,
pub text_sync_threshold_kb: usize,
pub delete_mode: String,
pub show_version: bool,
pub terminal_title: String,
pub git_status_enabled: bool,
pub fs_watch_debounce_ms: u64,
}Expand description
General behavior settings.
Fields§
§editor: StringEditor command used when opening a file.
shell: StringShell that runs !<command> and :git, as a program plus the flags
that make it read a command string — e.g. pwsh -NoProfile -Command.
Blank means “use the platform default”, which is
crate::actions::shell_exec::DEFAULT_SHELL_ARGV. Parsed by
crate::actions::shell_exec::split_shell_spec; this is not itself a
shell command, so it gets no expansion or pipelines.
shell_pause: StringWhen to wait for Enter after a !<command> or :git finishes, before
Trail takes the screen back: always, on_error or never.
text_sync_threshold_kb: usizeHow much of a file, in KiB, a preview reads before stopping short.
Named for what it used to decide — which files were highlighted on the UI thread, which none are now. Renaming it would break every config that sets it for no behavioural gain, so it keeps the name and has a documented meaning instead.
delete_mode: StringWhere dd sends the selected entry: trash or permanent.
Parsed by crate::actions::fs_ops::DeleteMode::parse.
show_version: boolWhether the preview panel’s top border carries Trail’s version.
A diagnostic rather than chrome: it answers “which build is this
window?” without leaving the session, which trail --version cannot do
for a process that is already running. Off by default.
terminal_title: StringWhat the terminal’s window or tab title says while Trail runs: off,
dir (trail <directory name>) or path (trail <full path>).
Parsed by crate::window_title::TitleMode::parse; read every frame,
so :set takes effect at once.
git_status_enabled: boolWhether git status workers should run.
fs_watch_debounce_ms: u64Filesystem watcher debounce window in milliseconds.
Trait Implementations§
Source§impl Clone for GeneralConfig
impl Clone for GeneralConfig
Source§impl Debug for GeneralConfig
impl Debug for GeneralConfig
Source§impl<'de> Deserialize<'de> for GeneralConfig
impl<'de> Deserialize<'de> for GeneralConfig
Source§fn 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>,
impl Eq for GeneralConfig
Source§impl PartialEq for GeneralConfig
impl PartialEq for GeneralConfig
impl StructuralPartialEq for GeneralConfig
Auto Trait Implementations§
impl Freeze for GeneralConfig
impl RefUnwindSafe for GeneralConfig
impl Send for GeneralConfig
impl Sync for GeneralConfig
impl Unpin for GeneralConfig
impl UnsafeUnpin for GeneralConfig
impl UnwindSafe for GeneralConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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> ⓘ
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