obsidian-another-quick-switcher icon indicating copy to clipboard operation
obsidian-another-quick-switcher copied to clipboard

Globally does not search for text inside a pdf

Open patsevanton opened this issue 1 year ago • 3 comments

Hello! Thanks for another-quick-switcher! I am use Ubuntu. obsidian-another-quick-switcher version 11.4.0

whereis rg
rg: /usr/bin/rg /usr/share/man/man1/rg.1.gz

I can search inside PDF image

Extention - md,pdf image

But global not searching image

patsevanton avatar May 12 '24 15:05 patsevanton

Hi, @patsevanton :)

Since ripgrep does not support searching PDFs, AQS also cannot search PDFs.

wget https://pdfobject.com/pdf/sample.pdf
rg dolor sample.pdf
# No results

tadashi-aikawa avatar May 18 '24 08:05 tadashi-aikawa

https://github.com/phiresky/ripgrep-all search in PDF

rga condimentum sample.pdf Page 1: pharetra commodo, eros mi condimentum quam, sed commodo justo quam ut velit. Page 1: Phasellus ullamcorper consectetuer ante. Duis tincidunt, urna id condimentum luctus, nibh Page 1: molestie cursus. Duis ut magna at justo dignissim condimentum. Cum sociis natoque

patsevanton avatar May 18 '24 15:05 patsevanton

Yes, it is true that ripgrep-all can search PDFs. However, AQS supports only ripgrep, not ripgrep-all.

It might work if you specify the path to the rga executable, but this has not been confirmed and is not guaranteed.

tadashi-aikawa avatar May 19 '24 11:05 tadashi-aikawa