NS8 slice: Make file, tree, and project search panels editing-ready #49
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: Files, directory browsing, gitignore-aware file finding, and project text search become production editing entry points that return cleanly to the editor.
AUTHORITY: Parent #43; KEYMAP.md
PanelsandSearch and navigation; req: repo/001-002, ui/001-002, session/002-004, testing/001-004.AGENT AUTHORITY:
PARENT: #43 via explicit issue link and parent checklist.
SCOPE: File finder/tree panel, directory-root handling, project text search panel, result preview/open, create-new-file path from folder context if needed for
mim missing-file, panel stack return, gitignore behavior. Reuse existing repo/panel code where possible.BOUNDARIES: Git mutation belongs elsewhere. Do not implement fuzzy ranking beyond what is needed for useful navigation. Do not introduce external search dependencies unless already present and optional.
ACCEPTANCE:
Space fopens files/tree/recent according to available project context.mim directorystarts in a usable file browser rooted at that directory.Space s psearches project text and opens results at the correct file/line.VERIFICATION:
zig build testzig build v1-smokeBLOCKERS: none.
Completed in commit
1d1ecf2(Add file and project search panels).What changed:
Space fnow opens a real file picker panel from the repo/directory file list.o/Enter opens the selected file into the editor buffer;q/Esc closes the active panel.Space s popens a project-search prompt and displays matching rows in a transient project-search panel.mim <directory>now seeds repo-backed file rows with readable file contents, so directory-start panels can open files rather than just preview names.Verification:
zig fmt src/main.zig src/leader.zig src/session.zig src/panel.zig src/tui.zig && zig build testzig buildzig build v1-smokezig build run -- --helpzig build run -- src/main.zigzig build run -- srcredgate lint /opt/repositories/mim/REQUIREMENTS.md && redgate health /opt/repositories/mim/REQUIREMENTS.mdNotes: