NS8 slice: Implement the modal input engine and command rails #45
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
OBJECTIVE: Make Normal, Insert, Select, Panel, and Prompt modes real session state with discoverable Space/m/g rails and mobile-safe paths for core actions.
AUTHORITY: Parent #43; KEYMAP.md sections
Modes,Leader keys and rails,Counts and repetition; req: input/001-007, session/004, testing/001-004.AGENT AUTHORITY:
PARENT: #43 via explicit issue link and parent checklist.
SCOPE: Input normalization, modal state machine, pending-key/prefix state, Space leader pause behavior, Insert pending-space rail, contextual help/rail rendering, replay fixtures. Likely files:
src/input.zig,src/leader.zig,src/session.zig,src/tui.zig, replay/tests.BOUNDARIES: Do not implement every operation behind every rail; unmapped rail entries may return clear
not implementeddiagnostics. Do not require Esc/Ctrl/Alt/function keys for core mode transitions.ACCEPTANCE:
Spacepause thennreturns to Normal;Spacepause thenSpaceinserts a literal space.mandgprefixes show valid next-key rails without executing hidden behavior.Space Spacerestores the last rail/panel context.VERIFICATION:
zig build testzig build v1-smokeBLOCKERS: none.
Completed in commit
1468675(Add modal input state and rails).What changed:
Spaceopens the rail,nreturns to Normal,Spaceinserts a literal space, and ordinary text commitsspace + text.m,g, and repeat rails with visible status/recovery, plusSpace Spacerestore of the last rail.Verification:
zig fmt src/tui.zig src/leader.zig src/main.zig src/mobile_acceptance.zig && zig build testzig buildzig build v1-smokezig build run -- --helpzig build run -- src/main.zigredgate lint /opt/repositories/mim/REQUIREMENTS.md && redgate health /opt/repositories/mim/REQUIREMENTS.mdNotes: