pub fn edit_message_in_editor(
repo: &impl GitRepo,
message: &str,
) -> Result<String>Expand description
Open message in the configured editor and return the edited result.
Suspends the TUI (disables raw mode, leaves the alternate screen) before
launching the editor, then restores it unconditionally before returning.
Works for both terminal-UI editors (e.g. vim, emacs -nw) and GUI
editors that manage their own window (e.g. code --wait).
The editor command may include arguments (e.g. "emacs -nw") — they are
split on whitespace and forwarded before the temp-file path.