open-editor 1.2.0

Open files or Strings in user's default editor
Documentation
1
2
3
4
5
6
7
8
9
use open_editor::{EditorCallBuilder, errors::OpenEditorError};

fn main() -> Result<(), OpenEditorError> {
    let user_input = EditorCallBuilder::new()
        .with_env_vars(&["MY_EDITOR"])
        .open_editor()?;
    println!("User input:\n{user_input}");
    Ok(())
}