Drafts includes an extensible system to provide drop-down autocomplete suggestions while typing in the editor. Autocomplete includes a global system for creating and inserting text snippets, as well as additional autocomplete suggestions provide by syntax definitions
Global autocomplete is enabled on the “Autocomplete” tab on the Editor Preferences window, access via the
Aa button at the lower right of the editor, or via
Drafts > Editor Preferences... in the main menu.
To use global autocomplete, configure the following values:
<< as triggers as they conflict with other autocomplete definitions in syntax files (see below).
If the “Process Template Tags” option is enabled, autocomplete item names and values will be passed through the Drafts template engine before use. This allow dynamic insertion of values such as dates/times, location information, and more. For details on available tags, see the Templates article.
The built-in Markdown syntaxes provide two additional default autocomplete suggestion triggers:
[[ : Allow selection of draft titles to ease creation of
[[wiki-style]] cross-links to other drafts
<< : Allows selection and insertion of the full text of other drafts at the cursor position.
Custom syntax definitions may include additional autocomplete definitions. Consult documentation for any installed custom syntaxes for capabilities they may provide.
© 2012-2021 by Agile Tortoise, Inc.
Drafts is a registered Trademark of Agile Tortoise, Inc.
Privacy | Terms