Code Monkey home page Code Monkey logo

zoteroquicklook's Introduction

ZoteroQuickLook

This open source project implements QuickLook in Zotero.

Status

This plugin is not currently being actively maintained. It may not work with current or beta versions of Zotero. If someone is interested in taking over maintenance of the plugin, please contact @bwiernik.

Installing

To install ZoteroQuickLook, download the latest version of zoteroquicklook.zoteroplugin from the Releases section of this GitHub repo. In Zotero (not in Firefox), open Tools -> Add-ons. Then drag the zoteroquicklook.zoteroplugin file onto the Zotero Add-ons window.

Installing on Mac

On Mac, ZoteroQuickLook uses macOS's native QuickLook functionality. No additional steps are needed.

Installing on Linux

On Linux, you must install Gloobus-Preview, a QuickLook-like preview software. On Ubuntu you can do this by running the following commands in terminal:

sudo add-apt-repository ppa:gloobus-dev/gloobus-preview
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install gloobus-preview

For other distributions and versions the installation might be different.

If you do not like Gloobus, you can define a custom QuickLook command:

  1. Install the software you want to use for previewing files. The software must be able to take a file name as a command line parameter.
  2. Open the Config Editor in Zotero's Advanced preferences pane.
  3. Search for extensions.zoteroquicklook.customviewcommand. Set the value for this config to the full path of the executable that you want to use to show the files.

Installing on Windows

On Windows, you must first install a QuickLook tool. By default, ZoteroQuickLook is set up to work with QuickLook. Note that you must install QuickLook using either the .msi installer or through the Windows Store. If you use the .zip version of QuickLook, you must also set up a custom view command.

Alternative QuickLook tools for Windows include Seer, WinQuickLook, and the paid software MaComfort. In my experience, the default option, QuickLook, is the most stable and powerful and least resource intensive option. You can choose another QuickLook program if you like. The software must be able to take a file name as a command line parameter.

After installing a QuickLook program, set ZoteroQuickLook to use this program:

  1. Open the Config Editor in Zotero's Advanced preferences pane.
  2. Search for extensions.zoteroquicklook.customviewcommand. Set the value for this config to the full path of the executable that you want to use to show the files.

Alternative build for Windows

Installing the extension on Windows sometimes fails with the error message: "ZoteroQuickLook cannot be installed because Zotero cannot modify the needed file." This is a Windows specific problem caused by the 256 character filename length limitation. This limit is reached during unpacking the xpi archive when installing the extension. Mozilla has fixed the issue by eliminating unpacking of extensions by default and running them directly from the xpi archive. However, this solution does not work for ZoteroQuickLook because on Mac and Linux, the extension uses executable files that need to be unpacked so that they can be run. These files are not used on Windows and there is a parallel version of ZoteroQuickLook that supports running directly from the xpi file. This version is called zoteroquicklook-windows.xpi and is available from the Releases section of this GitHub repo.

You can read more about the problem on Stack Overflow and the pages linked to from there.

Getting support

Please post any questions or bugs to the Zotero forums. Include "ZoteroQuickLook" in the thread title. Also include the following information:

  • Operating system and version (e.g., macOS 10.13.2)
  • Zotero version
  • ZoteroQuickLook version
  • Detailed description of your problem
  • A link to a log file (see the next section)
  • If on windows, whether loading the alternative Windows build fixes the issue

Log files

Log file will sometimes be helpful in diagnosing possible issues, so you need to submit a log file when asking for support.

To create a log file, in Zotero, follow these steps:

  1. Click Help -> Debug Output Logging -> Restart with Logging Enabled….
  2. After Zotero restarts, click Help -> View Output.
  3. Copy the content of the log that appears and paste it to (gist.github.com).
  4. Click "Create secret gist", then copy paste the URL of the gist to your thread on the Zotero forums.

The important information is in the beginning of the log. Here are example lines from the beginning of a log file. Make sure that your log file starts with similar lines to ensure that the log is complete.

zotero(3): Using data directory /Users/user/Zotero/

zotero(3): IPC: Initializing pipe at /Users/user/Zotero/pipes/1376326753918

zotero(3): Loading in full mode

zotero(3): Opening database 'zotero'

zoteroquicklook's People

Contributors

asifm avatar bwiernik avatar dstillman avatar gracile-fr avatar mronkko avatar punassuming avatar ritou11 avatar saccohuo avatar soraxas avatar stakats avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zoteroquicklook's Issues

QuickLook can't work on Mac

1.3.3 release, install on My MacBook Pro(Mac OS 10.15.4).
Press key table or the menu of "Quick Look", but the quick view can't work

QuickLook configuration in Linux

