Experimental modal text editor built for extensibility and flexibility

feat(runtime): :grep scans files on disk (project-wide search) #6

Open amartin.beer
Open opened by amartin.beer

Summary #

Extend :grep beyond open buffers to scan files on disk via os/dir or Rust FS bridges, matching Zed's project search in multi-buffers.

Current behavior #

grep-excerpts (command.janet) iterates only (get state/editor-state :buffers), aka loaded buffers.

Proposed approach #

  • Walk a directory with os/dir (recursive), filter by extension/binary, slurp candidates, and match with the same regex + ±2 context + merge logic.
  • Reuse the existing excerpt/multibuffer pipeline unchanged.

Scope / notes #

Perf: slurp + parse each file. We could start with an explicit directory arg; respecting .gitignore can come later.

Sign up or Sign in to add to the discussion.