pub struct CursiveOpenEditorOptions {
pub editor_strategy: FindEditorStrategy,
pub additional_args: Vec<OsString>,
pub edit_path_strategy: EditPathStrategy,
}
Expand description
How the editor will be opened.
Fields§
§editor_strategy: FindEditorStrategy
How to pick which editor program to run.
By default, check (in order) the CURSIVE_EDITOR
, EDITOR
, and VISUAL
environment variables.
additional_args: Vec<OsString>
Additional arguments to pass to the editor program invocation. The file path to edit is always passed as the last argument, after all of these.
edit_path_strategy: EditPathStrategy
How to pick what file to edit. By default, create a temporary file.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CursiveOpenEditorOptions
impl RefUnwindSafe for CursiveOpenEditorOptions
impl Send for CursiveOpenEditorOptions
impl Sync for CursiveOpenEditorOptions
impl Unpin for CursiveOpenEditorOptions
impl UnwindSafe for CursiveOpenEditorOptions
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