7 ms·
Feature request: make CMD+P support searching files in the repository. Currently, it shows "No matching results". To implement this quickly client-side, one ea
by Jarred 6y ago
Feature request: make CMD+P support searching files in the repository. Currently, it shows "No matching results".
To implement this quickly client-side, one easy way would be to use jsdelivr's data api. For example, to get the directory tree for Ruby on Rails:
https://data.jsdelivr.com/v1/package/gh/rails/rails@06e8d5c29fa9cce83cd99cefed2d135094584acd/flat https://data.jsdelivr.com/v1/package/gh/rails/rails@06e8d5c2...
- madeofpalk 6y agoMaybe the shortcut is different in the browser on macOS, but on Windows CTRL + P just works for searching the project, like it does in VSCode proper on desktop. I quickly did ctrl + shift + f to search as well and it worked well
- bewareandaware 6y agoIt looks like it works for previously opened files. Perhaps the author didn't want to load the whole tree into the browser, or maybe its a limitation on webhosted vscode?
- thw0rted 6y agoI suspect that the author didn't want to eager-load all files because the API they're using is rate-limited -- 60 requests/hr when unauthenticated, or 5000/hr if you generate a unique OAuth token. Even that 5k could get burned through pretty quickly for a larger repo, assuming you have to make at least one request per file.