pub struct SelectionConfig {
pub auto_copy_selection: bool,
pub copy_trailing_newline: bool,
pub middle_click_paste: bool,
pub paste_delay_ms: u64,
pub warn_paste_control_chars: bool,
pub dropped_file_quote_style: DroppedFileQuoteStyle,
}Expand description
Copy-on-select, paste behaviour and dropped-file quoting.
Fields§
§auto_copy_selection: boolAutomatically copy selected text to clipboard
copy_trailing_newline: boolInclude trailing newline when copying lines Note: Inverted logic from old strip_trailing_newline_on_copy
middle_click_paste: boolPaste on middle mouse button click
paste_delay_ms: u64Delay in milliseconds between pasted lines (0 = no delay) Useful for slow terminals or remote connections that can’t handle rapid paste
warn_paste_control_chars: boolWhen true (default), log a warning when clipboard paste content contains
control characters that were stripped by the paste sanitizer.
Control characters in paste content (ESC, C0, C1) can inject terminal escape sequences and execute commands when pasted into a shell. The sanitizer always strips them; this flag controls whether a warning is logged so users can investigate unexpected behaviour.
Set to false to suppress warnings for pastes that regularly contain
control characters (e.g., when pasting binary content intentionally).
dropped_file_quote_style: DroppedFileQuoteStyleQuote style for dropped file paths
- single_quotes: Wrap in single quotes (safest for most shells)
- double_quotes: Wrap in double quotes
- backslash: Escape special characters with backslashes
- none: Insert path as-is (not recommended)
Trait Implementations§
Source§impl Clone for SelectionConfig
impl Clone for SelectionConfig
Source§fn clone(&self) -> SelectionConfig
fn clone(&self) -> SelectionConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SelectionConfig
impl Debug for SelectionConfig
Source§impl Default for SelectionConfig
impl Default for SelectionConfig
Source§fn default() -> SelectionConfig
fn default() -> SelectionConfig
Source§impl<'de> Deserialize<'de> for SelectionConfig
impl<'de> Deserialize<'de> for SelectionConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SelectionConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SelectionConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for SelectionConfig
impl Serialize for SelectionConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for SelectionConfig
impl RefUnwindSafe for SelectionConfig
impl Send for SelectionConfig
impl Sync for SelectionConfig
impl Unpin for SelectionConfig
impl UnsafeUnpin for SelectionConfig
impl UnwindSafe for SelectionConfig
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
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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 moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().