NS11 slice: Add document and half-page motions #77
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: Add SSH-client-aware Normal-mode navigation for document start/end and half-page movement (
gg,G, and Ctrl-u/Ctrl-d or keymap-consistent aliases) so iPhone SSH and attached-keyboard users can move through files without repeatedj/k.AUTHORITY: Parent #76 NS11; KEYMAP.md current grammar; REQUIREMENTS.md input rows; user request for
gg,G, and Ctrl-u/Ctrl-d-style motions.AGENT AUTHORITY:
PARENT: #76 by parent checklist fallback plus explicit parent reference in this body.
SCOPE: input normalization if needed; Normal-mode motion handling; session cursor movement; KEYMAP.md/requirements if behavior changes durable contract; terminal E2E.
BOUNDARIES: Do not redesign all motion grammar, add runtime keymap config, or remove existing mobile fallback motions. Do not require Ctrl-only paths without a documented fallback.
ACCEPTANCE:
ggmoves to document start;Gmoves to document end/last line boundary; half-page up/down exists via Ctrl-u/Ctrl-d when terminal input supports it and/or a documented mobile fallback alias; motions preserve useful cursor-column semantics where applicable; viewport follows the cursor after large moves; status/help docs expose the bindings.REGRESSION CLASS: long-file navigation gets trapped in repeated line motions; viewport stays stale after cursor jumps; Ctrl/Esc assumptions become hidden untested dependencies.
EVIDENCE ARTIFACTS: terminal E2E transcript/keystroke receipt showing
gg,G, and half-page movement on a multi-screen file.REQUIREMENT IMPACT: requires authority update or protection for input/navigation rows.
VERIFICATION:
zig build test;zig build terminal-e2e;redgate lint /opt/repositories/mim/REQUIREMENTS.md && redgate health /opt/repositories/mim/REQUIREMENTS.md.BLOCKERS: none.
Closing receipt for #77.
Implemented in local commit
c98c530(Add document and half-page motions):ggmoves to document start.Gmoves to the bottom/last line.g d/g uprovide documented mobile fallback aliases.Verification on the committed slice:
zig build✅zig build test✅zig build terminal-e2e✅ (newdocument-half-page-motionsscenario plus existing matrix)zig build run -- --help✅zig build --prefix /tmp/mim-install verify-install-code✅redgate list /opt/repositories/mim/REQUIREMENTS.md && redgate lint /opt/repositories/mim/REQUIREMENTS.md && redgate health /opt/repositories/mim/REQUIREMENTS.md✅Evidence anchors:
G,gg, Ctrl-d, andg ufallback save edits at distinct lines in a tall file