Hacker News new | ask | show | jobs
by laichzeit0 4342 days ago
I like that he mentioned CtrlP. It's the single plugin that prevents me from switching to Emacs.

There is currently nothing in Emacs (last I played with this was 3 months ago) that is 100% equivalent to CtrlP. There are some close approximations but they're not as good the real deal. I can understand how Emacs guys won't even notice this because they've not worked with something that's better than the best they have, but for Vim guys it sucks.

5 comments

I used Vim before switching to Emacs, and also used CtrlP. I've also had the pain of not being able to find a good replacement for CtrlP until I discovered Helm and more specific Helm-ls-git https://github.com/emacs-helm/helm-ls-git . Now I have the opposite problem that Vim doesn't have anything as good as the collection of Helm plugins that I use.
Could you elaborate on the features you are missing from ido-mode and helm?
Because something much better than CtrlP exists: http://tuhdo.github.io/helm-intro.html

Demo: I can search my desired file in linux kernel source with more than 40k files in an instant: http://tuhdo.github.io/helm-intro.html#sec-28

If you want to find the equivalent, use ido + flx + vertical-ido.

Agree. I'm using projectile[1] for now but that somehow messes things up with caching files so that I actually cannot search my project files. I assume that might be a fault on my side though.

Have you tried projectile? From reading the Readme this was exactly what I was looking for as a Ctrl-P replacement.

[1] https://github.com/bbatsov/projectile

I use projectile with caching turned off with flx-ido for sorting. I heavily favor (projectile-find-buffer) once I get going since loading the whole tree is pretty slow on a large project. I'm way more happy with this setup than I was with CtrlP.
I've had some weird things happen too when searching for files in a project using projectile, I fix it by triggering a refresh of the cache by prefixing with a C-u the C-c p f command.
I've actually started preferring the unite plugin over CtrlP even.