NS8 slice: Launch a real editor for files, folders, and new paths #44
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:
mim,mim <file>,mim <missing-file>, andmim <directory>launch the real terminal editor surface instead of help text, one-shot previews, or a line-mode placeholder.AUTHORITY: Parent #43
NS8: Prod-ready modal editor implementation; PRODUCT.md; KEYMAP.md; req: session/001-003, ui/001-002, repo/001, input/001, testing/001-004.AGENT AUTHORITY:
PARENT: #43 via explicit issue link and parent checklist.
SCOPE: CLI dispatch in
src/main.zig, session/TUI entrypoints, buffer/file lifecycle, directory/file picker startup, smoke/replay tests, help text. Preserve--help,--version,context,profile, andmimctlcommand behavior.BOUNDARIES: Do not implement the whole KEYMAP grammar here. Do not add runtime config files, plugin hooks, external installers, or a native app. Do not silently overwrite missing/new files before save.
ACCEPTANCE:
mimopens the current directory in an editor/file-browser surface, not only usage text.mim existing-fileopens an editable buffer for that file.mim missing-fileopens a new unsaved buffer whose first save creates the file only after an explicit save command.mim directoryopens a navigable file-browser/editor surface rooted at that directory.--helpkeep their documented behavior.VERIFICATION:
zig build testzig build v1-smokezig build run -- --helpmim, existing file, missing file, directory, dirty quit, and EOF/non-interactive exit.redgate lint /opt/repositories/mim/REQUIREMENTS.md && redgate health /opt/repositories/mim/REQUIREMENTS.mdif requirements/docs are changed.BLOCKERS: none.
Completed in commit
047bae9(Launch local editor for paths).What changed:
mimandmim <path>now dispatch to a local editor launch path instead of help/unknown-arg behavior.Space spath, and blocks dirty quit by clearing the quit request and showing a status message.Verification:
zig fmt src/main.zig src/tui.zig && zig build testzig buildzig build v1-smokezig build run -- --helpzig build run -- /tmp/mim-ns8-existing.txtzig build run -- /tmp/mim-ns8-new-file.txtzig build run -- srcredgate lint /opt/repositories/mim/REQUIREMENTS.md && redgate health /opt/repositories/mim/REQUIREMENTS.mdNotes: