From fd509bb4af1e7839d4b91b8df92265351e964c5f Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sun, 21 Jul 2019 08:57:50 +0100 Subject: [PATCH] Doc: Fixed template table --- README.md | 4 +++- docs/index.html | 38 ++++++++++++++++++++++++++++++++------ 2 files changed, 35 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 63b7f2b358..ec1282cddb 100644 --- a/README.md +++ b/README.md @@ -329,11 +329,13 @@ Details: When creating a new note you will now be prompted to insert a template that contains the above text (and `{{date}}` replaced with today's date). Templates can also be inserted from the menu (File->Templates). The currently supported template variables are: + | Variable | Description | Example | +| --- | --- | --- | | `{{date}}` | Today's date formatted based on the settings format | 2019-01-01 | | `{{time}}` | Current time formatted based on the settings format | 13:00 | | `{{datetime}}` | Current date and time formatted based on the settings format | 01/01/19 1:00 PM | -| `{{#custom_datetime}}` | Current date and/or time formatted based on a supplied string (using [moment.js](https://momentjs.com/) formatting) | `{{#custom_datetime}}`M d`{{/custom_datetime}}` | +| `{{#custom_datetime}}` | Current date and/or time formatted based on a supplied string (using [moment.js](https://momentjs.com/) formatting) | `{{#custom_datetime}}M d{{/custom_datetime}}` | # Searching diff --git a/docs/index.html b/docs/index.html index dda365a646..8cf8a405b5 100644 --- a/docs/index.html +++ b/docs/index.html @@ -598,12 +598,38 @@ Hours: Details:

When creating a new note you will now be prompted to insert a template that contains the above text (and {{date}} replaced with today's date). Templates can also be inserted from the menu (File->Templates).

-

The currently supported template variables are:
-| Variable | Description | Example |
-| {{date}} | Today's date formatted based on the settings format | 2019-01-01 |
-| {{time}} | Current time formatted based on the settings format | 13:00 |
-| {{datetime}} | Current date and time formatted based on the settings format | 01/01/19 1:00 PM |
-| {{#custom_datetime}} | Current date and/or time formatted based on a supplied string (using moment.js formatting) | {{#custom_datetime}}M d{{/custom_datetime}} |

+

The currently supported template variables are:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
VariableDescriptionExample
{{date}}Today's date formatted based on the settings format2019-01-01
{{time}}Current time formatted based on the settings format13:00
{{datetime}}Current date and time formatted based on the settings format01/01/19 1:00 PM
{{#custom_datetime}}Current date and/or time formatted based on a supplied string (using moment.js formatting){{#custom_datetime}}M d{{/custom_datetime}}

🔗Searching

Joplin implements the SQLite Full Text Search (FTS4) extension. It means the content of all the notes is indexed in real time and search queries return results very fast. Both Simple FTS Queries and Full-Text Index Queries are supported. See below for the list of supported queries: