claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Better file search, fuzzy search

Open Nikola-Milovic opened this issue 6 months ago • 14 comments

Hey!

I've noticed that the file search is very iffy, for example if I have a project called web and want to access a file deeply nested in this project, for example AuthenticationPage.tsx, I'd expect to get a result for @web/AuthenicationPage.tsx but no, I have to go one by one the file structure until I approach depth that is close to the file. Which can get quite annoying considering the depth can be apps/web/src/components/auth/...

Nikola-Milovic avatar Jun 11 '25 07:06 Nikola-Milovic

This issue did not exist in previous versions of Claude Code, but it has occurred in the latest version.

(I'm not sure exactly which version started having this issue, but version 1.0.17 did not have this problem.)

h16rkim avatar Jun 12 '25 02:06 h16rkim

I hope this issue gets resolved.

yakpoong avatar Jun 12 '25 02:06 yakpoong

I am not able to find anything with filename with version 1.0.22 of Claude Code. Completely broken.

iamkeyur avatar Jun 13 '25 13:06 iamkeyur

The file search is very poor.

I have a bunch of files with Task in the name, and I want to find src/components/editor/prosemirror/node-views/Task.vue and as soon as I write editor/ the thing stops working. It is impossible to find that file fuzzy searching with /, and if you try just letters, like editTask it doesn't work, if you try node-views to try to see the files in the folder, it doesn't show all, just a few. It is low hanging fruit to really improve the experience.

joakin avatar Jun 13 '25 16:06 joakin

This is one of my biggest UX gripes with Claude Code currently and leading me to use other options

nickrttn avatar Jul 02 '25 08:07 nickrttn

IMO you should copy the file search from vs code

jodinathan avatar Jul 30 '25 11:07 jodinathan

I love Claude Code but every time I am trying to attach a file, it's just impossible for it to find the correct file whatsoever.

zkwokleung avatar Aug 06 '25 15:08 zkwokleung

Image Image

at least any tips on using the search? I have a bunch of index.ts files, search only works if I write the exact filename. literally only reason I still didn't signed up the Max plan

*edit: just tried https://docs.claude.com/en/docs/claude-code/troubleshooting#search-and-discovery-issues, but no luck

guivieiras avatar Sep 18 '25 18:09 guivieiras

It would be great if this was powered by rg and you could pass a config environment variable to override the default.

aud avatar Sep 19 '25 14:09 aud

😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭 please

iansummerlin avatar Oct 15 '25 05:10 iansummerlin

Please address this... :(

vishnukool avatar Oct 19 '25 20:10 vishnukool

This is especially annoying when you are working with e.g. Java or other language that uses deeply nested directory structure to reflect long package names.

marcinchwedczuk-asana avatar Oct 24 '25 09:10 marcinchwedczuk-asana