r=replace

This commit is contained in:
2025-11-12 08:40:56 -07:00
parent 37463f46c3
commit ea28b852e6

View File

@@ -112,13 +112,17 @@ impl Mode {
return; return;
} }
// edit cell // edit cell
'i' | 'a' | 'r' => { 'i' | 'a' => {
let (x, y) = app.grid.selected_cell; let (x, y) = app.grid.selected_cell;
let val = app.grid.get_cell_raw(x, y).as_ref().map(|f| f.to_string()).unwrap_or(String::new()); let val = app.grid.get_cell_raw(x, y).as_ref().map(|f| f.to_string()).unwrap_or(String::new());
app.mode = Mode::Insert(Chord::from(val)); app.mode = Mode::Insert(Chord::from(val));
} }
// replace cell
'r' => {
app.mode = Mode::Insert(Chord::from(String::new()));
}
'I' => { /* insert col before */ } 'I' => { /* insert col before */ }
'A' => { /* insert col after */ } 'A' => { /* insert col after */ }
'o' => { /* insert row below */ } 'o' => { /* insert row below */ }