pub struct EditorOpenConfig {
pub command: Option<String>,
pub exit: bool,
}Fields§
§command: Option<String>The command used when pressing e on the search results page. Two variables are available: %file, which will be replaced
with the file path of the search result, and %line, which will be replaced with the line number of the result. For example:
[editor_open]
command = "vi %file +%line"If not set explicitly, scooter will attempt to use the editor set by the $EDITOR environment variable.
This can be overridden using the --editor-command flag, for example: scooter --editor-command "vi %file +%line".
exit: boolWhether to exit scooter after running the command defined by editor_open.command. Defaults to false.
Trait Implementations§
Source§impl Clone for EditorOpenConfig
impl Clone for EditorOpenConfig
Source§fn clone(&self) -> EditorOpenConfig
fn clone(&self) -> EditorOpenConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EditorOpenConfig
impl Debug for EditorOpenConfig
Source§impl Default for EditorOpenConfig
impl Default for EditorOpenConfig
Source§fn default() -> EditorOpenConfig
fn default() -> EditorOpenConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EditorOpenConfigwhere
EditorOpenConfig: Default,
impl<'de> Deserialize<'de> for EditorOpenConfigwhere
EditorOpenConfig: Default,
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EditorOpenConfig
impl PartialEq for EditorOpenConfig
impl StructuralPartialEq for EditorOpenConfig
Auto Trait Implementations§
impl Freeze for EditorOpenConfig
impl RefUnwindSafe for EditorOpenConfig
impl Send for EditorOpenConfig
impl Sync for EditorOpenConfig
impl Unpin for EditorOpenConfig
impl UnsafeUnpin for EditorOpenConfig
impl UnwindSafe for EditorOpenConfig
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> 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> 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