📋

Text Export Templates

Summary:

With the new copy-paster templates you can quickly copy search results, pages and annotations to the clipboard in a custom format.

This allows you to quickly paste them into your own workflows and apps.

Demo Gif

image

How to use this feature:

  1. Create a template by clicking on the "copy/paste" icon that you find above the search results, in the annotation sidebar on the top right, or on each page or note card.
  2. You can use several placeholders for the data about a page or note. See examples and syntax below.
  3. After saving a template you can click on its name to copy the content of your template into the clipboard

Examples:

Use the ▼ icon to unfold the sections

Markdown:
[{{{PageTitle}}}]({{{PageUrl}}})
HTML Page Title and Page Url:
<a href="{{{PageUrl}}}">{{{PageTitle}}}</a>
HTML with Page Title/Url and list of highlights
<a target="_blank"  href="{{{PageUrl}}}">{{{PageTitle}}}</a>
<ul>
{{#Notes}}
<li>
<p style="font-style: italic">
"{{{NoteHighlight}}}"
</p>
<p>
{{{NoteText}}}
</p>
</li>
{{/Notes}}
</ul>
Roam Pages

Creates a Page with the url and tags attributes and then indents the list of notes below

[[{{{PageTitle}}}]]
  url:: {{{PageUrl}}}
  tags:: {{#PageTagList}}
     #[[{{{.}}}]]{{/PageTagList}}
{{#Notes}}
  ^^{{{NoteHighlight}}}^^ {{{NoteTags}}}
    {{{NoteText}}}
{{/Notes}}
Roam TODO
{{#literal}}{{[[TODO]]}}{{/literal}}[[{{{PageTitle}}}]]
  url:: {{{PageUrl}}}
  tags:: {{#PageTagList}}
     #[[{{{.}}}]]{{/PageTagList}}
{{#Notes}}
  ^^{{{NoteHighlight}}}^^ {{{NoteTags}}}
    {{{NoteText}}}
{{/Notes}}

Template Syntax.

Syntax

Data PointPlaceholderNotesStatus
Page Title
{{{PageTitle}}}
Live
Page URL
{{{PageUrl}}}
Live
Page Creation Date
{{{PageCreatedAt}}}
Live
Note Created Date
{{{NoteCreatedAt}}}
Live
Page Spaces (as string)
{{{PageSpaces}}}
Outputs #Space1 [[Space 2]]
Live
Page Spaces (as iterable object)
{{#PageSpacesList}}{{{.}}} {{/PageSpacesList}}
the {{{.}}} represents a placeholder for every space in that array. Outputs space1 space2
Live
Note Link
{{{NoteLink}}}
This is a link that points straight to the highlight. Requires a subscription for now.
Live
Shareable Page Link
{{{PageLink}}}
This is a web link that points to a list of all highlights/notes on a specific page in the Memex web reader
Live
Note Spaces (as string)
{{{NoteSpaces}}}
Outputs #Space1 [[Space 2]]
Live
Note Spaces (as iterable object)
{{#NoteSpacesList}} {{{.}}} {{/NoteSpacesList}}
the {{{.}}} represents a placeholder for every space in that array. Outputs space1 space2
Live
Note Highlight
{{{NoteHighlight}}}
Only works on single notes. for iterating on all notes on a page or in search results, use the iterable Notes syntax
Live
Note Text
{{{NoteText}}}
Only works on single notes. for iterating on all notes on a page or in search results, use the iterable Notes syntax
Live
Notes (as iterateable object)
{{#Notes}} {{{NoteHighlight}}} {{{NoteText}}} {{/Notes}}
If there are many items, like "all annotations on page" then this syntax will loop through them. The output will be structured like the syntax between the {{Notes}} brackets.
Live
Literals
{{#literal}} .... {{/literal}}
Anything between those brackets will be printed 'literally'. Allowing to output app specific syntax like {{[[TODO]]}} in Roam
Live
IF variable available
{{^VariableName1}} Text and/or {{{VariableName2}}} {{/VariableName1}}
Any text/variable wrapped into these will be displayed if the value is available. Note that the wrapper has two {{ instead of 3 {{{
Live
IF variable NOT available
{{#VariableName1}} Text and/or {{{VariableName2}}} {{/VariableName1}}
Any text/variable wrapped into these will be displayed if the value is NOT available. Note that the wrapper has two {{ instead of 3 {{{
Live
If page has notes
{{#HasNotes}} Text and/or {{{VariableName1}}} {{/HasNotes}}
Display wrapped text/variables if page has notes
Live
Page Content
In Planning
Author of website
In Planning
Visit time
In Planning
Bookmark Time
In Planning
Collection Name
In Planning