NS8 slice: Ship core editing, undo, redo, save, and quit safety #46
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: A user can perform ordinary code edits in the real editor loop: move, insert, append/open lines, delete/change/replace/yank/paste text, undo/redo, save, and quit safely.
AUTHORITY: Parent #43; KEYMAP.md
Core Normal bindingsandEditing operations; req: coding/001, input/001-007, testing/001-004.AGENT AUTHORITY:
PARENT: #43 via explicit issue link and parent checklist.
SCOPE: Buffer mutation model, cursor/movement commands, UTF-8/cell-width preservation, undo/redo log, clipboard/yank buffer if local, save/dirty state, quit confirmation, replay tests. Likely files:
src/tui.zig,src/session.zig,src/protocol.zig,src/input.zig.BOUNDARIES: Keep operations local and deterministic. Do not add system clipboard integration unless already available as a platform primitive. Do not add macro recording, multi-cursor, or ex commands.
ACCEPTANCE:
i,a,o, and open-above path enter Insert at the correct location.dd,cc, delete/change with a simple motion/object,r,y, andpwork against regular and boundary cases.VERIFICATION:
zig build testzig build v1-smokeBLOCKERS: none.
Completed in commit
a08ee02(Add core editing commands).What changed:
a,o,O,dd,cc,dh/dl,ch/cl,yy,p,r,u,U,0,$,w/b/e, arrows, and mutating backspace.Verification:
zig fmt src/session.zig src/protocol.zig src/tui.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: