Function edit_mut_in_editor

Source
pub fn edit_mut_in_editor(string: &mut String) -> Result<(), OpenEditorError>
Expand description

Open the default editor and allows editing of a mutable string.

The default editor is determined by the VISUAL and EDITOR environment variables, in that order.

ยงErrors

This function will return an error if the editor call fails, if the file cannot be read, or if the temporary file cleanup fails.