This extension brings Zotero search to raycast!
This extension reads your local zotero sqlite database to enable searching of references.
In order to avoid creating locks for the database, it creates a copy of the sqlite database with
a suffix of .raycast
.
You need to have Zotero installed. This extension has few optional preferences:
$HOME/Zotero/zotero.sqlite
. If you are using an alternate location, you will need to update this.If you use the Better BibTex zotero extension, you can enable few additional features. Additionally, you can copy the references in certain CSA styles as well as bibtex entries to clipboard or paste on the most current Application.
Preferences related to these features are:
Cache Period: Number of minutes for which data will be used from cache. During this period, if last updated time of cache is still later than change in zotero database, Cache will be used for queries. Otherwise, a new cache will be created and results read directly from zotero database. A default of 10 minutes is Used.
Whether to use Better BibTex Citation: If you use the Better BibTex zotero extension, you can enable this flag to copy Better BibTex citation keys for any reference.
Better Bibtex CSL JSON File: Path where you save your auto-updating CSL JSON file. PLEASE
NOTE THAT THIS IS MUST IF YOU WANT TO USE THESE FEATURES. Please see the following screencast
to setup this properly. You will need to update this entry to the path you chose to save this CSL
JSON file. By default this is setup to be
~/Zotero/lib.json
. If you are not saving yours to this location, please ensure to update this.
CSL Format: This is the style with which you want to copy reference text in clipboard or paste in frontmost application. Currently following formats are supported. These are based on default formats supported by Zotero.
On launching the application, you will get and empty view. The results will only show up when you type any search query. To speedup queries, sqlite query results are cached locally for 10 minutes. Additionally, This cache is valid in those 10 minutes, only if your database has not changed since. Please note that the cache will become invalid if you update preferences.
This extension supports different types of searches. Here are some common examples:
Note that search for tags
can be prefixed with .
explicitly. Tags with spaces should be entered
by replacing "spaces" with "+" characters. Use if multiple query terms prefixed with "." would
search for references with ALL of the queried tags (Examples 7 and 10).
If you want to search for ANY of the tags, you should not prefix it with "." character. For example in queries 9 and 10, AAA will be searched in tags in only OR/ANY sense.
This extension support a few sub commands.
Please note that in case a reference has multiple PDF files associated with it, only the first PDF file returned by the sqlite database will be opened.