input_from_editor

Function input_from_editor 

Source
pub fn input_from_editor(placeholder: &str) -> Result<String, EditorInputError>
Expand description

Opens the editor specified by the $EDITOR environment variable (fallback vi) and returns the saved text when the editor is closed.

ยงArguments

  • placeholder - Text that will be present in the temporary file being edited