pub fn edit(
filename: &str,
initial_content: &str,
mode: EditorMode,
) -> Result<Option<String>>Expand description
Open the built-in TUI editor with initial content.
filenameis shown in the UI (doesn’t touch disk).initial_contentis pre-loaded into the buffer.modecontrols wrapping and guide lines.
Returns Some(content) if the user saved, None if cancelled.