Skip to content

Conversation

christianselig
Copy link

@christianselig christianselig commented Oct 15, 2025

Addresses #3876 and #5219. Neither have a ton of conversation (the former being about a month old) but it seems like a very uncontroversial change.

Also added a test to show this behavior which will show it failing before. Test succeeeds. README was also updated to reflect this minor change. All cargo checks passed.

What

Right now file search is set to be "smart" which means if you have any capitalizations anywhere else in your file search prompt you have to get perfect capitalization in your @ file search shortcut otherwise nothing is found.

Why

Getting capitalization right is irrelevant to file search and is contrary to how most other CLI and modern UX patterns work (Spotlight search on macOS). Currently if you type a prompt like:

Give an overview of this project, focusing on @Contenview.swi

That will not work as you started your search with a capitalization, so unless you perfectly capitalize "ContentView.s" it will not autocomplete. Also I not realize that the initial capitalization is what broke the search until I made this PR (which speaks to the behavior being not very discoverable).

I don't think starting the search with a capital for whatever reason should make you have to capitalize everything else in the rest of the search perfectly. Again see Spotlight on Mac, or any web browser (if I type Chatg it will still autocomplete chatgpt.com)

How

Changes Nucleo's case matching: https://docs.rs/nucleo-matcher/latest/nucleo_matcher/pattern/enum.CaseMatching.html

Copy link

github-actions bot commented Oct 15, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@christianselig
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant