phiresky / ripgrep-all

rga: ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz, etc.
Other
8.21k stars 177 forks source link

How to enable pandoc adapter #111

Closed blueray453 closed 3 years ago

blueray453 commented 3 years ago

I am using ripgrep-all 0.9.7-alpha.0

I am trying to search epub file with rga.

$ rga "ego" Mastery\ -\ Greene,\ Robert.epub

or,

$ rga "ego" "Mastery - Greene, Robert.epub"

Yields no results

Then I searched a little. I think it needed pandoc adapter. So, I tried:

% rga --rga-adapters=pandoc "ego" Mastery\ -\ Greene,\ Robert.epub
Error: Unknown adapter: "pandoc"

It says, it does not have any pandoc adapter. Then I tried:

$ rga --rga-list-adapters
Adapters:

 - **zip**
     Reads a zip file as a stream and recurses down into its contents
     Extensions: .zip
     Mime Types: application/zip

The following adapters are disabled by default, and can be enabled using '--rga-adapters=+pdfpages,tesseract':

How do I exactly search .epub files?

phiresky commented 3 years ago

Install the stable version, don't try to install the master branch