Live data from Hacker News

So you've installed `fzf` – now what?

andrew-quinn.me

21–30 of 292 posts

Re: So you've installed `fzf` – now what?

#23
We have an IoT command server and connecting to one of the devices (for maintenance, logs or whatever) involved two manual lookups in the output of two commands and then finding your match in both. I was sick of this one day and with some grep, sed, awk and finally fzf, you could just sort of type the device's name and press "enter" to connect.

People's reaction when I showed them was basically WHAT IS THIS MAGIC?!?

Re: So you've installed `fzf` – now what?

#24

Fantastic article. I was exactly in the situation the article describes, I installed it, then, didn't find a use case. But that's because Ubuntu doesn't come with completion enabled by default. You have to add in your bashrc: if [ -e /usr/share/doc/fzf/examples/key-bindings.bash ]; then source /usr/share/doc/fzf/examples/key-bindings.bash fi The fzf and ubuntu docs don't mention you have to. Couldn't find easily how…

The default install script asks if you want to install key bindings and adds that to your bashrc. How did you install fzf?

Re: So you've installed `fzf` – now what?

#25
I love fuzzy shell history. Game changer in terms of shell productivity.

I use atuin[0] instead of fzf as I find the experience a bit nicer and it has history backups built in (disclaimer, I am a maintainer)

Some of our users still prefer fzf because they are used to how it fuzzy finds, but we're running an experiment with skim[1] which allows us to embed the fuzzy engine without much overhead - hopefully giving them back that fzf-like experience

[0]: https://github.com/ellie/atuin [1]: https://github.com/lotabout/skim

Re: So you've installed `fzf` – now what?

#26
If anyone who uses i3 needs an fzf application launcher in their lives, adding the following two lines to your config will make $mod+d open it as a floating window in the middle (uses rxvt-unicode):

    bindsym $mod+d exec --no-startup-id urxvt -title "fzf-menu-random123" -e bash -c 'i3-dmenu-desktop --dmenu=fzf'
    for_window [title="fzf-menu-random123"] floating enable

Re: So you've installed `fzf` – now what?

#27
post #4

So, just like what fish shell gives out of the box :)

i love and daily-drive fish, but i don’t think fish does everything fzf does. did you stop reading the article at ctrl-r?

I like this: https://github.com/PatrickF1/fzf.fish

It's one of the few packages that I think genuinely enhance fish versus merely adding a bunch of cruft.

Re: So you've installed `fzf` – now what?

#29
post #21

jump ( https://github.com/gsamokovarov/jump ) is something I use as I didn’t know about Alt-C. Highly recommended

Jump's database is empty. This could mean:

1. You are running jump for the first time. Have you integrated jump with your shell? Run the following command for help:

       $ jump shell

   If you have run the integration, enter a few directories in a new shell to
   populate the database.

   Are you coming from autojump or z? You can import their existing scoring
   databases into jump with:

       $ jump import
Doesn't work afaik / Tried all doesn't work how do you set this up @elAhmo
Post reply on HN