Function get_editor

Source
pub fn get_editor() -> Result<String>
Expand description

Determines which command-line editor to use.

It prioritizes the $EDITOR environment variable, then falls back to a list of common editors (vim, nvim, nano, notepad.exe).

ยงErrors

Returns an error if no suitable editor can be found.