Custom @ file picker with fzf - superior fuzzy matching + symlink support
The article describes how to customize the default file picker in Claude AI to use fzf for superior fuzzy matching and include gitignored or symlinked folders.
Why it matters
This customization improves the developer experience in Claude by providing a more powerful and flexible file picker, which is an important part of the code editing workflow.
Key Points
- 1The default @ file matcher was disappointing, lacking features like fuzzy matching and symlink support
- 2Anthropic recently allowed customizing the file suggestion settings in Claude
- 3The custom script uses rg, fzf, and jq to provide a better file picker experience
- 4The script respects .gitignore but can also include additional paths that are gitignored
Details
The article explains how to set up a custom file suggestion script for the Claude AI code editor. The default file picker was limited, but Anthropic has provided a way to customize it. The custom script uses ripgrep (rg) to quickly list files, including those in symlinked folders, and then applies fuzzy matching with fzf. This provides a much better file picking experience than the default. The script also allows including additional paths that are gitignored, which is useful for things like markdown notes or reference materials. Overall, the custom setup leverages powerful CLI tools to enhance the file picker functionality in Claude.
No comments yet
Be the first to comment