emacs 在一个大项目的项目中查找文件 [英] emacs find file in project on a big project
问题描述
在 vim 中,有一个叫做 command-t 的神奇插件,它可以让你模糊搜索项目中的所有文件.我们有一个相当大的 rails 应用程序,里面有大量的文件,它能够处理它几乎没有任何减速.
In vim, there is this amazing plugin called command-t, that lets you fuzzy-search through all the files in your project. We have a fairly large rails app with a ton of files, and it is able to handle it pretty much without any slowdown at all.
尝试了一些东西(例如 fip、textmate.el 的 command-t 和 rinari 的 rinari-find-in-project).用户界面很棒(我 <3 flex),但它们都存在的问题是在一个大型项目上,性能很差,以至于无法使用.
tried a few things (like ffip, textmate.el's command-t, and rinari's rinari-find-in-project). The UI is great (I <3 flex), but the problem they all have is on a large project, the performance is bad to the point of being unusable.
目前我更多地使用 rinaris 导航命令和 ido-find-file.在他们两个之间这是一个可用的设置,但在项目中有一个疯狂的快速模糊查找会很好.
Currently I am making more use of rinaris navigation commands and ido-find-file. Between the two of them it is a usable setup, but it would be nice to have a crazy fast fuzzy find in project.
有没有人知道比我尝试过的更高效的脚本?
Does anyone know of a more performant script then what I have tried?
推荐答案
我的混合物的 github 代表在这里:https://github.com/lewang/anything-project-files
A github rep for my concoction is here: https://github.com/lewang/anything-project-files
我添加了更多任何内容的来源,以便任何项目查找都可以直接替代C-x b".所以这个想法是当你点击Cx b"时,你正在针对现有缓冲区完成最近的文件,最近的文件通过最近的文件(我个人改用session.el"代替,但它是一个小差异),当前目录中的文件,文件当前的项目.我觉得它很方便.
I added a few more anything sources so that anything-project-find can be a drop-in replacement for "C-x b". So the idea is when you hit "C-x b" you are completing against existing buffers, recent files through recentf (personally I hack it to use "session.el" instead, but it's a small diff), files in current dir, files in current project. I find it pretty handy.
我已经使用了一段时间,但它没有经过很好的测试,所以请报告您发现的任何错误.
I've used this for a while, but it's not well tested, so please report any bugs you find.
这篇关于emacs 在一个大项目的项目中查找文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!