Fuzzy Finding with Emacs Instead of Fzf
masteringemacs.org
masteringemacs.org
With due respect to Mr. Petersen, and as an Emacs user myself, I really can't agree. When I fire up fzf I just type and generally without any thinking I get what I want. Emacs takes some configuration to get to that point; the built in flex completion is, for whatever reason, not as robust in my experience.
In fact, in my current config I've been using fzf (or really skim) for completion within Emacs, via fussy: https://github.com/jojojames/fussy
> So that got me thinking. There’s no reason why you can’t use Emacs to do this instead of fzf! Emacs has better fuzzy finding and it’s the text editor you’re already using, so why not use Emacs?
Love it.
Also, as he says in the footer, this is available on Github: https://github.com/mickeynp/ezf
I'd imagine if he records a video of doing his daily work in Emacs, it probably feels like the Matrix.
[1]: https://github.com/minad/consult#grep-and-find
Fzf is written in C, and there's a Rust implementation called skim (sk).
Each of these seem very cross-platform. But the advantage this solution has is that you stay within the Emacs ecosystem with Emacs syntax/keybinds/colors etc.
That would be fzy : https://github.com/jhawthorn/fzy
Emacs is cross platform.
fzf is cross platform.
Presumably the fzf packages for Emacs are cross platform, but I haven't checked. If any of them are, then I can have the same setup for Windows and Linux (I use Emacs on both).
With this solution, I'd need to have a different script in Windows and Linux (I don't use WSL - Emacs works quite well without it). So by cross platform, I meant "Copy config from one platform to another and just have it work".
This solution is just as portable as Emacs. Very, very portable.