Repository navigation
Fuzzy-search nested project folders in Add Project #32477
FabioPlunser
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Problem
Most people keep their repositories under one or two base folders (
~/projects,~/work/<org>/<repo>,~/src, ghq trees). Add Project's local folder browser only lists one directory level at a time. To add a project three levels down you have to type or tab through the full path, and you have to remember where it lives.Proposal
When you type a bare name (not a path) in Add Project's folder browser, fuzzy-match folder names across a set of base folders and list the nested matches.
~/projects; ~/work). Empty falls back to the folder being browsed, so nothing changes for anyone who doesn't set it.hlwfindsteam/hello-world. Results show the path relative to the browsed folder.node_modules,vendorand symlinks. It stops after 20,000 folders per root, caches each scan for 30 seconds, and returns the best 100 matches. No persistent index or file watcher.~/,/,./,C:\) browses exactly as it does today.filesystem.browseRPC, it works for remote and tunnel connections too.hlwin ~/projects…").Questions for maintainers
I have a working implementation with server tests and am happy to adjust the scope.
Implementation and related work
Working implementation and captured before/after evidence: #32479. Companion new-project location setting: #32480.
Related PR #26376 improves substring and fuzzy matching within the current directory, but explicitly does not search subfolders. This proposal adds recursive search across multiple configured base folders. PR #18905 and discussion #14973 address the creation destination only.
Matching across file controls
PR #32479 now also applies fuzzy name matching to the shared folder pickers, direct directory browsing, the Files tree, and mobile ZIP filters. The Files tree preserves native fuzzy search results instead of removing them through substring-only filtering. Existing file, image, and mention pickers retain the native fuzzy index. Search scope and content-search options stay unchanged.
The PR includes regression tests and before/after captures showing
rdmfindingREADME.md, in addition to recursive project-folder search across several base folders.All reactions