by jknz · 8y ago · 0 comments
- as I read new PDFs in the browser, the PDFs are passively downloaded typically in a Downloads/ folder.
- This results in thousands in papers lying in Downloads/ or elsewhere.
- The command p from the script [1] let me instantaneously fuzzy-search over the first page of each pdf (The first page of each pdf is extracted using pdftotext, but cached so it's fast). The first page of academic PDFs usually contains title, abstract, author names, institutions, keywords of the paper; so typing any combination of those will quickly find the pdf.
What is particularly convenient is that no time is spent trying to organize the papers into folders, or importing them into software such as zotero. The papers are passively downloaded, and if I remember ever downloading a paper, it's one fuzzy-search away. Of course it does not solve the problem of generating clean bibtex files.
[1]: the script: https://github.com/bellecp/fast-p
[2]: an illustration in GIF: https://user-images.githubusercontent.com/1019692/34446795-1...
edit: The script has been moved from the gist to the public repository https://github.com/bellecp/fast-p
Basically, a personal search engine with a passively gathered corpus of my experienced content - maybe even filtered at times as in your case where you limited it to academic PDFs (to keep the knowledgebase focused). Kind of like an extension of our human memory.
Consume -> add as extension of knowledgebase -> recall.
Thank you for sharing your workflow - simple and ingenious!
Have you had any issues or thoughts for future enhancements? I can think of a number of other helpful things you could do with the corpus you’ve built, for yourself.
I recently used the command with some combination of airport/city/airline and the only match was the boarding pass I was looking for. It could probably be used for receipts from hotel or whatnot, as soon as pdftotext can retrieve the text. It should find tax returns and related PDFs by querying "IRS + SSN".
A current issue that I would like to fix is the preview window that does not always highlight the query in full if a single match was found before the full query was typed. It is linked to how fzf handles previewing. I do not have plans for any big enhancements.
edit: I created a public repo to replace the gist. Feel free to post your thoughts or suggestions in the issues!
http://www.lesbonscomptes.com/recoll/faqsandhowtos/IndexWebH...
I'm trying it out now -- I have way too many pdfs, and I could really use the extra features (like context previews).
However, to be fair, you can follow a somewhat similar workflow with Zotero in combination with the Firefox plugin: download pdf by adding it to the Zotero database in Firefox and Zotero takes care of the indexing. Zotero misses the fancy interactive fuzzy searching you have in your workflow thanks to fzf, but I've added it as a feature request for Zotero [1].
You don't have to organize your papers into folders (or collections in Zotero parlance since a single item can appear in multiple collections). For most academic papers the Zotero plugin will also grab the pdf's metadata as a bonus without additional costs.
I’ve enjoyed having access to the database from my laptop as well as iPhone and iPad. It’s definitely been a workflow I’ve cobbled together. This seems to be working out better though.