Live data from Hacker News

Fuzzy Finding with Emacs Instead of Fzf

masteringemacs.org

1–10 of 17 posts

Re: Fuzzy Finding with Emacs Instead of Fzf

#2
Is it just me or is Mickey Petersen on some crazy roll right now? It seems like every other day he's posting another blindingly clear and useful write up of some nook and cranny of Emacs that you'd either never considered the possibility of or at best only got round to daydreaming you'd one day try to figure out or implement?

> 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

Re: Fuzzy Finding with Emacs Instead of Fzf

#3
post #2

Is it just me or is Mickey Petersen on some crazy roll right now? It seems like every other day he's posting another blindingly clear and useful write up of some nook and cranny of Emacs that you'd either never considered the possibility of or at best only got round to daydreaming you'd one day try to figure out or implement? > So that got me thinking. There’s no reason why you can’t use Emacs to do this instead of f…

I look at his posts and dream to be that proficient Emacs user one day.

I'd imagine if he records a video of doing his daily work in Emacs, it probably feels like the Matrix.

Re: Fuzzy Finding with Emacs Instead of Fzf

#6
post #4

One slight difference: fzf is cross platform, whereas I believe his solution is not.

Should be as cross-platform as Emacs and Bash are: very cross-platform. And the Bash wrapper (ezf.sh for ezf.el) could probably be rewritten in say Powershell.

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.

Re: Fuzzy Finding with Emacs Instead of Fzf

#7
post #2

Is it just me or is Mickey Petersen on some crazy roll right now? It seems like every other day he's posting another blindingly clear and useful write up of some nook and cranny of Emacs that you'd either never considered the possibility of or at best only got round to daydreaming you'd one day try to figure out or implement? > So that got me thinking. There’s no reason why you can’t use Emacs to do this instead of f…

He's also a reasonably active participant in r/emacs which is great. I'm already pretty proficient in Emacs, and Emacs already comes with pretty solid documentation, but I bought his book "Mastering Emacs" anyway because I'm a fan of his writing and blog posts.

Re: Fuzzy Finding with Emacs Instead of Fzf

#8
post #6
post #4

One slight difference: fzf is cross platform, whereas I believe his solution is not.

Should be as cross-platform as Emacs and Bash are: very cross-platform. And the Bash wrapper (ezf.sh for ezf.el) could probably be rewritten in say Powershell. 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.

[deleted]

Re: Fuzzy Finding with Emacs Instead of Fzf

#10
While we're on the topic of finding stuff in Emacs, check out the `consult-ripgrep` [1] command from the Consult package by Daniel Mendler. Consult coupled with Orderless [2] package is a super power. You can even export the results (using Embark [3]) into a wgrep buffer, make edits on just the search results, and have them applied across the code base!

[1]: https://github.com/minad/consult#grep-and-find

[2]: https://github.com/oantolin/orderless

[3]: https://github.com/oantolin/embark

Post reply on HN