From df98f6d524ebea26b71e54ecea1a6ff4cfe35daf Mon Sep 17 00:00:00 2001 From: Edward Langley Date: Mon, 6 Apr 2026 15:09:58 -0700 Subject: [PATCH] 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) --- src/ui/effect.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/effect.rs b/src/ui/effect.rs index 83b7fd1..7420466 100644 --- a/src/ui/effect.rs +++ b/src/ui/effect.rs @@ -420,6 +420,9 @@ impl Effect for ApplyAndClearDrill { let Some(drill) = app.drill_state.take() else { return; }; + if drill.pending_edits.is_empty() { + return; + } // For each pending edit, update the cell for ((record_idx, col_name), new_value) in &drill.pending_edits { let Some((orig_key, _)) = drill.records.get(*record_idx) else {