Live data from Hacker News

Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz

phiresky.github.io

21–30 of 144 posts

Re: Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz

#21

I have mixed feelings about these kinds of tools. I can understand it might be nice to have a personal library of PDF books and searching in them. I can't think of a time I've ever wished I could search my bookshelf in that way, but you never know. Obviously I use tools like ripgrep for searching codebases and the like. But the extreme flexibility of this one in particular (and others like MacOs Spotlight) makes it s…

Hierarchal organizing of data is not a productive way of organization. Simply due to how much information people accumulate and often times structures breakdown.

It's more intuitive to simple search for something in the something you are looking for and clicking it.

I haven't used a folder organization structure in many many years. Other than the defaults for my cloud folders and a separation between Personal + Work.

Re: Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz

#22

I have mixed feelings about these kinds of tools. I can understand it might be nice to have a personal library of PDF books and searching in them. I can't think of a time I've ever wished I could search my bookshelf in that way, but you never know. Obviously I use tools like ripgrep for searching codebases and the like. But the extreme flexibility of this one in particular (and others like MacOs Spotlight) makes it s…

There is nothing wrong with the original Google's postulate. Your local search results are less likely to be hijacked by entities bidding for your attention. I agree with the argument for organizing the data anyway.

Re: Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz

#23
post #5
post #2

I love that we’re seeing fast & flexible solutions for personal search. I’ve recently been playing with Recoll for full-text-search on content. Since it indexes content up front, the search is pretty fast. It can also easily accommodate tag metadata on files. It would be interesting to consider how ripgrep based tools can fit into generically broad “search your database of content” workflows (as opposed to remember o…

rga also indexes them when you search. To be honest I like that approach a lot more since it saves space and I generally know where I'm looking for things ls -sh ~/.cache/rga/ total 336M 336M data.mdb 4.0K lock.mdb

Wow that is so cool!

Re: Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz

#24

One a related note there is one program that I absolutely miss on Linux called everything (on windows). The closest I can find is mlocate but it does not have a GUI but more importantly it does not index my Windows or NTFS drives. Would appreciate any suggestions if someone knows something like 'everything' for Ubuntu.

There is about a dozen dedicated file indexers [1] on linux (some are gui, some are not) and also DE-integrated ones like Baloo for KDE and Tracker for Gnome.

[1] https://lmgtfy.app/?q=Is+there+a+file+search+engine+like+%E2...

Re: Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz

#26

I noticed that you can use Tesseract as an OCR adapter for rga. Tesseract is written in python, IIRC, and in the OP it comes with a warning that it’s slow and not enabled by default. Are there any other fast, reliable OCR libs out there? Or any rust OCR backends?

https://github.com/tesseract-ocr/tesseract seems to be written in c++ not python

Ah, my mistake then.

Re: Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz

#27

One a related note there is one program that I absolutely miss on Linux called everything (on windows). The closest I can find is mlocate but it does not have a GUI but more importantly it does not index my Windows or NTFS drives. Would appreciate any suggestions if someone knows something like 'everything' for Ubuntu.

Haven't used this, but heard of it years ago, and it aims to be similar. https://github.com/dotheevo/angrysearch/

Re: Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz

#29
post #6

Big fan of rga! I use it almost every day for the academic part of my life, when I want to know the location of some specific keywords in my lecture slides, books or papers I've been reading. Even for single ebooks, it is often more useful than the search in Acrobat Reader.

> search in Acrobat Reader

The search in PDF viewers is an anti-feature in terms of UI and performance. Their advantage is that they allow to scroll to and highlight the found phrase back in the document.

Post reply on HN