pub fn capture(prompt: &str) -> Result<Option<String>>Expand description
Open the best available editor with comment-prompt instructions.
Uses Git’s editor resolution order:
$GIT_EDITORgit config core.editor$VISUAL$EDITOR- Built-in TUI editor
prompt lines are prefixed with # and stripped from the result.
Returns Some(content) on save, None if cancelled or empty.