fix: docs build (#1203)
This commit is contained in:
63
packages/docs/docs/usage/action-bar.md
Normal file
63
packages/docs/docs/usage/action-bar.md
Normal file
@@ -0,0 +1,63 @@
|
||||
---
|
||||
title: Action Bar
|
||||
sidebar_label: Action Bar
|
||||
description: How to use the Standard Notes Action Bar.
|
||||
keywords:
|
||||
- standard notes
|
||||
- docs
|
||||
- notes app
|
||||
- end-to-end encryption
|
||||
- action bar
|
||||
image: /img/logo.png
|
||||
hide_title: false
|
||||
hide_table_of_contents: false
|
||||
---
|
||||
|
||||
## Introduction
|
||||
|
||||
The Action Bar is a utility bar for Standard Notes. It provides information about the current note and a few useful actions.
|
||||
|
||||
## Information
|
||||
|
||||
The Action Bar provides the following information:
|
||||
|
||||
- The title of the note
|
||||
- The date and time when the note was created
|
||||
- The date and time when the note was last updated
|
||||
- The approximate number of words in the note (as determined by the spaces)
|
||||
- The approximate number of paragraphs in the note (as determined by line skips)
|
||||
- The number of characters in the note
|
||||
- The approximate read time of the note in minutes (approximated with a read speed of 200 words per minute)
|
||||
|
||||
## Actions
|
||||
|
||||
The Action Bar provides the following actions:
|
||||
|
||||
- Copy the current date to your clipboard in the format `Month/Date/Year, Hour:Minute AM/PM`
|
||||
- Duplicate the note
|
||||
- Copy the contents of the note to your clipboard
|
||||
- Save the contents of the note to a file.
|
||||
- Email the note. This creates and clicks a `mailto:` link with the note's title as the subject of the email and the note's content as the body of the email.
|
||||
|
||||
:::tip
|
||||
The default extension for saving a note is `.txt`. You can also save your files with `.md`, `.html`, and `.tex` extensions. If you frequently export a note with a particular file extension, you can add the extension to the title of the note. For example, naming your note `My Blog Post.md` or `Book.tex` will export the notes as `.md` and `.tex` files, respectively.
|
||||
:::
|
||||
|
||||
## Development
|
||||
|
||||
The Action Bar is written in JavaScript and compiled with Grunt.
|
||||
|
||||
1. Clone the [action-bar](https://github.com/standardnotes/action-bar) repository from GitHub.
|
||||
2. Run `npm install` to install required dependencies.
|
||||
3. Ensure that either the Standard Notes desktop app is available for use or the web app is accessible. Use both locally or with an Extended account (or the extension will not load).
|
||||
4. Follow the instructions [here](/extensions/local-setup) to setup the extension locally.
|
||||
- For the `area` property, use `editor-stack`
|
||||
5. Begin development! Upon making any changes to the code, run `grunt` to build the files to the `dist` folder.
|
||||
|
||||
## License
|
||||
|
||||
The Action Bar is licensed under the GNU [AGPL-3.0-or-later](https://github.com/standardnotes/action-bar/blob/master/LICENSE).
|
||||
|
||||
## Resources
|
||||
|
||||
- [GitHub](https://github.com/standardnotes/action-bar)
|
||||
28
packages/docs/docs/usage/autocomplete-tags.md
Normal file
28
packages/docs/docs/usage/autocomplete-tags.md
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
title: Autocomplete Tags
|
||||
sidebar_label: Autocomplete Tags
|
||||
description: How to use the Standard Notes quick tags extension.
|
||||
keywords:
|
||||
- standard notes
|
||||
- docs
|
||||
- notes app
|
||||
- end-to-end encryption
|
||||
- Template
|
||||
image: /img/logo.png
|
||||
hide_title: false
|
||||
hide_table_of_contents: false
|
||||
---
|
||||
|
||||
Work more efficiently by quickly selecting from a live list of tags while you type. Supports keyboard shortcuts and folders.
|
||||
|
||||
## Development
|
||||
|
||||
The Autocomplete Tags component is written in JavaScript is compiled with Grunt.
|
||||
|
||||
## License
|
||||
|
||||
The Autocomplete Tags component is licensed under the GNU [AGPL-3.0 or Later](https://github.com/sn-extensions/autocomplete-tags/blob/master/LICENSE)
|
||||
|
||||
## Resources
|
||||
|
||||
- [GitHub](https://github.com/sn-extensions/autocomplete-tags)
|
||||
67
packages/docs/docs/usage/bold-editor.md
Normal file
67
packages/docs/docs/usage/bold-editor.md
Normal file
@@ -0,0 +1,67 @@
|
||||
---
|
||||
id: 'bold-editor'
|
||||
title: Bold Editor
|
||||
sidebar_label: Bold Editor
|
||||
description: How to use the Standard Notes bold editor.
|
||||
keywords:
|
||||
- standard notes
|
||||
- docs
|
||||
- notes app
|
||||
- end-to-end encryption
|
||||
- bold editor
|
||||
image: /img/logo.png
|
||||
hide_title: false
|
||||
hide_table_of_contents: false
|
||||
---
|
||||
|
||||
export const Highlight = ({children, color}) => ( <span style={{
|
||||
backgroundColor: color,
|
||||
borderRadius: '2px',
|
||||
color: '#fff',
|
||||
padding: '0.2rem',
|
||||
}}> {children} </span>
|
||||
//#28a745 green
|
||||
//#1877F2 blue
|
||||
//#ffc107 yellow
|
||||
//#dc3545 red
|
||||
);
|
||||
|
||||
## Introduction
|
||||
|
||||
The Bold Editor is a [derived editor](https://standardnotes.com/help/77/what-are-editors) for Standard Notes. It is derived from the [Redactor](https://imperavi.com/redactor). The instructions for adding in-line images, videos, and audio recordings are available [here](https://standardnotes.com/help/71/how-do-i-add-images-to-my-notes).
|
||||
|
||||
### <Highlight color="#1877F2">Warning</Highlight>
|
||||
|
||||
Changing the editor for a note to the Bold Editor will add `html` tags around each line of your text. These tags will be present when you change the editor back to a markdown editor.
|
||||
|
||||
If you want to convert a note from HTML to plaintext, you will need to remove these tags manually or by using a separate text editor such as [VS Code](https://code.visualstudio.com/) or [Atom](https://atom.io) because we do not yet have a "find and replace" feature. If you would like to test the Bold Editor with your note, you can restore a previous copy of the note in the Session History. If you restore an old copy, then any changes made with the Bold Editor will be lost.
|
||||
|
||||
The search feature in the [Minimist editor](https://standardnotes.com/extensions/markdown-minimist) may help you remove the tags manually.
|
||||
|
||||
## Keyboard Shortcuts
|
||||
|
||||
| Result | Shortcut |
|
||||
| :----------------- | :------------------------------- |
|
||||
| Remove format | Ctrl/⌘ + m |
|
||||
| Undo | Ctrl/⌘ + z |
|
||||
| Redo | Ctrl/⌘ + y or Shift + Ctrl/⌘ + z |
|
||||
| Bold | Ctrl/⌘ + b |
|
||||
| Italic | Ctrl/⌘ + i |
|
||||
| Superscript | Ctrl/⌘ + h |
|
||||
| Subscript | Ctrl/⌘ + l |
|
||||
| Link | Ctrl/⌘ + k |
|
||||
| Ordered List | Ctrl/⌘ + Shift + 7 |
|
||||
| Unordered List | Ctrl/⌘ + Shift + 8 |
|
||||
| Outdent | Ctrl/⌘ + [ |
|
||||
| Indent | Ctrl/⌘ + ] |
|
||||
| Normal (Pagagraph) | Ctrl/⌘ + Alt + 0 |
|
||||
| Heading 1 | Ctrl/⌘ + Alt + 1 |
|
||||
| Heading 2 | Ctrl/⌘ + Alt + 2 |
|
||||
| Heading 3 | Ctrl/⌘ + Alt + 3 |
|
||||
| Heading 4 | Ctrl/⌘ + Alt + 4 |
|
||||
| Heading 5 | Ctrl/⌘ + Alt + 5 |
|
||||
| Heading 6 | Ctrl/⌘ + Alt + 6 |
|
||||
|
||||
## Further Resources
|
||||
|
||||
- [GitHub](https://github.com/standardnotes/bold-editor) - Development instructions, license (AGPL-3.0-or-later), and source code.
|
||||
15
packages/docs/docs/usage/code-editor.md
Normal file
15
packages/docs/docs/usage/code-editor.md
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
id: 'code-editor'
|
||||
title: Code Editor
|
||||
sidebar_label: Code Editor
|
||||
description: How to use the Standard Notes code editor.
|
||||
keywords:
|
||||
- standard notes
|
||||
- docs
|
||||
- notes app
|
||||
- end-to-end encryption
|
||||
- code editor
|
||||
image: /img/logo.png
|
||||
hide_title: false
|
||||
hide_table_of_contents: false
|
||||
---
|
||||
56
packages/docs/docs/usage/code-pro.md
Normal file
56
packages/docs/docs/usage/code-pro.md
Normal file
@@ -0,0 +1,56 @@
|
||||
---
|
||||
slug: code-pro
|
||||
id: code-pro
|
||||
title: Code Pro Editor (Beta)
|
||||
sidebar_label: Code Pro Editor
|
||||
description: How to use the Standard Notes Code Pro Editor.
|
||||
keywords:
|
||||
- standard notes
|
||||
- docs
|
||||
- notes app
|
||||
- end-to-end encryption
|
||||
- Code Pro Editor
|
||||
image: /img/logo.png
|
||||
hide_title: false
|
||||
hide_table_of_contents: false
|
||||
---
|
||||
|
||||
Code Pro is a [derived editor](https://standardnotes.com/help/77/what-are-editors) for [Standard Notes](https://standardnotes.com), a free, [open-source](https://standardnotes.com/knowledge/5/what-is-free-and-open-source-software), and [end-to-end encrypted](https://standardnotes.com/knowledge/2/what-is-end-to-end-encryption) notes app.
|
||||
|
||||
Code Pro is a code editor powered by the [Monaco Editor](https://microsoft.github.io/monaco-editor/) (Visual Studio Code). It is meant for writing Markdown and 60 other programming languages.
|
||||
|
||||
Code Pro is not meant to be used on mobile devices.
|
||||
|
||||
## Features
|
||||
|
||||
- Syntax highlighting for Markdown and more than 60 other programming languages
|
||||
- Languages supported: abap, aes, apex, azcli, bat, c, cameligo, clojure, coffeescript, cpp, csharp, csp, css, dart, dockerfile, fsharp, go, graphql, handlebars, hcl, html, ini, java, javascript, json, julia, kotlin, less, lexon, lua, markdown, mips, msdax, mysql, objective-c, pascal, pascaligo, perl, pgsql, php, plaintext, postiats, powerquery, powershell, pug, python, r, razor, redis, redshift, restructuredtext, ruby, rust, sb, scala, scheme, scss, shell, sol, sql, st, swift, systemverilog, tcl, twig, typescript, vb, verilog, xml, yaml
|
||||
- Autocompletion
|
||||
- Intelligent autocompletion for CSS, JavaScript, JSON, Less, Handlebars, HTML, Razor, SCSS, and TypeScript
|
||||
- Sophisticated search and replace
|
||||
- Prettier formatting for CSS, GraphQL, Markdown, HTML, JavaScript, Less, TypeScript, Sass, and Yaml. Built-in formatting for JSON.
|
||||
- Settings: language, font size, tab size (`2` or `4`), theme (light, dark, high contrast, or SN themed), and word wrap (`on`, `off`, and `bounded`)
|
||||
- Per-note settings
|
||||
- Buttons to save and load default settings
|
||||
|
||||
## Keyboard Shortcuts
|
||||
|
||||
Perform these shortcuts with the editor
|
||||
|
||||
| Action | Shortcut |
|
||||
| :-------------------------------------------------------------- | :----------------------------------------------- |
|
||||
| Toggle word wrap between `on` and `off` (bounded is unaffected) | <kbd>Alt</kbd> + <kbd>Z</kbd> |
|
||||
| Format code with Prettier^ | <kbd>Shift</kbd> + <kbd>Alt</kbd> + <kbd>F</kbd> |
|
||||
| Toggle Tab Key Moves Focus (vs tab spacing) | <kbd>Ctrl/⌘</kbd> + <kbd>M</kbd> |
|
||||
|
||||
^ For CSS, GraphQL, Markdown, HTML, JavaScript, Less, TypeScript, Sass, and Yaml. Some languages, such as JSON, have built-in formatters.
|
||||
|
||||
Each time the editor refreshes (e.g., toggling word wrap, formatting code), the editor remembers your position (line number and column) and centers it on the screen if it's not already in focus.
|
||||
|
||||
## Settings
|
||||
|
||||
The settings for each note are saved automatically after they are changed. Loading default settings will sync the note's settings with the default settings and save automatically.
|
||||
|
||||
### Themes
|
||||
|
||||
The Monaco Editor comes with three themes: `vs` (a white/light theme), `vs-dark` (a dark theme like the default theme for VS Code), and `hc-black` (a high contrast dark theme). There is also one more option: `sn-theme`. The `sn-theme` option takes either `vs` or `vs-dark` depending on your system theme and adjusts some of the colors (e.g., link colors) to match the theme. The `sn-theme` is still a work-in-progress.
|
||||
138
packages/docs/docs/usage/filesafe-aws.md
Normal file
138
packages/docs/docs/usage/filesafe-aws.md
Normal file
@@ -0,0 +1,138 @@
|
||||
---
|
||||
slug: filesafe/aws
|
||||
id: filesafe-aws
|
||||
title: FileSafe with Amazon S3
|
||||
sidebar_label: Amazon S3
|
||||
description: How to use Amazon S3 with Standard Notes FileSafe.
|
||||
keywords:
|
||||
- standard notes
|
||||
- docs
|
||||
- notes app
|
||||
- end-to-end encryption
|
||||
- FileSafe
|
||||
- AWS Amazon S3
|
||||
image: /img/logo.png
|
||||
hide_title: false
|
||||
hide_table_of_contents: false
|
||||
---
|
||||
|
||||
## Introduction
|
||||
|
||||
This guide will help you set up your AWS account with an S3 bucket and User to be used by the Standard Notes FileSafe extension.
|
||||
|
||||
## Log In
|
||||
|
||||
Start by logging into your [AWS account](https://console.aws.amazon.com). Make sure to pick your preferred region in the top right corner.
|
||||
|
||||

|
||||
|
||||
Check the [list of regions](https://docs.aws.amazon.com/general/latest/gr/rande.html) and take note of the region code you picked. In the example above I picked **Paris** so my region code is **eu-west-3**.
|
||||
|
||||
## Create the S3 bucket
|
||||
|
||||
In the Services dropdown of the AWS console pick the **S3 storage service** and click on the **Create bucket** button.
|
||||
|
||||
Choose a name for your bucket and select the region you chose before.
|
||||
|
||||

|
||||
|
||||
You can **skip directly to step 3** if you don't want any additional features such as _versioning_ or _logging_ for your bucket.
|
||||
|
||||
In **step 3** make sure to keep **_Block all public access_** selected.
|
||||
|
||||
After confirming your settings you should see your new bucket.
|
||||
|
||||

|
||||
|
||||
## Create the IAM user with the required permissions
|
||||
|
||||
We'll start by creating the read/write policy for the new bucket, then, we'll create a group with that policy and finally create our user and assign it to our group.
|
||||
|
||||
## Create the policy
|
||||
|
||||
In the services dropdown select **IAM** and go to **Policies.** Click on the **Create policy** button and you should see the following screen:
|
||||
|
||||

|
||||
|
||||
Now click on the JSON tab and add the following policy configuration:
|
||||
|
||||
```json
|
||||
{
|
||||
"Version": "2012-10-17",
|
||||
"Statement": [
|
||||
{
|
||||
"Effect": "Allow",
|
||||
"Action": ["s3:ListBucket"],
|
||||
"Resource": ["arn:aws:s3:::<bucket-name>"]
|
||||
},
|
||||
{
|
||||
"Effect": "Allow",
|
||||
"Action": ["s3:PutObject", "s3:GetObject", "s3:DeleteObject"],
|
||||
"Resource": ["arn:aws:s3:::<bucket-name>/*"]
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Make sure to replace **`<bucket-name>`** with the name of the bucket you created in the previous step.
|
||||
|
||||
Click on the **Review policy** button, pick the name for your policy and create the policy.
|
||||
|
||||

|
||||
|
||||
## Create the group
|
||||
|
||||
Back on the **IAM** console pick **Groups** from the side menu and click on **Create New Group.**
|
||||
Choose your group name, click N**ext Step** and pick the policy you created previously.
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
After reviewing your configuration create the group.
|
||||
|
||||

|
||||
|
||||
## Creating the user
|
||||
|
||||
Back on the **IAM** console pick **Users** from the side menu and click on **Add user**.
|
||||
|
||||
Choose a user name and make sure to select **Programmatic access.**
|
||||
|
||||

|
||||
|
||||
On the next screen add our user to the group we just created.
|
||||
|
||||

|
||||
|
||||
You can skip the tags screen and create the user.
|
||||
|
||||
In the success screen make sure to either download the **CSV** or copy the **Access key ID** and **Secret access key** as you won't be able to view the secret access key in the future.
|
||||
|
||||

|
||||
|
||||
## Standard Notes
|
||||
|
||||
In **Standard Notes** pick **Add New** from the **Integrations** section in **FileSafe**.
|
||||
|
||||

|
||||
|
||||
In the **Link Integrations** page pick the **AWS S3** option and fill all the required information.
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
Copy the code generated to **Standard Notes** and you should see the **AWS S3** integration in the app.
|
||||
|
||||

|
||||
|
||||
### Testing the integration
|
||||
|
||||
Simply attach a file to your note to test the integration. The file should be available in **Standard Notes** and in your **S3 bucket** under **FileSafe**:
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
Congratulations! **FileSafe** is now integrated with your **S3 bucket**.
|
||||
55
packages/docs/docs/usage/folders.md
Normal file
55
packages/docs/docs/usage/folders.md
Normal file
@@ -0,0 +1,55 @@
|
||||
---
|
||||
title: Folders
|
||||
sidebar_label: Folders
|
||||
description: How to use the Standard Notes folders extension.
|
||||
keywords:
|
||||
- standard notes
|
||||
- docs
|
||||
- notes app
|
||||
- end-to-end encryption
|
||||
- Template
|
||||
image: /img/logo.png
|
||||
hide_title: false
|
||||
hide_table_of_contents: false
|
||||
---
|
||||
|
||||
## Introduction
|
||||
|
||||
You can use the [Folders](https://standardnotes.com/extensions/folders) extension to create nested folders from your tags with easy drag and drop. Folders also supports [Smart Tags](/usage/tags), which allow you to build custom filters for viewing your notes.
|
||||
|
||||
## Terminology
|
||||
|
||||
The words _tags_ and _folders_ can be used interchangeably in the Standard Notes context. However, when discussing their use on the web and desktop apps, it is helpful to distinguish them. The labels located at the top of the app are referred to as _tags_ and the labels located on the left side of the app are referred to as _folders_.
|
||||
|
||||
When tags are nested inside other tags, the outer/higher level tag is called a _parent_ tag and the inner/lower level tag is called a _child_ tag.
|
||||
|
||||
Nested tags are recorded in a `Parent.Child` format and appear that way on mobile.
|
||||
|
||||
## Usage
|
||||
|
||||
If you add a child tag to a note, the tag's parent tag may or may not be added depending on how you add the child tag.
|
||||
|
||||
If you create a note in a folder (e.g., the **All** folder) and add a child tag using the [Quick Tags](/usage/tags) extension, its parent tag will also be added. If you create a note in the child folder, the child tag will automatically be added to the note, but the tag for the parent folder will not be added.
|
||||
|
||||
For example, if your **Recipes** folder includes the **Cakes** and **Pasta** tags, then there are two main ways to approach adding "Spaghetti Recipe" note to the **Pasta** folder:
|
||||
|
||||
- Create a note in the **Pasta** folder. One tag will be added: **Recipes.Pasta**.
|
||||
- Create the note a folder other than the **Pasta** folder and type "Pasta" into the top input field for tags. Two tags will be added: **Recipes** and **Recipes.Pasta**.
|
||||
|
||||
:::note
|
||||
|
||||
You may need to refresh your app after deleting a folder/tag.
|
||||
|
||||
:::
|
||||
|
||||
## Development
|
||||
|
||||
The Folders Component is written in JavaScript and compiled with Grunt.
|
||||
|
||||
## License
|
||||
|
||||
The source code for the Folders Component is licensed under GNU [AGPL-3.0-or-later](https://github.com/standardnotes/folders-component/blob/master/LICENSE).
|
||||
|
||||
## Resources
|
||||
|
||||
- [GitHub](https://github.com/standardnotes/folders-component)
|
||||
79
packages/docs/docs/usage/general.md
Normal file
79
packages/docs/docs/usage/general.md
Normal file
@@ -0,0 +1,79 @@
|
||||
---
|
||||
slug: /usage
|
||||
id: general
|
||||
title: General Usage
|
||||
sidebar_label: General Usage
|
||||
description: How to use the Standard Notes app.
|
||||
keywords:
|
||||
- standard notes
|
||||
- notes app
|
||||
- end-to-end encryption
|
||||
- usage
|
||||
image: /img/logo.png
|
||||
hide_title: false
|
||||
hide_table_of_contents: false
|
||||
---
|
||||
|
||||
## Keyboard Shortcuts
|
||||
|
||||
### Edit
|
||||
|
||||
| Result | Windows/Linux | Mac |
|
||||
| :-------------------------------- | :--------------- | :------------------ |
|
||||
| Undo | Ctrl + Z | ⌘ + Z |
|
||||
| Redo | Ctrl + Y | ⌘ + Y |
|
||||
| Cut | Ctrl + X | ⌘ + X |
|
||||
| Copy | Ctrl + C | ⌘ + C |
|
||||
| Paste | Ctrl + V | ⌘ + V |
|
||||
| Paste and Match Style\* | Ctrl + Shift + V | ⌘ + Shift + V |
|
||||
| Select All | Ctrl + A | ⌘ + A |
|
||||
| Jump to the beginning of the note | Ctrl + Home | ⌘ + Home or ⌘ + Up |
|
||||
| Jump to the end of the note | Ctrl + End | ⌘ + End or ⌘ + Down |
|
||||
|
||||
\*Paste and Match Style only works with Rich Text Editors such as the Bold and Plus editors
|
||||
|
||||
### View
|
||||
|
||||
| Result | Windows/Linux | Mac |
|
||||
| :--------------------- | :------------------------ | :--------------------- |
|
||||
| Reload | Ctrl + R | ⌘ + R |
|
||||
| Toggle Developer Tools | Ctrl + Shift + I | ⌘ + Shift + I |
|
||||
| Actual Size | Ctrl + 0 | ⌘ + 0 |
|
||||
| Zoom In | Ctrl + Shift + `+` (plus) | ⌘ + Shift + `+` (plus) |
|
||||
| Zoom Out | Ctrl + `-` (minus) | ⌘ + `-` (minus) |
|
||||
| Toggle Full Screen | F11 | F11 |
|
||||
| Hide Menu Bar\* | Alt + M | Alt + M |
|
||||
|
||||
\*The Hide Menu Bar shortcut is available only when not using the Themed Menu Bar (window decoration). To toggle the Themed Menu Bar on Windows and Linux, visit **☰** > View > Themed Menu Bar.
|
||||
|
||||
### Window
|
||||
|
||||
| Result | Windows/Linux | Mac |
|
||||
| :------- | :------------ | :---- |
|
||||
| Minimize | Ctrl + M | ⌘ + M |
|
||||
| Close | Ctrl + W | ⌘ + W |
|
||||
|
||||
### Reserved
|
||||
|
||||
These keyboard shortcuts have not been implemented but are reserved for future use. Developers who are interested in implementing keyboard shortcuts for their extensions should avoid using these shortcuts.
|
||||
|
||||
- Ctrl/⌘ + `T`
|
||||
- Ctrl/⌘ + Shift + `F`
|
||||
- Ctrl/⌘ + Shift + `L`
|
||||
|
||||
## Note Options
|
||||
|
||||
What does it mean to lock or protect a note?
|
||||
|
||||
<!-- Copied from https://standardnotes.com/help/54/what-does-it-mean-to-lock-or-protect-a-note -->
|
||||
|
||||
Here is a list of available options on a note and what they represent:
|
||||
|
||||
| Option | Description |
|
||||
| :---------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| **Pin** | Pinning a note will anchor it to the top of your list of notes, sorted according to the global sort order (specified in your _Options_). |
|
||||
| **Archive** | Archiving a note will stash your note and hide it from your usual interface. Archived notes can be found by choosing the reserved _Archived_ view in the tags panel. Archiving a note does not affect or improve performance, as the note is still saved and loaded, but not displayed in the list of all notes or within a particular tag. Archiving is useful for notes that no longer contain actionable data, but want to be preserved for historical purposes. For example, if a note contains a list of todos, and you've completed all the todos, archiving the note would make sense. |
|
||||
| **Lock** | Locking a note will put it read-only mode, which means it can't be edited or deleted until you unlock it. This is to prevent accidental modification of sensitive notes, like passwords or credentials that aren't likely to change often. |
|
||||
| **Protect** | Protecting a note marks the note as sensitive, and makes it so that additional authentication is required to view the note. The form of authentication used depends on your configuration. You will be asked to authenticate with your passcode or biometrics (mobile) if you have that configured. If you do not have a passcode or biometrics configured, you will be asked to authenticate with your account password. If neither of those are configured and there is no protection source available, the protected action will proceed without authentication. In addition, protecting a note will automatically hide its preview in your list of notes. |
|
||||
| **Preview** | On web and desktop, selecting the Preview option will toggle whether to hide or show the note preview in the list of notes. You can hide previews for a particular note if you'd like to conserve vertical space in your list of notes, or to hide sensitive data. However, we recommend _Protecting_ a note if you'd like to hide sensitive information. |
|
||||
| **Move to Trash** | Moving a note to the trash will mark the note as deleted, and remove it from your interface. However, your note will still exist in your Trash, which you can access from your list of _Views_. From the trash, you can restore the note, or choose to delete it permanently. You can also empty the entirety of your trash by choosing **Options → Empty Trash** from the note editor panel. |
|
||||
30
packages/docs/docs/usage/github-push.md
Normal file
30
packages/docs/docs/usage/github-push.md
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
slug: github-push
|
||||
id: github-push
|
||||
title: GitHub Push
|
||||
sidebar_label: GitHub Push
|
||||
description: How to use the Standard Notes GitHub Push extension.
|
||||
keywords:
|
||||
- standard notes
|
||||
- docs
|
||||
- notes app
|
||||
- end-to-end encryption
|
||||
- github push
|
||||
image: /img/logo.png
|
||||
hide_title: false
|
||||
hide_table_of_contents: false
|
||||
---
|
||||
|
||||
The GitHub Push Action Extension pushes a note to a public or private repository. You can choose a directory, extension and commit message, as well as which repository to push to.
|
||||
|
||||
Required permissions for public repo access:
|
||||
|
||||
- public_repo
|
||||
|
||||

|
||||
|
||||
Required permissions for private repo access:
|
||||
|
||||
- repo
|
||||
|
||||

|
||||
122
packages/docs/docs/usage/markdown-basic.md
Normal file
122
packages/docs/docs/usage/markdown-basic.md
Normal file
@@ -0,0 +1,122 @@
|
||||
---
|
||||
id: 'markdown-basic'
|
||||
title: Markdown Basic Editor
|
||||
sidebar_label: Markdown Basic
|
||||
description: How to use the Standard Notes Markdown Basic editor.
|
||||
keywords:
|
||||
- standard notes
|
||||
- docs
|
||||
- notes app
|
||||
- end-to-end encryption
|
||||
- markdown basic
|
||||
image: /img/logo.png
|
||||
hide_title: false
|
||||
hide_table_of_contents: false
|
||||
---
|
||||
|
||||
## Introduction
|
||||
|
||||
Markdown Basic is a [custom editor](https://standardnotes.com/help/77/what-are-editors) for Standard Notes. It uses Markdown-It to parse Markdown.
|
||||
|
||||
## Features
|
||||
|
||||
- Markdown via Markdown-It
|
||||
- Syntax Highlighting via Highlight.js
|
||||
- Optional split pane view
|
||||
- Task Lists
|
||||
- Tables
|
||||
- Footnotes
|
||||
- Inline external images
|
||||
|
||||
## Installation
|
||||
|
||||
1. Register for an account at Standard Notes using the [Desktop App](https://standardnotes.com/download) or [Web app](https://app.standardnotes.org). Remember to use a strong and memorable password.
|
||||
2. Sign up for [Standard Notes Extended](https://dashboard.standardnotes.com/member). Then, follow the instructions [here](https://standardnotes.com/help/29/how-do-i-install-extensions-once-i-ve-signed-up-for-extended) or continue.
|
||||
3. Click **Extensions** in the lower left corner.
|
||||
4. Under **Repository**, find **Markdown Basic**.
|
||||
5. Click **Install**.
|
||||
6. Close the **Extensions** pop-up.
|
||||
7. At the top of your note, click **Editor**, then click **Markdown Basic**.
|
||||
8. Click **Continue**.
|
||||
|
||||
After you have installed the editor on the web or desktop app, it will automatically sync to your [mobile app](https://standardnotes.com/download) after you sign in.
|
||||
|
||||
## Style Guide
|
||||
|
||||
| Result | Markdown |
|
||||
| :----------------- | :------------------------------------------- |
|
||||
| **Bold** | \*\*text\*\* or \_\_text\_\_ |
|
||||
| _Emphasize_ | \*text\* or \_text\_ |
|
||||
| ~~Strike-through~~ | \~\~text\~\~ |
|
||||
| Link | [text]\(http://) |
|
||||
| Image | ![text]\(http://) |
|
||||
| `Inline Code` | \`code\` |
|
||||
| Code Block | \`\`\`language <br></br>code <br></br>\`\`\` |
|
||||
| Unordered List | \* item <br></br> - item <br></br> + item |
|
||||
| Ordered List | 1. item |
|
||||
| Task List | `- [ ] Task` or `- [x] Task` |
|
||||
| Blockquote | \> quote |
|
||||
| H1 | # Heading |
|
||||
| H2 | ## Heading |
|
||||
| H3 | ### Heading |
|
||||
| H4 | #### Heading |
|
||||
| Section Breaks | `---` or `***` |
|
||||
|
||||
## Tables
|
||||
|
||||
Colons can be used to align columns.
|
||||
Copy this into your editor to see what it renders:
|
||||
|
||||
```
|
||||
| Tables | Are | Cool |
|
||||
| ---------------- | :-----------: | --------: |
|
||||
| col 2 is | centered | \$149 |
|
||||
| col 3 is | right-aligned | \$4.17 |
|
||||
| privacy is | neat | \$2.48 |
|
||||
| rows don't need to |be pretty| what? |
|
||||
| the last line is | unnecessary | really?
|
||||
| one more | row | Yay! 😆
|
||||
```
|
||||
|
||||
## Footnotes
|
||||
|
||||
The Markdown Basic editor supports footnotes. The footnote links do not work properly on mobile. Copy this into your note to see how they're used:
|
||||
|
||||
```md
|
||||
You can create footnote references that are short[^1] or long.[^2]
|
||||
You can also create them inline.^[which may be easier,
|
||||
since you don't need to pick an identifier and move down to type the note]
|
||||
The footnotes are automatically numbered at the bottom of your note,
|
||||
but you'll need to manually number your superscripts.
|
||||
Make sure to count your variable[^variable] footnotes.[^5]
|
||||
|
||||
[^1]: Here's a footnote.
|
||||
[^2]: Here’s a footnote with multiple blocks.
|
||||
|
||||
Subsequent paragraphs are indented to show that they belong to the previous footnote.
|
||||
|
||||
{ eight spaces for some code }
|
||||
|
||||
The whole paragraph can be indented, or just the first
|
||||
line. In this way, multi-paragraph footnotes work like
|
||||
multi-paragraph list items.
|
||||
|
||||
This paragraph won’t be part of the footnote, because it
|
||||
isn’t indented.
|
||||
|
||||
[^variable]: The variable footnote is the fourth footnote.
|
||||
[^5]: This is the fifth footnote.
|
||||
```
|
||||
|
||||
#### Not yet available:
|
||||
|
||||
- KaTeX
|
||||
- Printing
|
||||
- Custom Font Families
|
||||
- Custom Font Sizes
|
||||
- Superscript
|
||||
- Subscript
|
||||
|
||||
## Further Resources
|
||||
|
||||
- [GitHub](https://github.com/sn-extensions/markdown-basic/) - Development instructions, license (AGPL-3.0-or-later), and source code.
|
||||
98
packages/docs/docs/usage/markdown-math.md
Normal file
98
packages/docs/docs/usage/markdown-math.md
Normal file
@@ -0,0 +1,98 @@
|
||||
---
|
||||
id: 'markdown-math'
|
||||
title: Markdown Math
|
||||
sidebar_label: Markdown Math
|
||||
description: How to use the Standard Notes Markdown Math editor.
|
||||
keywords:
|
||||
- standard notes
|
||||
- docs
|
||||
- notes app
|
||||
- end-to-end encryption
|
||||
- markdown math
|
||||
image: /img/logo.png
|
||||
hide_title: false
|
||||
hide_table_of_contents: false
|
||||
---
|
||||
|
||||
## Introduction
|
||||
|
||||
The Markdown Math editor (aka Math Editor) is a [derived editor](https://standardnotes.com/help/77/what-are-editors) for Standard Notes. It is derived from the [Upmath](https://github.com/parpalak/upmath.me) editor by [Roman Parpalak](https://github.com/parpalak), but uses [KaTeX](https://katex.org) for client-side rendering. Because the original Upmath editor and the Markdown Math editor render math using slightly different methods, some TeX libraries and their environments may be available in the Upmath editor but not in the Markdown Math editor. For a full list of functions supported by KaTeX, please see the [official KaTeX documentation](https://katex.org/docs/supported.html).
|
||||
|
||||
## Features
|
||||
|
||||
- $\LaTeX$ math rendering via [$\KaTeX$](https://katex.org)
|
||||
- Markdown with side-by-side live rendering
|
||||
- Option to view the HTML source of the rendered markdown
|
||||
- Option to overwrite the note text with the contents of a text file on local storage
|
||||
- Option to download the plain note text as a text file to save on local storage
|
||||
- Option to download the HTML source of the rendered text as a text file to save on local storage
|
||||
|
||||
## Style Guide
|
||||
|
||||
| Result | Markdown |
|
||||
| :----------------- | :------------------------------------------- |
|
||||
| **Bold** | \*\*text\*\* or \_\_text\_\_ |
|
||||
| _Emphasize_ | \*text\* or \_text\_ |
|
||||
| ~~Strike-through~~ | \~\~text\~\~ |
|
||||
| Link | [text]\(http://) |
|
||||
| Image | ![text]\(http://) |
|
||||
| `Inline Code` | \`code\` |
|
||||
| Code Block | \`\`\`language <br></br>code <br></br>\`\`\` |
|
||||
| Unordered List | \* item <br></br> - item <br></br> + item |
|
||||
| Ordered List | 1. item |
|
||||
| Blockquote | \> quote |
|
||||
| H1 | # Heading |
|
||||
| H2 | ## Heading |
|
||||
| H3 | ### Heading |
|
||||
| H4 | #### Heading |
|
||||
| Section Breaks | `---` or `***` |
|
||||
|
||||
## Tables
|
||||
|
||||
Colons can be used to align columns.
|
||||
Copy this into your editor to see what it creates:
|
||||
|
||||
```
|
||||
| Tables | Are | Cool |
|
||||
| ---------------- | :-----------: | --------: |
|
||||
| col 2 is | centered | \$149 |
|
||||
| col 3 is | right-aligned | \$4.17 |
|
||||
| privacy is | neat | \$2.48 |
|
||||
| rows don't need to |be pretty| what? |
|
||||
| the last line is | unnecessary | really?
|
||||
| one more | row | Yay! 😆
|
||||
```
|
||||
|
||||
## $\KaTeX$
|
||||
|
||||
The Markdown Math editor requires double dollar signs. For example, `$$\int_0^\infty f(x)dx$$` or `$$\pi$$` should yield $$\int_0^\infty f(x)dx$$ and $$\pi$$.
|
||||
|
||||
To use Display Mode in the KaTeX, use double dollar signs on new lines. For example,
|
||||
|
||||
```latex
|
||||
Text
|
||||
|
||||
$$
|
||||
\int_0^\infty f(x)dx
|
||||
$$
|
||||
|
||||
More Text
|
||||
```
|
||||
|
||||
should yield:
|
||||
|
||||
Text
|
||||
|
||||
$$
|
||||
\int_0^\infty f(x)dx
|
||||
$$
|
||||
|
||||
More Text
|
||||
|
||||
### $\KaTeX$ Tables
|
||||
|
||||
Please see [here](https://katex.org/docs/supported.html) and [here](https://katex.org/docs/support_table.html) for tables of all the functions and symbols that $\KaTeX$ supports.
|
||||
|
||||
## Further Resources
|
||||
|
||||
- [GitHub](https://github.com/sn-extensions/math-editor) - Development instructions, license (AGPL-3.0-or-later), and source code.
|
||||
14
packages/docs/docs/usage/markdown-minimist.md
Normal file
14
packages/docs/docs/usage/markdown-minimist.md
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
id: 'markdown-minimist'
|
||||
title: Markdown Minimist Editor
|
||||
sidebar_label: Markdown Minimist
|
||||
description: How to use the Standard Notes Markdown Minimist editor.
|
||||
- standard notes
|
||||
- docs
|
||||
- notes app
|
||||
- end-to-end encryption
|
||||
- markdown minimist
|
||||
image: /img/logo.png
|
||||
hide_title: false
|
||||
hide_table_of_contents: false
|
||||
---
|
||||
125
packages/docs/docs/usage/markdown-pro.md
Normal file
125
packages/docs/docs/usage/markdown-pro.md
Normal file
@@ -0,0 +1,125 @@
|
||||
---
|
||||
id: 'markdown-pro'
|
||||
title: Markdown Pro
|
||||
sidebar_label: Markdown Pro
|
||||
description: How to use the Standard Notes Markdown Pro editor.
|
||||
keywords:
|
||||
- standard notes
|
||||
- docs
|
||||
- notes app
|
||||
- end-to-end encryption
|
||||
- markdown pro
|
||||
image: /img/logo.png
|
||||
hide_title: false
|
||||
hide_table_of_contents: false
|
||||
---
|
||||
|
||||
## Introduction
|
||||
|
||||
The Markdown Pro editor (aka Advanced Markdown Editor) is a [derived editor](https://standardnotes.com/help/77/what-are-editors) for Standard Notes. It is derived from the [Easy Markdown Editor](https://github.com/Ionaru/easy-markdown-editor) which uses [Codemirror](https://github.com/codemirror/codemirror).
|
||||
|
||||
## Features
|
||||
|
||||
- Markdown with live side-by-side rendering
|
||||
- Three views: Edit, Split, and Preview
|
||||
- Keyboard Shortcuts
|
||||
- Inline styling with HTML/CSS
|
||||
|
||||
## Keyboard Shortcuts
|
||||
|
||||
| Result | Shortcut |
|
||||
| :------------------ | :--------------- |
|
||||
| Toggle Preview | Ctrl/⌘ + P |
|
||||
| Toggle Side-by-Side | Ctrl/⌘ + Alt + P |
|
||||
|
||||
## Style Guide
|
||||
|
||||
| Result | Markdown | Shortcut |
|
||||
| :----------------- | :---------------------------------------- | :---------------------------------- |
|
||||
| **Bold** | \*\*text\*\* or \_\_text\_\_ | Ctrl/⌘ + B |
|
||||
| _Emphasize_ | \*text\* or \_text\_ | Ctrl/⌘ + I |
|
||||
| ~~Strike-through~~ | \~text\~ or \~\~text\~\~ | ❔ |
|
||||
| Link | [text]\(http://) | Ctrl/⌘ + K |
|
||||
| Image | ![text]\(http://) | Ctrl/⌘ + Alt + I |
|
||||
| `Inline Code` | \`code\` | ❔ |
|
||||
| `Code Block` | \`\`\`code\`\`\` | Ctrl/⌘ + Alt + C or tab or 7 spaces |
|
||||
| Unordered List | \* item <br></br> - item <br></br> + item | Ctrl/⌘ + L |
|
||||
| Ordered List | 1. item | Ctrl/⌘ + Alt + L |
|
||||
| Remove List | | Ctrl/⌘ + E |
|
||||
| Blockquote | \> quote | Ctrl + ' or Ctrl + " |
|
||||
| H1 | # Heading | Ctrl/⌘ + H |
|
||||
| H2 | ## Heading | Ctrl/⌘ + H (×2) |
|
||||
| H3 | ### Heading | Ctrl/⌘ + H (×3) |
|
||||
|
||||
### Lists
|
||||
|
||||
Enter a space in front of the asterisk or number to indent the list.
|
||||
Copy this into your editor to see what it creates:
|
||||
|
||||
```
|
||||
1. First ordered list item
|
||||
2. Another item
|
||||
* One space for unordered sub-list item
|
||||
- One space for another sub-list item
|
||||
* Press tab for sub-sub-list item
|
||||
1. Two tabs for sub-sub-sub list item 😀
|
||||
1. Actual numbers don't matter, just that it's a number
|
||||
1. One space for ordered sub-list item
|
||||
1. One space for another sub-list item
|
||||
* Press Tab
|
||||
1. One tab
|
||||
* Two tabs. You got it! 👏
|
||||
4. And another item. Success! 🎉
|
||||
```
|
||||
|
||||
## Tables
|
||||
|
||||
Colons can be used to align columns.
|
||||
Copy this into your editor to see what it creates:
|
||||
|
||||
```
|
||||
| Tables | Are | Cool |
|
||||
| ---------------- | :-----------: | --------: |
|
||||
| col 2 is | centered | \$149 |
|
||||
| col 3 is | right-aligned | \$4.17 |
|
||||
| privacy is | neat | \$2.48 |
|
||||
| rows don't need to |be pretty| what? |
|
||||
| the last line is | unnecessary | really?
|
||||
| one more | row | Yay! 😆
|
||||
```
|
||||
|
||||
## Inline Styling
|
||||
|
||||
You can personalize the styling of the editor with inline HTML/CSS. For example, if you want to use monospace font for the editor, add this to your note, and replace `var(--sn-stylekit-monospace-font)` with your preferred font-families:
|
||||
|
||||
```html
|
||||
<style>
|
||||
.CodeMirror {
|
||||
font-family: var(--sn-stylekit-monospace-font);
|
||||
}
|
||||
</style>
|
||||
```
|
||||
|
||||
If you want to use monospace font for the preview, adjust the styles for `.editor-preview`:
|
||||
|
||||
```html
|
||||
<style>
|
||||
.CodeMirror,
|
||||
.editor-preview {
|
||||
font-family: var(--sn-stylekit-monospace-font);
|
||||
}
|
||||
</style>
|
||||
```
|
||||
|
||||
#### Not yet available:
|
||||
|
||||
- Footnotes
|
||||
- Superscript
|
||||
- Subscript
|
||||
- Syntax Highlighting
|
||||
- Printing
|
||||
- Default Custom Fonts
|
||||
|
||||
## Further Resources
|
||||
|
||||
- [GitHub](https://github.com/standardnotes/markdown-pro) - Development instructions, license (AGPL-3.0-or-later), and source code.
|
||||
17
packages/docs/docs/usage/plus-editor.md
Normal file
17
packages/docs/docs/usage/plus-editor.md
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
id: 'plus-editor'
|
||||
title: Plus Editor
|
||||
sidebar_label: Plus Editor
|
||||
description: How to use the Standard Notes Plus editor.
|
||||
keywords:
|
||||
- standard notes
|
||||
- docs
|
||||
- notes app
|
||||
- end-to-end encryption
|
||||
- plus editor
|
||||
image: /img/logo.png
|
||||
hide_title: false
|
||||
hide_table_of_contents: false
|
||||
---
|
||||
|
||||
## Style Guide
|
||||
38
packages/docs/docs/usage/secure-spreadsheets.md
Normal file
38
packages/docs/docs/usage/secure-spreadsheets.md
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
id: 'secure-spreadsheets'
|
||||
title: Secure Spreadsheets Editor
|
||||
sidebar_label: Secure Spreadsheets
|
||||
description: How to use the Standard Notes secure spreadsheets editor.
|
||||
keywords:
|
||||
- standard notes
|
||||
- docs
|
||||
- notes app
|
||||
- end-to-end encryption
|
||||
- Template
|
||||
image: /img/logo.png
|
||||
hide_title: false
|
||||
hide_table_of_contents: false
|
||||
---
|
||||
|
||||
## Introduction
|
||||
|
||||
Secure Spreadsheets is a [derived editor](https://standardnotes.com/help/77/what-are-editors). It is derived from [Kendo UI Professional](https://github.com/telerik/kendo-ui-core#features-of-kendo-ui-core).
|
||||
|
||||
A demo of the Secure Spreadsheets editor is available at [standardnotes.org/demo](https://standardnotes.com/demo). To use Secure Spreadsheets with Standard Notes, please sign up for [Standard Notes Extended](https://standardnotes.com/extensions) and install it by following the instructions described [here](https://standardnotes.com/help/29/how-do-i-install-extensions-once-i-ve-signed-up-for-extended).
|
||||
|
||||
## Export
|
||||
|
||||
You can export your spreadsheet as an `.xlsx` to use with Libre Office, Microsoft Office, Google Sheets, or other compatible program by clicking the download icon in the top left of the spreadsheets.
|
||||
|
||||
You can also export your spreadsheet as a `.pdf` file. The download menu has the following options:
|
||||
|
||||
- Export: Entire Workbook, Active Sheet, or Selection.
|
||||
- Paper size: A2, A3, A4, A5, B3, B4, B5, Folio, Legal, Letter, Tabloid, and Executive.
|
||||
- Margins: Normal and Wide.
|
||||
- Orientation: Portrait or Landscape.
|
||||
- With or without Guidelines (grid lines).
|
||||
- Center: Horizontally, Vertically, Neither, or Both.
|
||||
|
||||
## License
|
||||
|
||||
The Secure Spreadsheets editor is derived from [Kendo UI Professional](https://github.com/telerik/kendo-ui-core#features-of-kendo-ui-core), which is not released as free and open-source software. To prevent vendor lock-in, you can easily [export your spreadsheet](#export) as an `.xlsx` or `.pdf` file.
|
||||
29
packages/docs/docs/usage/simple-task-editor.md
Normal file
29
packages/docs/docs/usage/simple-task-editor.md
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
id: 'task-editor'
|
||||
title: Simple Task Editor
|
||||
sidebar_label: Task Editor
|
||||
description: How to use the Standard Notes simple task editor.
|
||||
keywords:
|
||||
- standard notes
|
||||
- docs
|
||||
- notes app
|
||||
- end-to-end encryption
|
||||
- simple task editor
|
||||
image: /img/logo.png
|
||||
hide_title: false
|
||||
hide_table_of_contents: false
|
||||
---
|
||||
|
||||
## Add Task
|
||||
|
||||
To add a task, enter the task into the box at the top then press enter/return.
|
||||
|
||||
## Rearrange Tasks
|
||||
|
||||
To rearrange tasks on the desktop or web apps, click on the task's checkbox then drag it up or down.
|
||||
|
||||
Rearranging tasks is currently unavailable on mobile.
|
||||
|
||||
## Delete Task
|
||||
|
||||
To delete a task, delete the task's text, then press enter/return. 😄
|
||||
168
packages/docs/docs/usage/tags.md
Normal file
168
packages/docs/docs/usage/tags.md
Normal file
@@ -0,0 +1,168 @@
|
||||
---
|
||||
title: Smart Views
|
||||
sidebar_label: Smart Views
|
||||
description: How to use the Standard Notes Smart Views.
|
||||
keywords:
|
||||
- standard notes
|
||||
- docs
|
||||
- notes app
|
||||
- end-to-end encryption
|
||||
- tags
|
||||
- views
|
||||
- filters
|
||||
image: /img/logo.png
|
||||
hide_title: false
|
||||
hide_table_of_contents: false
|
||||
---
|
||||
|
||||
Questions:
|
||||
|
||||
- How do I view a list of untagged notes (and create other dynamic filters)?
|
||||
|
||||
## Introduction
|
||||
|
||||
“Smart Views" are user-made dynamic folders that organize your notes according to predefined filters.
|
||||
|
||||
For example, suppose you wanted to see a list of all notes whose title starts with “Foo”. You can do this by creating a smart tag.
|
||||
|
||||
## Creating A Smart View
|
||||
|
||||
1. Create a new folder by clicking the + icon.
|
||||
1. Copy and paste the following Smart View syntax, as the folder name:
|
||||
|
||||
```
|
||||
!["Foo Notes", "title", "startsWith", "Foo"]]
|
||||
```
|
||||
|
||||
1. Press enter on your keyboard.
|
||||
|
||||
At this point, you should see an item called "Foo notes" under **Views**. You can select this item to view a list of your notes that start with “Foo”.
|
||||
|
||||
## Understanding The Smart View Syntax
|
||||
|
||||
Smart Views can be used to construct any kind of simple query. The components of the smart tag syntax are as follows:
|
||||
|
||||
`!`: Indicates the start of a Smart View
|
||||
|
||||
`[...]`: A JSON array
|
||||
|
||||
- The first item in the JSON array is the display label.
|
||||
- The second item is the note attribute you are targeting.
|
||||
- The third is the comparison operator.
|
||||
- And the last is the expected value.
|
||||
|
||||
## More Examples
|
||||
|
||||
Show all notes that have tags that start with the letter b:
|
||||
|
||||
```
|
||||
!["B-tags", "tags", "includes", ["title", "startsWith", "b"]]
|
||||
```
|
||||
|
||||
Show all notes that have tags `Blog` or `Ideas`:
|
||||
|
||||
```
|
||||
!["Blog or Ideas", "tags", "includes", ["title", "in", ["Blog", "Ideas"]]]
|
||||
```
|
||||
|
||||
Show notes that are pinned:
|
||||
|
||||
```
|
||||
!["Pinned", "pinned", "=", true]
|
||||
```
|
||||
|
||||
Show notes that are not pinned:
|
||||
|
||||
```
|
||||
!["Not Pinned", "pinned", "=", false]
|
||||
```
|
||||
|
||||
Show notes that have been updated within the last day:
|
||||
|
||||
```
|
||||
!["Last Day", "updated_at", ">", "1.days.ago"]
|
||||
```
|
||||
|
||||
Show notes whose text has more than 500 characters:
|
||||
|
||||
```
|
||||
!["Long", "text.length", ">", 500]
|
||||
```
|
||||
|
||||
### Compound Predicates
|
||||
|
||||
You can use compound and/or predicates to combine multiple queries. For example, to show all notes that are pinned and locked:
|
||||
|
||||
```
|
||||
!["Pinned & Locked", "ignored", "and", [["pinned", "=", true], ["locked", "=", true]]]
|
||||
```
|
||||
|
||||
Show all notes that are protected or pinned:
|
||||
|
||||
```
|
||||
!["Protected or Pinned", "ignored", "or", [["content.protected", "=", true], ["pinned", "=", true]]]
|
||||
```
|
||||
|
||||
Show all notes that have tags `Blog` or `Ideas`.
|
||||
|
||||
```
|
||||
!["Blog Scheduled or Published", "ignored", "or", [["tags", "includes", ["title", "=", "Blog"]], ["tags", "includes", ["title", "=", "Ideas"]]]]
|
||||
```
|
||||
|
||||
You can also use the not predicate to negate an expression. For example, to show all notes that do not have the `Unread` tag:
|
||||
|
||||
```
|
||||
!["Read", "tags", "not", ["tags", "includes", ["title", "=", "Unread"]]]
|
||||
```
|
||||
|
||||
The not predicate can be combined with the compound operators. For example, to show all notes that have the Blog tag but not the Ideas one:
|
||||
|
||||
```
|
||||
!["Blog Unpublished", "ignored", "and", [["tags", "includes", ["title", "=", "Blog"]], ["", "not", ["tags", "includes", ["title", "=", "Ideas"]]]]]
|
||||
```
|
||||
|
||||
## Attributes
|
||||
|
||||
Here are a list of note attributes that can be queried:
|
||||
|
||||
- `title`
|
||||
- `title.length`
|
||||
- `text`
|
||||
- `text.length`
|
||||
- `tags`
|
||||
- `updated_at`
|
||||
- `created_at`
|
||||
- `pinned`
|
||||
- `content.protected`
|
||||
|
||||
If constructing a filter that queries tags, you can use the following tag attributes:
|
||||
|
||||
- `title`
|
||||
- `title.length`
|
||||
- `updated_at`
|
||||
- `created_at`
|
||||
|
||||
Note that Smart Views always query notes, and so the query you're building refers to notes firstmost. You reference tags by referring to a note's tags:
|
||||
|
||||
```
|
||||
!["B-tags", "tags", "includes", ["title", "startsWith", "b"]]
|
||||
```
|
||||
|
||||
Get all notes whose tags includes a title that starts with the letter b.
|
||||
|
||||
## Operators
|
||||
|
||||
Here are a list of operators that can be used to construct filters. The operator is typically the third parameter in the filter syntax.
|
||||
|
||||
- `=`
|
||||
- `>`
|
||||
- `<`
|
||||
- `>=`
|
||||
- `<=`
|
||||
- `startsWith`
|
||||
- `in` ("whether a value is in a list of values")
|
||||
- `includes` ("includes sub filter")
|
||||
- `matches` (regex pattern)
|
||||
- `and` (for compound filters)
|
||||
- `or` (for compound filters)
|
||||
- `not` (negates the expected value, attribute is ignored)
|
||||
15
packages/docs/docs/usage/token-vault.md
Normal file
15
packages/docs/docs/usage/token-vault.md
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
id: 'token-vault'
|
||||
title: Token Vault Editor
|
||||
sidebar_label: Token Vault
|
||||
description: How to use the Standard Notes Token Vault extension.
|
||||
keywords:
|
||||
- standard notes
|
||||
- docs
|
||||
- notes app
|
||||
- end-to-end encryption
|
||||
- Template
|
||||
image: /img/logo.png
|
||||
hide_title: false
|
||||
hide_table_of_contents: false
|
||||
---
|
||||
15
packages/docs/docs/usage/vim-editor.md
Normal file
15
packages/docs/docs/usage/vim-editor.md
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
id: 'vim-editor'
|
||||
title: Vim Editor
|
||||
sidebar_label: Vim Editor
|
||||
description: How to use the Standard Notes vim editor.
|
||||
keywords:
|
||||
- standard notes
|
||||
- docs
|
||||
- notes app
|
||||
- end-to-end encryption
|
||||
- vim editor
|
||||
image: /img/logo.png
|
||||
hide_title: false
|
||||
hide_table_of_contents: false
|
||||
---
|
||||
Reference in New Issue
Block a user