Emacs的Command-T? [英] Command-T for Emacs?

查看:140
本文介绍了Emacs的Command-T?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很久以前是Emacs的用户,但是在两年前已经部分切换到MacVim,并且一直在使用它进行所有的编程工作(仍然使用Emacs做其他的工作)。我决定现在切换回Emacs,主要是因为很棒的 evil-mode 。我很高兴,但是我仍然没有找到像Vim一样好和简单的东西 Command-T 插件。



Emacs替代方案的主要问题是它们太复杂或较慢。



与Command-T最接近的是 helm / helm-cmd-t ,但它不会像这样工作。



假设你有两个路径:




  • app / controllers / admin / feedback_controller.rb

  • app / controllers / fee_controller.rb



Vim的Command-T,你可以写:

  app / controllers / fe 
/ pre>

它将匹配两个路径。



使用 helm-cmd- t ,如果我写 app / controllers / fee ,它将只匹配 fee_controller 。如果我想要匹配两者,我必须使用正则表达式,如 app / controllers /.*,这不 不好,但是需要更多的击键。



任何建议赞赏!

解决方案

简短 - 没有什么比Emacs的命令-T。最好的选择是gpicker或Peepcode的peepopen,但它们是外部应用程序,我发现它们在使用command-T这么长时间后会分散注意力。我现在坚持使用MacVim,只是因为命令T,但是可能会考虑执行像命令-T这样的行为。



谢谢所有的答案和评论!


I'm a long time Emacs user, but partially switched to MacVim 2 years ago, and have been using it for all my programming work (still using Emacs for other stuff). I decided to switch back to Emacs now, mainly because of the awesome evil-mode. I'm quite happy, but I still haven't found something as good and simple as the Vim Command-T plugin.

The main problem with the Emacs alternatives is that they are either too complicated and or slow.

The closest thing to Command-T is helm/helm-cmd-t, but it doesn't quite work like it.

Let's say you have two paths:

  • app/controllers/admin/feedback_controller.rb
  • app/controllers/fee_controller.rb

In Vim's Command-T, you can write:

app/controllers/fe

And it will match both paths.

With helm-cmd-t, if I write app/controllers/fee, it will only match fee_controller. If I want to match both, I have to use a regexp, as in app/controllers/.*, which is not that bad, but requires more keystrokes.

Any suggestions appreciated!

解决方案

Long story short - there's nothing quite like command-T for Emacs. Best options are gpicker or Peepcode's peepopen, but they are external applications, and I find them to be distracting after using command-T for so long. I'll stick to MacVim for now, only because of command-T, but might look into implementing something that behaves just like command-T as an exercise.

Thank you all for the answers and comments!

这篇关于Emacs的Command-T?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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