Expand description
Multi-row split editor widget for the transaction create and edit forms.
§Key scheme (while Splits field is focused)
| Key | Effect |
|---|---|
| Tab | Next cell (col→next row’s first col); at the last cell of |
| the last row it YIELDS to the outer form (→ Date) | |
| BackTab | Previous cell; at (row 0, col 0) it YIELDS to the outer |
| form (→ Note) | |
| Up | Prev Select option (col is Select) / prev row |
| Down | Next Select option (col is Select) / next row |
| Enter | Submit the transaction (from anywhere in the form) |
| Ctrl+N / + | Add a new row below (inherits the fetched option lists) |
| - / Ctrl+D | Remove the focused row (minimum 1 kept) |
| Ctrl+T | Open the focused split’s tag list (again: back to splits) |
In the tag list Tab/BackTab walk the cells (name, value, description, side), Ctrl+N adds a tag, Ctrl+D removes one, Up/Down pick the side, Ctrl+O fills the name or value from the suggestions and Esc goes back to the splits.
The outer form cycles Date→Note→Splits→Date; the boundary yields above let the user leave the Splits editor by Tab/BackTab without submitting.
Structs§
- Split
Row - One from→to split row with four account/commodity selects and two amount editors.
- Splits
Widget - Multi-row split editor.
Enums§
- Focused
SubWidget - Mutable reference to the focused sub-widget for intent routing in
event.rs.
Constants§
Functions§
- columns
- The visible cells of a split row, in descriptor order.
keyandhiddenexist only for edit round trips and are not shown on create. - row_
fields - The widget’s columns: create and edit share one split row definition (pinned by a test), so either descriptor names them.
- rows_of
- The row fields of a form’s
splitsfield. - tag_
fields - The cells of a split tag row; create and edit share them like the split row.