简体   繁体   English

在Emacs中递归查找?

[英]Recursive find in Emacs?

Is there a recursive find function for a find in emacs? emacs中是否有递归查找功能? I thought the 'nix "find" was implemented in eshell but perhaps not (I've been using it on OS X but it must have been calling FreeBSD's "find")... I know of rgrep, find-grep, grep-find, in emacs, but I don't actually need the grepping part. 我以为'nix“ find”是在eshell中实现的,但也许不是(我在OS X上一直在使用它,但是它一定一直在调用FreeBSD的“ find”)...我知道rgrep,find-grep,grep-在emacs中找到,但是我实际上不需要grepping部分。 Perhaps it's a feature in one of dired's functions (though I didn't find it)? 也许这是Dired功能之一的功能(尽管我没有找到它)? Using windows and I miss some 'nix utilities... thought emacs 23.2 might fill in for me. 使用Windows,我想念一些'nix实用程序...以为emacs 23.2可能会为我填写。

dired-find ? 发现了吗? It depends on the external command find though. 不过,这取决于外部命令的find There might be a lisp implementation of find somewhere, but you might be better off just getting the windows port of the 'nix utilities such as find . 在某个地方可能会有一个Lisp的find实现,但是最好只获取'nix实用程序的Windows端口,例如find Try cygwin . 尝试cygwin

The Projectile project works well for finding files in your project and instantly navigating to them. Projectile项目非常适合在项目中查找文件并立即导航到它们。

Here are the commands: https://github.com/bbatsov/projectile#interactive-commands 以下是命令: https : //github.com/bbatsov/projectile#interactive-commands

In particular the one I use is Cc p 4 f which recursively searches your project to find a filename that matches the provided pattern. 特别是我使用的是Cc p 4 f ,它递归搜索您的项目以找到与提供的模式匹配的文件名。 Works well, and easy install via Mx list-packages . 效果很好,并且可以通过Mx list-packages轻松安装。

我使用ifind.el

我一直在寻找该功能很长时间,现在我对projectile感到非常满意(请参阅我的答案: 如何在目录中递归查找文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM