Repository navigation
feat(search): bundle FFF for Find in Files - #438
Merged
Merged
Conversation
Collaborator
Author
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
This was referenced Nov 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human-written TL;DR
Replaces the external need for ripgrep by bundling fff 🤘
AI-written summary
Find in Files used to launch
rgfor every query. A fresh Red installation therefore needed ripgrep onPATHand permission for the search plugin to start it. This change bundles FFF in Red soSpace gworks with an empty process allowlist.FFF builds a background index for repeated searches. Red checks current ignore rules on every query and only skips a file when the index can rule out a match and the file still has the same identity and change timestamp. It scans the remaining files with ripgrep’s Rust matching libraries, preserving smart case, regex and literal search, and byte offsets for navigation.
The picker shows the first matching line as soon as it arrives, cancels superseded queries, and returns up to 500 matching lines. Host API
0.22.0exposes the search and cancellation calls to plugins. CI runs the search fixtures on its platform matrix, and release archives include FFF’s license.How to Test
café Needle. Start Red there with the default config and norgonPATH. PressSpace g, typeneedle, and open the result. The cursor should land on theNaftercafé.[in regex mode. The picker should show a regex error. Replace it withneedleand confirm the match returns without closing the picker.cargo build --release --locked -p red-fff-parity, then runpython3 tools/fff-parity/compare.py target/release/red-fff-parity. Add--against-rgto compare the same cases with an installed ripgrep.Local validation passed 75 parity cases each on macOS and Linux and 50 on Windows GNU. The macOS release binary also exercised hidden files, invalid regex recovery, Unicode navigation, and result export with no
rgonPATH. The parity report records the platform coverage and warm-query timings.