Emacs. Helm package. How find files in folder (not a git folder) and all subfolders?

柔情痞子 提交于 2019-12-25 16:55:08

问题


Windows 10 (64 bit), Emacs 25.1, Helm package.

To find file (e.g. myfile.txt) in any folder (not git, not project file) I use command helm-find-file. It's work. OK.

But now I need to find myfile.txt in current folder AND all subfolders. How I can do this by helm package?


回答1:


There's two ways that should work for you. In both cases, first use helm-find-files.

1) Once you're in the directory that you want to start your search from, hit C-u C-x C-d (this runs helm-browse-project recursively). Now you can type the filename that you're looking for and it should search in all subdirectories.

2) Alternatively, again from helm-find-files, hit C-c / (this effectively runs find (not sure how well this will work in Windows)).




回答2:


Using helm-find-files followed by the C-c / command effectively runs helm-find which lets you type in a filename to search for from the current directory. You can also just call helm-find directly or helm-find-1 if calling from elisp code.



来源:https://stackoverflow.com/questions/44072813/emacs-helm-package-how-find-files-in-folder-not-a-git-folder-and-all-subfold

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!