View Single Post
Old 03-16-2020, 05:04 PM   #1342
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,881
Karma: 30277270
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by nixsee View Post
Wow, I didnt expect such a fast response let alone success! Will you be trying to make it into a plugin or is it something I can/will have to configure myself?
No need for a plugin, the following does exactly what you asked for - opens PDFs in Quicklook when you press spacebar in the book list - pretty cool

This is what I did on Windows - you or someone with a Mac will have to work out how to do the same on a Mac, there's only one unknown, where does Apple hide Quicklook in MacOS

Initially I installed Quicklook app from the MS Store, that was OK I could use it from File Explorer (Finder in Macspeak), but it was installed the C:\Program Files\WindowsApps folder which is where I ran into the Permissions Monster.

So I went looking for a portable version of Quicklook, I found it on the developers site ==>> Releases · QL-Win/QuickLook, so I installed the msi in C:\Program Files (Portable)\Quicklook (that's a folder)

Then in calibre:

I found a book with a PDF in my Test library and right clicked the PDF link in Book Details,

Click image for larger version

Name:	Annotation 2020-03-17 070327.jpg
Views:	259
Size:	395.9 KB
ID:	177768

After selecting Add other application for PDF files this popped up:

Click image for larger version

Name:	Annotation 2020-03-17 070443.jpg
Views:	262
Size:	27.5 KB
ID:	177769

After clicking Browse computer for program, Flle Manager kicked in and I went to C:\Program Files (Portable)\Quicklook

Click image for larger version

Name:	Annotation 2020-03-17 070708.jpg
Views:	259
Size:	106.4 KB
ID:	177770

So that hooked Quicklook into Calibres Open With for PDFs. I then went to Preferences->Shortcuts, scrolled down to Open With, then to Open PDF Files with Quicklook and gave it a custom short cut of 'space'

Click image for larger version

Name:	Annotation 2020-03-17 070922.jpg
Views:	253
Size:	202.0 KB
ID:	177771

Then I found another book with a PDF

Click image for larger version

Name:	Annotation 2020-03-17 071233.jpg
Views:	258
Size:	370.6 KB
ID:	177772

Pressed the spacebar and up popped Quicklook

Click image for larger version

Name:	Annotation 2020-03-17 071355.jpg
Views:	270
Size:	345.1 KB
ID:	177773

The unknown on a Mac is where to find the Quicklook app, if you can find it then just follow the above steps.

BR

Last edited by BetterRed; 03-16-2020 at 07:18 PM.
BetterRed is offline   Reply With Quote