zoteroRoam
Report an issueRoadmap
v0.5
v0.5
  • Introduction
  • โ–ถ๏ธDemo by Cortex Futura
  • ๐Ÿ”„Updating from older versions
  • ๐Ÿ†˜Help/Getting Support
  • ๐Ÿ Getting Started
    • 1.1 Pre-requisites
    • 1.2 Installation in {{roam/js}}
    • 1.3 Basic Setup
  • ๐ŸงชUsing the extension
    • 2a. The search panel
    • 2b. In-text references
  • ๐Ÿ› ๏ธCustomizations
    • 3.1 What's Available
    • 3.2 Constructing data requests
    • 3.3 Creating your own formatting functions
      • Nesting metadata
      • Code snippets
    • 3.4 Creating custom shortcuts
    • 3.5 Other Settings
      • autocomplete
      • funcmap
      • typemap
      • Copying an item's reference
    • Extension defaults
  • About the Zotero API
    • Zotero API Docs (v3)
  • Support the project
    • Roadmap/Future Development
    • Buy me a (virtual) coffee
    • GitHub Sponsorship
Powered by GitBook
On this page
  • Settings
  • How to enable autocomplete
  • display: "zettlr"

Was this helpful?

  1. Customizations
  2. 3.5 Other Settings

autocomplete

Settings

Name

Default value

Description

trigger

'' (empty string)

The character(s) that should trigger the autocomplete menu,

If trigger is an empty string (default), autocomplete will be disabled.

format

"citekey"

The format in which the item's citekey should be inserted.

Should be one of :

"citekey" (default)

"citation"

"tag"

"pageref"

display

"citekey"

The text that will be displayed in the inline menu.

Should be either "citekey" (default) or "zettlr" (authors-year-title string)

Note : the query will be matched against what is displayed in the menu. This means that, with display: "citekey", the query will be matched against the citekey ; with display: "zettlr", the query will be matched against the authors-year-title string.

How to enable autocomplete

The autocomplete feature is disabled by default, unless a trigger is defined by the user.

To setup autocomplete, define the autocomplete property inside of your existing zoteroRoam_settings object :

// Example : using the @ character as trigger, with 'citekey' as format & display

// DO NOT define the zoteroRoam_settings object again
// Instead, modify your existing zoteroRoam_settings object

zoteroRoam_settings = {
    dataRequests: {
        apikey: 'XXXXXXXXXXXXXXXX',
        dataURI: 'users/1234567/items',
        params: 'limit=100'
    },
    autocomplete: {
        trigger: '@', // Show autocomplete menu when typing @
        format: 'citekey', // Insert the item as @citekey
        display: 'citekey' // Show autocomplete menu items as citekeys
    }
}

display: "zettlr"

Last updated 4 years ago

Was this helpful?

๐Ÿ› ๏ธ
An example where display has been set to "zettlr"