Now Linux provide a similar function with "QuickLook" in Windows called "GNOME Sushi". But in Linux (mine is Ubuntu 20.04), how to configure the "QuickLook" Plugin in zotero to use the "GNOME Sushi"?

Crush: Windows can not access the specified file...

on Windows 10 Zotero
I had used it for several days fluently
But after I pressed the space today I got this
image
It doesn't work for all the documents in Zotero but it works fine in explorer.
I have confirmed that the config to the .exe file is correct.
And I have tried to start the QuickLook with administrator permission.

Experiment with better quick look viewers on Windows

From: https://addons.mozilla.org/en-US/firefox/addon/zoteroquicklook/reviews/515402

mronkko wrote:

"As far as I know, The PDF preview thumbnails show just the first page so this would not be useful."
About first page only, that's correct. About usefulness, one would say that something that works (quickly) is better than nothing. It would be a way just to remind the cover of the book or document, like many book organizers do (by downloading jpg thumbnail book images).
The programs I mentioned uses .dll libraries to give the PDF preview functionality to the WinOS. This link says something more on this point for Sumatra PDF:
http://forums.fofou.org/sumatrapdf/topic?id=3115321

"Can you provide a link that describes this functionality? (Or even better, a link to a documentation how it is used)"

To display a whole PDF document quickly in Windows I just know a very small plug-in (freeware) made for total commander that uses Sumatra PDF viewer, which is really fast: an almost instantanous opening, which is completely independent from the rest.
See this link for more: http://www.ghisler.ch/board/viewtopic.php?t=27145
Thanks again for your effort, possible Win improvements and feedback

ZoteroQuickLook cannot work on Windows

Quicklook is usable in explorer, but cannot work in Zotero. When I press press key or the menu of "Quick Look" in Zotero, there is no reaction:

Windows 10.0.18362.7781.3.3
Zotero 5.0
ZoteroQuickLook 1.4.2(zoteroquicklook.zoteroplugin) and 1.3.3(zoteroquicklook-altwindows.xpi), both have tried
Log file

Hope you can help me. Thank you!

Thanks! I already fixed it.

Error message in Mozilla testing

I tested the add-on's QuickLook features in Firefox+Zotero with Ubuntu+gloobus and with OS X 10.8.4. I also tested the QuickLook feature in Word 2008 with OS X 10.6.8. I was able to view the previews in each case. However, I did find one issue that should be corrected in the next update:

  1. I get the following error in the error console on startup (only when the Zotero Word integration plugin is installed):

Error: TypeError: redeclaration of const INTEGRATION_TYPE_ITEM
Source File: chrome://zoteroquicklook/content/zoteroquicklook.js
Line: 2

Tested on Ubuntu 12.04 LTS, OS X 10.8.4, OS X 10.6.8 with Firefox, Word for Mac 2008

zoteroquicklook does not work after zotero restarts

I can successfully install zoteroquicklook on windows by following the installation guide, and the quicklook works. After I restart zotero, quicklook cannot work when I tab the space bar. If I disable the zoteroquicklook extension, restart zotero and then enable the extension, restart zotero, quicklook can work again. How can I solve this problem? Thanks!

Alternative build for Windows

I recently started using version 1.4.0 of ZoteroQuickLook without problems. Thanks a lot for this great add-on!

I'm using an alternative viewer and the 'customviewcommand' setting on Windows 10. Now I noticed that version 1.4.1 is including a 'Bridge.exe' binary file. I understand that this should enable support for the Windows Store QuickLook program. That's certainly great for users of that software. But I would appreciate it if you could make this optional and provide a version without the file. There have been some (false positive) threats reported, and I would feel more comfortable recommending ZoteroQuickLook to others if there was a build without the exe file. I could try to help with the additional work that would be required.

If I understand @dstillman's comment correctly, the "unpacked" flag is not used in Fx60, such that the two builds 'zoteroquicklook.zoteroplugin' and 'zoteroquicklook-altwindows.zoteroplugin' currently provided are no longer really different. So a suggestion would be to keep providing two builds, but to only include 'Bridge.exe' in 'zoteroquicklook-altwindows.zoteroplugin'. Users of the Windows Store version of QuickLook could then be referred to this version.

Note that I'm not writing on the Zotero forum since this is a rather technical issue.

Add link to releases page in readme

I changed the QuickLook link on the plugins page to point to the front of the repo, since there's a lot of info that people won't see on the releases page. It'd be good to link "Releases" in the README to the releases page (and I'd suggest generally doing that instead of linking straight to GitHub releases pages, which can't provide any context).

Bug when there are multiple attachment files

When I have multiple attachments whose first attachment is not a PDF file, ZoteroQuickLook will not automatically open the correct pdf file, but will open the first attachment.
This is common in items imported by browser plugins, the first attachment is a web link

