Skip to main content

editor_command

Function editor_command 

Source
pub fn editor_command(
    editor: Option<&str>,
    file: &Path,
    line: usize,
) -> EditorCommand
Expand description

Builds the command for editor (the value of $VISUAL or $EDITOR, which may carry its own arguments, like code --wait), or the system opener when none is set.