Skip to main content

spawn_editor

Function spawn_editor 

Source
pub async fn spawn_editor(
    editor: &str,
    file_path: &Path,
    cursor_line: Option<usize>,
) -> Result<bool, ComposeError>
Expand description

Spawn the editor and wait for it to exit. For vim/neovim, positions cursor at the given line number.