removing edit mode from the codebase

This commit is contained in:
filipriec
2025-08-24 15:32:24 +02:00
parent 06cc1663b3
commit 15d9b31cb6
6 changed files with 21 additions and 12 deletions

View File

@@ -48,7 +48,16 @@ pub fn render_status_line(
// --- The normal status line rendering logic (unchanged) ---
let program_info = format!("komp_ac v{}", env!("CARGO_PKG_VERSION"));
let mode_text = if is_edit_mode { "[EDIT]" } else { "[READ-ONLY]" };
let mode_text = if let Some(editor) = &app_state.form_editor {
match editor.mode() {
canvas::AppMode::Edit => "[EDIT]",
canvas::AppMode::ReadOnly => "[READ-ONLY]",
canvas::AppMode::Highlight => "[VISUAL]",
_ => "",
}
} else {
"" // No canvas active
};
let home_dir = dirs::home_dir()
.map(|p| p.to_string_lossy().into_owned())