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.