pub fn external_editor_input(default: Option<&str>, extension: &str) -> color_eyre::Result<String> {
    Editor::new()
        .trim_newlines(false)
        .extension(extension)
        .edit(default.unwrap_or(""))
        .suggestion("Set your default editor using the $EDITOR or $VISUAL environment variables")?
        .ok_or(Apologize::EditorError)
        .suggestion("Make sure to save next time!")
}
/// Gets input from external editor, optionally displays default text in editor
Gets input from external editor, optionally displays default text in editor
Gets input from external editor optionally displays default text in editor
pub fn external_editor_input(default: Option<&str>, extension: &str) -> color_eyre::Result<String> {
    Editor::new()
        .trim_newlines(false)
        .extension(extension)
        .edit(default.unwrap_or(""))
        .suggestion("Set your default editor using the $EDITOR or $VISUAL environment variables")?
        .ok_or(Apologize::EditorError)
        .suggestion("Make sure to save next time!")
}
pub fn external_editor_input ( default : Option < & str > , extension : & str ) -> color_eyre :: Result < String > { Editor :: new ( ) . trim_newlines ( false ) . extension ( extension ) . edit ( default . unwrap_or ( " " ) ) . suggestion ( " " ) ? . ok_or ( Apologize :: EditorError ) . suggestion ( " " ) }
Gets input from external editor, optionally displays default text in editor
Gets input from external editor optionally displays default text in editor
default
Option<&str>
extension
&str
default
Option<&str>
extension
&str