r=replace
This commit is contained in:
@@ -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 */ }
|
||||||
|
|||||||
Reference in New Issue
Block a user