NS4 slice: Add project text search with jump-to-result #24
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: Implement project text search through the shared panel model with file/line/preview results.
AUTHORITY: Parent #4
NS4: Repository workbench; PRODUCT.md; REQUIREMENTS.md (PRODUCT.md; req: repo/001-002; req: ui/002).AGENT AUTHORITY:
PARENT: #4 via explicit issue link and parent checklist.
SCOPE: The smallest source/docs/tests needed to make this behavior real and verified.
BOUNDARIES: No external search service.
ACCEPTANCE: Fixture tests search known text, filter results, select a match, and jump to the correct buffer location.
VERIFICATION: Run the cheapest command that proves acceptance. Include regular tests for the intended payoff and adversarial tests for realistic failure, boundary, or regression cases. If no implementation test command exists yet, create/record the canonical command in AGENTS.md as part of the slice.
BLOCKERS: none
GOAL: Implement this vertical slice to the ACCEPTANCE above, keep the repo clean, cite relevant
req:anchors in code/tests where applicable, and close only after verification passes.Implemented in commit
fc3b6a7d08(Add project text search panel).Verification:
Regular tests: repo search returns file/line/column/preview rows, include-ignored search is explicit, search rows resolve back to file + byte offset, TUI search panel lists matches, filters results, and opens the selected match at its offset.
Adversarial tests: invalid queries and malformed rows are rejected, missing files fail clearly, and failed search/open-selected operations do not corrupt the current buffer.
Boundary: project text search through the existing repo index and list panel only. No external search service, git status/diff, build/job panel, terminal panel, or OS directory walking added.