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:
Edward Langley
2026-04-06 15:09:58 -07:00
parent de973ef641
commit df98f6d524

View File

@ -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 {