From 2ca284619125af0d5c12e9210ff1bfc8f9122739 Mon Sep 17 00:00:00 2001 From: Anders Betts Date: Wed, 23 Sep 2026 08:56:49 +0200 Subject: tui: one shared field editor, in-place form editing, value-only focus Forms edit fields in place in the value column instead of a bottom prompt, highlight only the focused value and scroll when taller than the screen; long text scrolls horizontally instead of wrapping. Fixes: typing after Backspace/Del no longer wipes the field, 'q' is text in row tables, the caret resets between cells, dialogs decode arrow keys, full buffers never take half a UTF-8 character, an invalid amount stays editable. Co-Authored-By: Claude Opus 5.5 --- docs/STATE.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'docs/STATE.md') diff --git a/docs/STATE.md b/docs/STATE.md index 7fccc31..fa0db74 100644 --- a/docs/STATE.md +++ b/docs/STATE.md @@ -14,6 +14,17 @@ unit tests and the docs consistency check. ## Resume here (2026-09-22) +- **TUI field editing (2026-09-23, branch `eff/tui-fields`, not merged)**: + one shared field editor in `clients/tui.c` for forms, row-table header + fields and prompts. Forms edit in place in the value column (no bottom + prompt), only the value is highlighted, long text scrolls horizontally + instead of wrapping, and tall forms scroll. Bug fixes: Backspace/Del then + typing no longer wipes the field; `q` is text in row tables; the caret + resets when moving between cells; dialogs decode arrow keys (no `[A` + leaking into the next view); a partial UTF-8 character is never inserted + into a full buffer; an invalid amount stays in the field. Typing on a + focused row-table header field now edits that field instead of jumping + to the first cell. Awaits the human's Ctrl+R test. - **Deklaration 2025/2026 (org 2, 2026-09-22)**: the imported year is closed by the source's `Stäng intäktskonton/kostnadskonton`, so the resultatrapport (and the INK2/SRU derived from it) showed 0. `report.income_statement` now -- cgit v1.3