-
Anchors
This feature used to be called Bookmarks (as it is the official name in the editor we are using), but in order not to collide with the concept of Bookmarks, we have renamed it to Anchors.
Anchors allows creating links to a certain part of a note, such as referencing a particular heading or section within a note.
This feature was introduced in TriliumNext v0.94.0 and augmented in v0.103.0 to support linking across notes.
-
Automatic replacements
As you type in a text note, certain character sequences are replaced with the typographic symbol they represent. Typing (c) gives you ©, ... gives you …, and "quote" gives you “quote”.
These replacements are not applied inside code blocks or inline code, and pasted text is never affected, only text you type. If you have pasted a code snippet, or written one inside a code block, its characters are left exactly as they are.
Once an automatic replacement takes place, it can be undone by:
-
Block quotes & admonitions
As the name suggests, block quotes can be useful to cite one or more paragraphs.
To create a block quote, press from the Formatting toolbar. It's also possible to type >, followed by a space to create one (but only if the cursor is at the beginning of a line).
Inside the quote block, other block items can be inserted such as tables, images, or even other block quotes or admonitions.
Admonitions are a way to highlight information to the reader.
-
Block references
Block references are links to a block of a text note, such as a paragraph, a heading, a list item or a table, or to a range of consecutive blocks. A block reference can be pasted in another note as a link, or turned into an Include Note that shows only the referenced blocks.
Inside a Content tabs block, the reference points to the whole block. To link to a single tab, use Copy reference to this tab in the More actions menu of the tabs block instead.
-
Collapsible blocks
Collapsible blocks are sections of content that can be expanded and collapsed, letting you hide detail until it's needed.
A collapsible block consists of:
You can use the arrow keys to move freely with the cursor between the summary line, the block's body, and the text around the block.
In the formatting bar, go to Insert → Collapsible Block.
Place multiple collapsible blocks one after another to create an accordion, where each block can be expanded or collapsed independently.
-
Content language & Right-to-left support
The content language determines:
To set the language of the content of a Text note, there is a language selector in the Status bar indicated by a icon.
By default, no language is configured. To configure them, go to Options → Language & Region → Content languages, or select the Configure languages... item when setting the language. The enabled languages are listed by their native names, sorted alphabetically, which is also the order the language selector shows them in. Here you can:
-
Content tabs
Content tabs group several titled panels of content into one block that shows a single panel at a time. They suit content that comes in variants (such as installation steps for each operating system or the same snippet in several programming languages).
A tabs block consists of:
A new block contains two tabs, named “Tab 1” and “Tab 2”. Any content that was selected prior to inserting the tabs will be moved into the first tab. The title of the first tab is selected, so typing replaces it.
-
Cut to subnote
When editing a document that becomes too large, you can split it into sub-notes:
Trilium can automate this process. Select some text within the note, and in the selection toolbar, click the scissors icon for the "cut & pasted selection to sub-note" action. The heading is automatically detected and the new sub-note is named accordingly. You can also assign a keyboard shortcut for this action. This functionality is available through the block toolbar icon.
-
Developer-specific formatting
Inline code formats text using a monospace font to indicate technical content in a sentence such as code, paths, etc.
Example of inline code being used to illustrate file system paths as well as shell commands (git in this case).
To insert an inline code:
Code blocks display a snippet of code as a dedicated block:
A code block with JavaScript syntax highlight enabled.
Note that these are not meant for very large portions of code. Use the dedicated Code note type instead.
-
Footnotes
Footnotes are a good place to insert references to a paragraph or details that are displayed at the bottom of the note.
-
Format Painter
The Format Painter is a feature in text notes that allows users to copy the formatting of text (such as bold, italic, Strikethrough, etc.) and apply it to other parts of the document. It helps maintain consistent formatting and accelerates the creation of rich content.
Click the text that you want to copy the formatting from and use the Copy formatting toolbar button () to copy the style. Then select the target text with your mouse, or click a word, to apply the formatting.
-
Formatting toolbar
Trilium allows two different editing experiences for text notes, based on your preference.
The type of formatting toolbar can be changed by going to Options and then looking for the Text Notes section. In it, look for the Formatting toolbar category.
The floating bar is a more minimalist option, in which the formatting is hidden behind two different popups.
The first popup is the block-level popup.
-
General formatting
Trilium provides headings to define sections within text. Headings are numbered from 2 to 6.
The reason why Heading 1 is missing from the list is that it is being reserved for the title of note.
To turn a heading back into a normal text, select Paragraph from the list.
Apart from using the UI, it is also possible to quickly insert headings using the Markdown-like shortcuts:
One way to highlight a portion of text is to increase the size of the font.
-
Highlights list
This page has been relocated to Outline tab.
-
Images
Trilium supports storing and displaying images. Supported formats are PNG, JPEG, GIF, BMP, WebP, AVIF and SVG.
An image can be uploaded in the form of note's attachment or as a standalone note placed into the note tree. Its reference can be copied into a text note, in order to display it in the text itself.
To add an image to the note:
Where the image goes depends on the cursor. In an empty paragraph, the image is displayed on a line of its own.
-
In-editor AI assistant
The AI assistant works on the text you are already writing: select a passage and have it rewritten, translated or turned into a table, or ask for new content at the cursor. Unlike the AI chat, it does not open a conversation window, the result is previewed in place and only enters the note when you accept it.
The assistant is only available once at least one provider is configured in Options → AI / LLM, with at least one model selected for it. Until then the toolbar entry is not shown at all.
-
Include Note
Text notes can "include" another note as a read-only widget or an interactive widget, depending on the type of note.
This can be useful for e.g. including a dynamically generated chart (from scripts & "render HTML" note) or other more advanced use cases.
In the Formatting toolbar, look for the button. There is also a keyboard shortcut defined for it but it is not allocated by default.
-
Insert buttons
Press the button in the Formatting toolbar to reveal special inserable items and blocks such as symbols, Math expressions and separators.
See the dedicated Anchors section.
Choose New child note to create an empty child note of the current note and insert a link to it at the cursor. The new note opens in Quick edit with its title selected, so typing names it, and the link shows the new title. While the note is still empty, Quick edit offers the note types to turn it into.
-
Keyboard shortcuts
This section of keyboard shortcuts presents a subset of the keyboard shortcuts as supported by the editor technology we are using, CKEditor. The shortcuts were taken from the official documentation. Note that not all the shortcuts in the original documentation are applicable (due to using a different configuration).
Blocks are images, tables, blockquotes, annotations.
Specifically for lists:
In tables:
-
Link Previews
Link previews turn a pasted URL into a rich, metadata-aware widget that can be displayed in three visual modes:
A link preview can be displayed in one of three link display modes:
A fourth link display mode, Text, inserts an ordinary link without a preview.
Since v0.107.0, Display as and the Display menu show Text instead of Plain link, and Icon & text instead of Inline.
There are four ways to create one:
A link preview is automatically created:
-
Links
There are two types of links:
The Add link dialog has a page for each kind of link, selected at its top: Web page, Note and, in a text note, Heading / anchor. Each page keeps what you entered on it while you look at another one. Insert link (Save link when changing a link) creates only the link of the page shown.
Trilium provides a visualization of incoming and outgoing links for a particular note. See note map for details.
-
Lists
There are three types of lists supported by text notes:
For bulleted and numbered lists, it's possible to configure an alternative marker such as squares or Roman numbering by pressing the icon. For numbered lists, it's also possible to specify the number to start at or whether to count in reverse order. On the Mobile Frontend, these are in the row of the List › button, which shows while the cursor is in a list; its List type button also turns the list into another kind, to-do lists included.
-
Markdown-like formatting
Markdown-like formatting allows inserting some basic formatting by typing the Markdown equivalent. Note that this does not mean that Text notes supports Markdown, these are just some convenience shortcuts.
To import more complex formatting into text notes, consider using the Import from Markdown function. For fully-fleged Markdown notes imports, consider using the dedicated import function.
If auto-formatting is not desirable, press Ctrl + Z to revert the text to its original form.
-
Math Equations
Within text notes, it's possible to enter mathematical equations using the button from the Formatting toolbar (generally found under the Insert buttons).
By default, the math dialog includes a MathLive visual editor and a TeX field. Disable MathLive visual editor under Options → Text Notes → Features to use only the TeX field and preview.
To make the fields bigger, drag the bottom-right corner of the dialog: the MathLive editor and the TeX field grow with it.
-
Multicolumn layout
A multicolumn layout arranges content in two to four columns, side by side. A column can hold any kind of content, including tables, images and another multicolumn layout.
The columns of a new layout have equal widths. If text is selected when the layout is inserted, the selection moves into the first column.
While the cursor is inside a layout, a toolbar appears above it with a button that shows the current layout.
-
Other features
Paragraphs can be indented using the following buttons from the Formatting toolbar:
When indented paragraphs or headings are copied and pasted as plain text, for example into a Code note or another application, each indentation level becomes a tab at the start of the line. A copy that stays within a single paragraph contains only its text, without the indentation.
-
Premium features
The text editor we are using is called CKEditor which has an open-source core, but it's also a commercial product which offers premium features.
Prior to v0.105.0, Trilium used the following premium features as part of a signed agreement between the CKEditor and the Trilium team:
Starting with v0.105.0, those features have been completely rewritten as custom CKEditor plugins, licensed under AGPL-3.0.
-
Slash Commands
Slash commands is a feature of Text notes which allows easily accessing commonly used commands simply by using the keyboard, without having to remember dedicated Keyboard Shortcuts.
Apart from the common set of commands, some features are specially integrated with the slash commands:
-
Sorting
Sorting the selection is experimental, and it changes as it matures. To use it, turn on Sort selection in text editor in Options → Advanced → Experimental Options.
Trilium can sort the items of a list, a group of paragraphs or the rows of a table in a text note, comparing numbers, dates and times by their value.
A sort can be undone with Ctrl+Z.
Values are compared the same way as table rows, see How values are compared in Tables.
-
Spell Check
Trilium supports spell checking for your notes. How it works depends on whether you're using the desktop application (Electron) or accessing Trilium through a web browser.
The desktop app uses Chromium's built-in spellchecker. You can configure it from Options → Spell Check.
Toggle Check spelling to enable or disable the spellchecker. A restart is required for changes to take effect — use the restart button at the bottom of the section.
-
Table of contents
This page has been relocated to Outline tab.
-
Tables
Tables are a powerful feature for Text notes, since editing them is generally easy.
To create a table, simply press the table button and select with the mouse the desired amount of columns and rows, as indicated in the adjacent figure.
Since v0.107.0, the same menu starts with an Insert table… item, for a table larger than the grid or to type its size instead:
To close the form without inserting a table, press Esc or click outside it.
-
Text Snippets
Text Snippets are closely related to Templates, but instead of defining the content of an entire note, text snippets are pieces of formatted text that can easily be inserted in a text note.
In the Note Tree:
Afterwards, simply type in the content of the note the desired text. The text can be formatted in the same manner as a normal text note.
The title of the note will become the title of the template. Optionally, a description can be added in the Promoted Attributes section.
-
To-do Lists
In Trilium, to-do items aren't limited to a simple "done" or "not done." Tasks can also be marked as in progress ("doing"), under consideration ("maybe"), or cancelled ("won't do"), thus giving a more accurate picture of where things actually stand.
Right-click the checkbox and select the desired state. Alternatively, press Ctrl+Shift+Enter to cycle through the task states. Tapping or left-clicking the checkbox will always toggle between "None" and "Done".