Skip to content

Commit 050c155

Browse files
wesmclaude
andcommitted
docs: Add undo feature explanation to editing guide
**Added:** - New "Undo Pending Edits" section explaining the `u` key functionality - How undo works (LIFO, multiple undo, preserves position) - Example workflow showing sequential undo of 3 edits - Use case: fix mistakes without discarding all pending changes **Removed:** - Delete transaction keybinding (`d`) from single transaction table - This was already a hidden binding and has been removed **Updated:** - Added note that edits are queued (not immediate) after single edits intro - Updated "Review Before Commit" to mention using `u` to remove edits - Updated Summary table: - Added `++h++` to detail view row (was missing) - Added `u` for Undo most recent pending edit - Added escape action in review screen **Why:** - Undo is a key part of the editing workflow - Users need to understand they can fix mistakes without starting over - Complements the Review & Commit workflow 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0befbad commit 050c155

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

docs/guide/editing.md

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ In detail view, edit individual transactions:
1111
| ++m++ | Edit merchant name |
1212
| ++c++ | Edit category |
1313
| ++h++ | Hide/unhide from reports |
14-
| ++d++ | Delete transaction |
1514

1615
The cursor stays in place after editing, so you can quickly edit multiple transactions by pressing the same key repeatedly.
1716

17+
All edits are queued (not committed immediately) so you can review them before saving.
18+
1819
<!-- TODO: Add screenshot of editing a single transaction -->
1920

2021
## Multi-Select in Detail View
@@ -126,18 +127,39 @@ This works in **all aggregate views**:
126127
3. ++space++ select expensive merchants
127128
4. Press ++c++ to recategorize to "Dining Out" (maybe they weren't groceries)
128129

130+
## Undo Pending Edits
131+
132+
Made a mistake while queueing edits? Press `u` to undo the most recent pending edit.
133+
134+
**How undo works:**
135+
- Removes the last edit from your pending changes queue
136+
- Press `u` multiple times to undo edits in reverse order (last in, first out)
137+
- Preserves your cursor position and scroll state
138+
- Shows notification: "Undone {Field} edit (N remaining)"
139+
- Only affects pending edits - committed changes cannot be undone
140+
141+
**Example workflow:**
142+
1. Edit merchant on transaction 1 → queued
143+
2. Edit merchant on transaction 2 → queued
144+
3. Edit category on transaction 3 → queued
145+
4. Press `u` → undoes category edit (most recent)
146+
5. Press `u` → undoes merchant edit on transaction 2
147+
6. Press `u` → undoes merchant edit on transaction 1
148+
149+
This is useful when you've queued multiple edits and realize one was a mistake, without having to discard all your pending changes.
150+
129151
## Review Before Commit
130152

131153
All edits are queued locally until you commit:
132154

133155
1. Press ++w++ to review all pending changes
134156
2. See table showing: Type | Transaction | Field | Old Value → New Value
135157
3. Press ++enter++ to commit
136-
4. Or press ++escape++ to cancel
158+
4. Or press ++escape++ to cancel and return without committing
137159

138160
<!-- TODO: Add screenshot of review changes screen -->
139161

140-
The `*` indicator shows which transactions/groups have pending edits before you commit.
162+
The `*` indicator shows which transactions/groups have pending edits before you commit. If you need to remove edits before reviewing, use `u` to undo them one by one.
141163

142164
## Tips
143165

@@ -168,10 +190,12 @@ The `*` indicator shows which transactions/groups have pending edits before you
168190
| Context | Key | Action |
169191
|---------|-----|--------|
170192
| Any view | ++space++ | Select current row |
171-
| Detail view | ++m++ / ++c++ | Edit selected transaction(s) |
193+
| Detail view | ++m++ / ++c++ / ++h++ | Edit selected transaction(s) |
172194
| Aggregate view | ++m++ / ++c++ | Edit transactions in current group |
173195
| Aggregate view (multi-select) | ++m++ / ++c++ | Edit transactions in ALL selected groups |
196+
| Any view | ++u++ | Undo most recent pending edit |
174197
| Any view | ++w++ | Review pending changes |
175198
| Review screen | ++enter++ | Commit all changes |
199+
| Review screen | ++escape++ | Cancel (keep edits queued) |
176200

177201
Multi-select works consistently across all views for maximum productivity.

0 commit comments

Comments
 (0)