QuickLook opens multiple paths

Hi, thanks for the plugin which is very handy.
When I open a pdf file using the plugin (latest release), it looks like the external reader (in my case, I use evince) tries to open two paths: one corresponding to the file I really want to open, and one for the path "/home/myusername". Hence I always have to close the second window. I don't know if this is a generic problem or if it is specific to evince, but it is a bit annoying. Am I the only one to have this problem?

Quicklook 0.3.2 wont open file

Hi!

I'm filling the directory and executable in the extensions.zoteroquicklook.customviewcommand
in my case its : C:\Program Files (x86)\QuickLook\QuickLook.exe
but i get a message that quicklook is already running.
i tried to add %1, and use quotation marks. i also tried to disable the extensions.zoteroquicklook.usefilenameworkaround
what am i missing?

BIG thanks!

QL fails if item has a Zotero note

If a note is listed above the attachment PDF file in Zotero's file tree, quicklook fails. Deleting the note allows the PDF to be previewed as expected.

gnome-sushi support

gloobus-preview has been unmaintained for years in favor of gnome-sushi. I can use gnome-sushi to preview documents (even without using nautilus) using dbus from the terminal like this:

dbus-send --print-reply --dest=org.gnome.NautilusPreviewer /org/gnome/NautilusPreviewer org.gnome.NautilusPreviewer.ShowFile string:"URI_path" int32:0 boolean:false

So for, e.g., dolphin in kde I created a .desktop file with the following content:

[Desktop Entry]
Categories=Tools;
Comment=Sushi preview
Exec=dbus-send --print-reply --dest=org.gnome.NautilusPreviewer /org/gnome/NautilusPreviewer org.gnome.NautilusPreviewer.ShowFile string:"file://%f" int32:0 boolean:false
Icon=sushi.svg
MimeType=all/all;
Name=Sushi
NoDisplay=false
Path[$e]=
StartupNotify=true
Terminal=0
TerminalOptions=
Type=Application
Version=1.0
X-KDE-SubstituteUID=false
X-KDE-Username=

This works nicely in dolphin but if I use the path to the .desktop file in Zotero, ZoteroQuickLook does not work, i.e., the sushi preview is not shown and nothing happens.

Clarification of Win Dependencies

Hi,

Thanks for this addon.

In FF, the addon description indicates that it needs a 3rd party app installed to work on Win. I'm on Win 7 64bit. Could you clarify what it is that needs to be installed?

Is it the Sumatra PDF thingie that I saw you link in another comment? I'm trying that now... ***

Thanks,

Jason

*** UPDATE: I have downloaded and extracted wlx_sumatrapdf_0.8.1.zip but I'm not familiar with .wlx and double clicking it doesn't do anything... sorry for my confusion

【BUG feedback】The 5.0.97 beta will disable the ZoteroQuickLook plugin

QuickLook plugin is very easy to use on the Mac,but the 5.0.97 beta will disable the QuickLook plugin,the 5.096 beta version can still be used. I suspect that starting from the 5.097 beta version, the way to open the file is different. Previously, it was opened with a path, but now it is opened with a url.
I hope the authors have time to solve this problem, because this is a very easy to use and convenient function, thank you

Zotero 5

Any chance of a revision to this plugin to make it compatible with Zotero 5 beta? Thanks.

QuickLook doesn't work with `docx` files

QuickLook xpi doesn't work with docx files. Works fine with pdf and pptx.

ZoteroQuickLook 1.3.2
Zotero 5.0.38
macOS 10.13.3
Word 16.10

Please let me know if you need any more info. Thanks for a great plugin!

Quicklook not working with sushi

I'm running Ubuntu 20 and I can't seem to find a working Gloobus-Preview. So I'm using sushi for QuickLook. But Zotero Quicklook plugin does not seem to work when I press space on a document.

I have kept /usr/bin/sushi in the extensions.zoteroquicklook.customviewcommand

Word 2011 script is not insalled automatically

The zoterquicklook script for Mac Word 2011 is not installed automatically.
Is there a way to install it manually as a workaround?

System:
Mac OS X 10.6.8,
Zotero standalone 4.0.5,
Chrome 26.0.1410.65
Word 2011 14.3.2

Can't set `mupdf-gl` as custom view command

os version: macOS 10.13.2/windows 10 1709 16299.64
Zotero version: 5.0.30
ZoteroQuickLook version: 1.13.2

log gist

I can open pdf with

mupdf-gl <pdf_file_name>

in console, and set extensions.zoteroquicklook.customviewcommand with full path of mupdf-gl, but it failed to open pdf with mupdf-gl.

update: I also test it on win10, it seems that related to mupdf. this plugin performs well with SumatraPDF on windows. I guess it may related to the path of attachment?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.