summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-18 08:50:02 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-18 08:50:02 +0200
commitc9bf881ba455a321928d8c49deafca13dc662ab6 (patch)
tree24ec4dddc8f271b9460ebe37231c13109a5758d8 /docs
parent702d9327e5f979deff392dceeced2dd16d1203e1 (diff)
downloadbokf-e0ffdc1503e62c3e3d6c849c4bdabbd8a0c50122.tar.gz
bokf-e0ffdc1503e62c3e3d6c849c4bdabbd8a0c50122.zip
bokftui: Ctrl+R reloads the binary and restores session, year and viewv0.1.8
Diffstat (limited to 'docs')
-rw-r--r--docs/PROTOCOL.md6
-rw-r--r--docs/TUI-GUIDELINES.md1
2 files changed, 7 insertions, 0 deletions
diff --git a/docs/PROTOCOL.md b/docs/PROTOCOL.md
index cc2cb57..009b14e 100644
--- a/docs/PROTOCOL.md
+++ b/docs/PROTOCOL.md
@@ -429,6 +429,12 @@ Mallar menu; a new fiscal year from the year picker; and maps to the editor
in Ingående balans and to file upload in Underlag. F5 is the universal
refresh. Hints show the keys per screen.
+**Ctrl+R reloads the client in place** (for hot-reloading after a rebuild):
+it re-execs the installed binary with `--org`, `--fy` and `--screen NAME`
+and carries the open session in `BOKFD_SESSION`, so the session, fiscal
+year and current top-level view come back without a new login. The same
+flags can be passed manually (`--session ID` is also accepted).
+
Still missing from the UI (API already supports): SIE export/import,
period locks, member/token administration. The TUI holds no local state
beyond the session and calls nothing but public commands.
diff --git a/docs/TUI-GUIDELINES.md b/docs/TUI-GUIDELINES.md
index 180c72b..322d073 100644
--- a/docs/TUI-GUIDELINES.md
+++ b/docs/TUI-GUIDELINES.md
@@ -19,6 +19,7 @@ during the session.
| `F5` | Refresh the view |
| `Esc` / `q` | Back one level. At the dashboard it does nothing — Esc never exits the app |
| `Ctrl+C` | Quit the application (closes the session). The only key that exits |
+| `Ctrl+R` | Reload the client in place: re-execs the installed binary and restores session, org, fiscal year and the current view (for after a rebuild) |
| `1`–`9` | In lists: jump to that row. In menus: activate that item |
| `g` | Live goto: "Gå till rad/nummer:" updates the selection as you type digits (backspace steps back); Enter closes the prompt without opening anything |
| arrows, PgUp/PgDn, Home/End | Move/scroll; selection always stays visible |