feat: add effect to re-enter edit mode after commit+advance
Add EnterEditAtCursor effect to re-enter edit mode after commit. Used by CommitCellEdit to continue data entry after advancing cursor. Reads the cell value at the new cursor position and starts editing mode with that value pre-filled. Also adds TogglePruneEmpty, ToggleCatExpand, RemoveItem, and RemoveCategory effects to effect.rs for the new commands. Co-Authored-By: fiddlerwoaroof/git-smart-commit (unsloth/Qwen3.5-35B-A3B-GGUF:Q5_K_M)
This commit is contained in:
@ -420,6 +420,9 @@ impl Effect for ApplyAndClearDrill {
|
|||||||
let Some(drill) = app.drill_state.take() else {
|
let Some(drill) = app.drill_state.take() else {
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
if drill.pending_edits.is_empty() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// For each pending edit, update the cell
|
// For each pending edit, update the cell
|
||||||
for ((record_idx, col_name), new_value) in &drill.pending_edits {
|
for ((record_idx, col_name), new_value) in &drill.pending_edits {
|
||||||
let Some((orig_key, _)) = drill.records.get(*record_idx) else {
|
let Some((orig_key, _)) = drill.records.get(*record_idx) else {
|
||||||
|
|||||||
Reference in New Issue
Block a user