emacs在项目中找到一个大项目的文件 [英] emacs find file in project on a big project

查看:126
本文介绍了emacs在项目中找到一个大项目的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在vim中,有一个令人惊奇的插件叫做command-t,它允许你对项目中的所有文件进行模糊搜索。我们有一个相当大的rails应用程序与大量的文件,它能够处理它几乎没有任何减速。



尝试了几件事(如ffip ,textmate.el的命令和rinari的rinari-in-project)。 UI是伟大的(I< 3 flex),但是他们所有的问题都在一个大型项目中,性能不佳,无法使用。



目前我正在更多地使用rinaris导航命令和ido-find-file。在他们两个之间,它是一个可用的设置,但是在项目中有一个疯狂的快速模糊查找是很好的。



有没有人知道一个更性能的脚本,我试过了什么?

解决方案

一个github代表我的配合在这里: https://github.com/lewang/anything-project-files



我添加了更多的任何来源,所以任何东西 - 项目查找可以替代Cx b。所以这个想法是当你点击Cx b你正在完成现有的缓冲区,最近的文件通过recentf(个人我使用session.el来代替它,但它是一个小的差异),当前目录中的文件,当前的项目。我发现它很方便。



我已经使用了一段时间,但是没有很好的测试,所以请报告你发现的任何错误。


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.

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.

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?

解决方案

A github rep for my concoction is here: https://github.com/lewang/anything-project-files

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