Effacer les filtres
Effacer les filtres

Find Files: exclude directories

8 vues (au cours des 30 derniers jours)
Lane
Lane le 20 Nov 2020
Commenté : dpb le 20 Nov 2020
I use "Find Files" a lot to find .m files with a particular string, but 99%+ of the time I want to search only the files I've created myself. The search takes 10x as long because my only option other than guessing which directory to search seems to be to choose "Entire Matlab path", which means I search through every subdirectory in the Mathworks install. Is there a way to exclude certain directories, or to explicitly choose "Don't search Mathworks code"? That would really speed things up for me.
  6 commentaires
Jon
Jon le 20 Nov 2020
I also frequently find it useful to use the "Find Files" button, and echo the OP's desire to further filter the search path to get it to be more responsive. If no one has an answer for this one, it would be a good one for the developers to please put on a wish list
dpb
dpb le 20 Nov 2020
Oh. Indeed I did misunderstand. See, told you never used the builtin! :)
For that I do essentially the same that I outlined above however, except dispatch grep through the OS.
Altho I admit I do this on a much less frequent interval than looking for files themselves. Then again, I'm not building large applications in MATLAB, either; but I did do such searches much more frequently with Fortran source code while still actively consulting so I grok the need/idea

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur File Operations dans Help Center et File Exchange

Tags

Produits


Version

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by