News for hackers. Stuff that matters.
Re:Ask HN: Why is on-device search terrible? by f1refly on Thursday January 19, 2023 @04:21PM (#34445776)
Try `find / -iname "foo" 2>/dev/null`, works every time. Also can take quite some time.
Re:Ask HN: Why is on-device search terrible? by hellfish on Thursday January 19, 2023 @04:44PM (#34446063)
fd takes less time, would recommend
Re:Ask HN: Why is on-device search terrible? by Sohcahtoa82 on Thursday January 19, 2023 @04:45PM (#34446074)
On Windows, the fastest way seems to use WizTree to scan the whole hard drive (Takes only a couple seconds to scan an SSD, and even my 2 TB spinning HD with >900,000 files takes less than 15 seconds) and then search the results for the filename.
Re:Ask HN: Why is on-device search terrible? by clockwork-dev on Thursday January 19, 2023 @04:56PM (#34446202)
Haven't tried this one, thanks. There's also Everything [0] which is usually my favorite search for Windows. Fast and supports regex.

[0] https://www.voidtools.com/

Re:Ask HN: Why is on-device search terrible? by rococode on Thursday January 19, 2023 @05:44PM (#34446715)
Everything search is incredible, for me it serves nearly instant searches for 15TB+ of data without any trouble. I think the secret sauce is a background service which continuously updates the file index.

I also like WinDirStat a lot for Windows file management, which is not really for search but gives a great view of disk usage.

Re:Ask HN: Why is on-device search terrible? by delta_p_delta_x on Thursday January 19, 2023 @07:33PM (#34447651)
> I think the secret sauce is a background service which continuously updates the file index

Actually, the secret sauce to both WizTree's and Everything's speed is the NTFS Master File Table (MFT) [1].

[1]: https://learn.microsoft.com/en-us/windows/win32/fileio/maste...

Re:Ask HN: Why is on-device search terrible? by hackrnusr on Thursday January 19, 2023 @09:05PM (#34448320)
Is there an open source analog of voidtools Everything yet?

Have never been able to find anything.

Re:Ask HN: Why is on-device search terrible? by pynappo on Thursday January 19, 2023 @11:19PM (#34449213)
I've seen flow launcher recommended but haven't personally tried it out yet
Re:Ask HN: Why is on-device search terrible? by hackrnusr on Friday January 20, 2023 @01:21AM (#34449807)
Thanks for the suggestion.

Probably worth benchmarking against fzf/ripgrep when I can find the time.

Re:Ask HN: Why is on-device search terrible? by kid64 on Friday January 20, 2023 @01:40AM (#34449904)
There's this, which I haven't tried: https://github.com/ChrisS85/FastFileSearch

SwiftSearch is excellent and uses the same tech: https://sourceforge.net/projects/swiftsearch/

Re:Ask HN: Why is on-device search terrible? by yonz on Friday January 20, 2023 @10:13AM (#34454150)
So why do the stock implementations suck?
Re:Ask HN: Why is on-device search terrible? by bravetraveler on Thursday January 19, 2023 @05:39PM (#34446671)
mlocate/plocate (for locate and updatedb) are also nice

Even if the db is not up to date, it's likely faster to update/search than rely on find

Re:Ask HN: Why is on-device search terrible? by bravetraveler on Thursday January 19, 2023 @09:02PM (#34448290)
Lost my ability to edit, but here's a link to Albert: https://albertlauncher.github.io/

The demonstrations there confirm searching... and way more than I can do justice here

Re:Ask HN: Why is on-device search terrible? by abdullahkhalids on Thursday January 19, 2023 @09:22PM (#34448432)
Albert is pretty good.

I also catfish https://launchpad.net/catfish-search which is excellent. Also can search within text files.

Re:Ask HN: Why is on-device search terrible? by yonz on Friday January 20, 2023 @10:11AM (#34454123)
Are either of you concerned about giving permissions to almost everything? I think that was why I uninstalled Albert.
Re:Ask HN: Why is on-device search terrible? by abdullahkhalids on Saturday January 21, 2023 @12:24PM (#34468053)
I am not sure what special permissions you are talking about that Albert gets? Just like any other software, it can do whatever the user can do. As far as I understand it doesn't "phone home" or anything with my data. And doesn't really delete or move files in any way.
Re:Ask HN: Why is on-device search terrible? by bravetraveler on Wednesday January 25, 2023 @09:50PM (#34527175)
A bit, I'll admit I haven't audited it as much as I should -- are you aware of anything in particular?

I install it through the Fedora repositories and only use the bundled extensions, so I don't worry too much about it