Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on feddit.de

18 replies

sopuli.xyz

orderless achieves the same sort of thing in emacs, but I also use an fzf zsh alias to see my shell history all the time!

alias hf="history -100 | fzf"

8
sh.itjust.works

Fzf has some scripts packaged for most shells that'll replace ctrl-r reverse history search with this behavior

4

They also add C-t and M-c for fuzzy finding files and CDing to a subdirectory

3

Thank you for the reply! Just figured that out and its awesome! Love CTRL+T for file names and ALT+C for cding.

2
Azzk1krreply
feddit.nl

Fish shell has this built-in with Ctrl+R :)

3
d3Xt3rreply
lemmy.nz

That looks great ... if only there were an easy fish plugin version of it ;)

I'm currently using fzf.fish and it's been great - my only complaint is that I can't use it to jump to/insert a directory/file that's outside of the current directory, but it seems like your solution with boot+zsh overcomes that limitation?

2

Yeah, since broot is a full featured file navigator and operator, you can get anywhere once it's launched. I have alt+up bound to go up a directory, but there are other ways to get around as well.

Broot supports fish out of the box, and you can use its default fish launcher function to change your folder (alt+enter quits broot then performs a cd) or insert a path (the broot command pp quits broot then prints the path, like fzf).

I never learned fish scripting, but if anyone here has they may try to port my Zsh functions, especially to get path completion for partially typed paths. If you're doing that and have questions about the broot config side of the equation, I'm happy to try to help.

2

You reached the end

Find anything you need with fzf, the Linux fuzzy finder tool | Spyke