Repository navigation
Conversation
bolinfest
added a commit
that referenced
this pull request
Jun 27, 2025
--- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/openai/codex/pull/1400). * #1401 * __->__ #1400
bolinfest
force-pushed
the
pr1401
branch
4 times, most recently
from
June 27, 2025 23:02
6d4b3ef to
54af601
Compare
bolinfest
force-pushed
the
pr1401
branch
3 times, most recently
from
June 28, 2025 01:27
bd92cc3 to
f5fc218
Compare
Collaborator
Author
|
Currently, this feels good for small repos, but is jarring for large repos because the user cannot type while |
bolinfest
force-pushed
the
pr1401
branch
3 times, most recently
from
June 28, 2025 02:53
d8c08fe to
a5d84ca
Compare
bolinfest
force-pushed
the
pr1401
branch
6 times, most recently
from
June 28, 2025 16:33
dd425f4 to
1c1fe12
Compare
bolinfest
force-pushed
the
pr1401
branch
2 times, most recently
from
June 28, 2025 20:24
e93781c to
de04095
Compare
Contributor
SummaryAdds ReviewGreat UX improvement and the code plugs into existing architecture cleanly. A few small thoughts:
Overall, solid feature—just minor polish opportunities. |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Introduces support for
@to trigger a fuzzy-filename search in the composer. Under the hood, this leverages https://crates.io/crates/nucleo-matcher to do the fuzzy matching and https://crates.io/crates/ignore to build up the list of file candidates (so that it respects.gitignore).For simplicity (at least for now), we do not do any caching between searches like VS Code does for its file search:
https://github.com/microsoft/vscode/blob/1d89ed699b2e924d418c856318a3e12bca67ff3a/src/vs/workbench/services/search/node/rawSearchService.ts#L212-L218
Because we do not do any caching, I saw queries take up to three seconds on large repositories with hundreds of thousands of files. To that end, we do not perform searches synchronously on each keystroke, but instead dispatch an event to do the search on a background thread that asynchronously reports back to the UI when the results are available. This is largely handled by the
FileSearchManagerintroduced in this PR, which also has logic for debouncing requests so there is at most one search in flight at a time.While we could potentially polish and tune this feature further, it may already be overengineered for how it will be used, in practice, so we can improve things going forward if it turns out that this is not "good enough" in the wild.
Note this feature does not work like
@in the TypeScript CLI, which was more like directory-based tab completion. In the Rust CLI,@triggers a full-repo fuzzy-filename search.Fixes #1261.