4 points

It literally looks like a clone of fzf or sk complete with prompt and file previews. The fact that ithe article doesn’t event reference the prior art is deeply concerning.

permalink
report
reply
18 points
*

Also if you are looking for a replacement for find that is not a full tui then take a look at fd which works more like what the author expected from the find commad - fd <pattern>.

permalink
report
reply

Plus, IIRC fd does breadth-first search, which leads to faster finds in the most common cases.

I’ve been corrected. fd doesn’t do this; other find replacements exist that do, though.

permalink
report
parent
reply
2 points

I don’t think so, where did you get that? Last I checked, they weren’t interested in adding it. That’s why tools like bfs exist.

permalink
report
parent
reply

Oh. I’m just straight up wrong about that; I thought I’d read that about it back when I first started using it regularly.

I’m just attributing it to some other tool. Bad info, sorry!

permalink
report
parent
reply
12 points

find can be a bit slow because it enumerates every directory recursively from the root you specified, but it let’s you do a lot more than just search by name. locate is available on most distros and give fast results, albiet from when the index was last rebuilt (usually nightly). They both have the vital property that they output a list of files to stdout for further processing.

permalink
report
reply
4 points

It’s worth mentioning you can manually kick off an index build with I believe updatedb (in most cases).

permalink
report
parent
reply
3 points

+1 for locate and updatedb. It works on macos too.

permalink
report
parent
reply
8 points

Sounds fantastic, but unfortunately none of the instructions for Debian-based, or the pre-compiled binary, or the building from source worked.

permalink
report
reply
7 points

So many linux posts seem to be new people getting frustrated at their lack of knowledge and trying to reinvent something that already exists. I’m looking at this thinking, why didn’t they just use locate and fzf?

permalink
report
reply

Linux

!linux@programming.dev

Create post

A community for everything relating to the GNU/Linux operating system

Also check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

Community stats

  • 2.5K

    Monthly active users

  • 1.1K

    Posts

  • 9.2K

    Comments