Amr Gharbeia
9350cb855e
Deploy (Gitea) / deploy (push) Failing after 2s
v0.3.3: left/right cursor movement in input
Adds :cursor-pos to TUI state. New functions:
- input-insert-char(ch): insert at cursor position, advance cursor
- input-delete-char(): delete char before cursor (standard backspace)
on-key handlers:
- Left arrow: decrement cursor-pos (clamped >= 0)
- Right arrow: increment cursor-pos (clamped <= buffer-len)
- Character input: input-insert-char at cursor position
- Backspace: input-delete-char at cursor position
- Enter: reset cursor-pos to 0
view-input: cursor at visual position matching cursor-pos
Test: (init-state) → (input-insert-char #\h) → (input-insert-char #\i)
→ (setf cursor-pos 1) → (input-insert-char #\X) → 'hXi' at pos 2
2026-05-06 17:46:49 -04:00
..
2026-05-06 15:50:20 -04:00
2026-05-05 12:19:25 -04:00
2026-05-05 18:24:08 -04:00
2026-05-06 16:38:59 -04:00
2026-05-05 12:19:25 -04:00
2026-05-06 16:38:59 -04:00
2026-05-05 12:19:25 -04:00
2026-05-05 14:15:46 -04:00
2026-05-06 16:38:59 -04:00
2026-05-06 16:46:49 -04:00
2026-05-06 15:50:20 -04:00
2026-05-05 20:06:21 -04:00
2026-05-06 17:46:49 -04:00
2026-05-06 17:46:49 -04:00
2026-05-06 17:46:49 -04:00
2026-05-05 12:36:42 -04:00
2026-05-05 20:48:58 -04:00
2026-05-05 16:25:28 -04:00
2026-05-05 20:06:21 -04:00
2026-05-05 11:51:17 -04:00
2026-05-06 16:46:49 -04:00
2026-05-05 12:08:12 -04:00
2026-05-05 12:08:12 -04:00
2026-05-05 12:08:12 -04:00
2026-05-05 12:08:12 -04:00
2026-05-02 22:25:24 -04:00
2026-05-06 16:46:49 -04:00
2026-05-05 20:48:58 -04:00
2026-05-05 14:26:27 -04:00
2026-05-05 20:06:21 -04:00
2026-05-05 20:48:58 -04:00
2026-05-03 12:32:28 -04:00
2026-05-06 11:40:08 -04:00
2026-05-04 18:34:33 -04:00
2026-05-05 18:24:08 -04:00
2026-05-05 12:36:42 -04:00
2026-05-06 08:26:57 -04:00
2026-05-06 08:26:57 -04:00
2026-05-04 09:58:59 -04:00
2026-05-03 14:49:13 -04:00