feat(docs): improve documentation, add icons, reorganize
@ -7,7 +7,7 @@ Select an existing day note, and the menubar contains a calendar widget. Select
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
This pattern works well also because of [Cloning Notes](../../Basic%20Concepts/Note/Cloning%20Notes.md) functionality - note can appear in multiple places in the note tree, so besides appearing under day note, it can also be categorized into other notes.
|
This pattern works well also because of [Cloning Notes](../../Basic%20Concepts%20and%20Features/Notes/Cloning%20Notes.md) functionality - note can appear in multiple places in the note tree, so besides appearing under day note, it can also be categorized into other notes.
|
||||||
|
|
||||||
## Demo
|
## Demo
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ Task Manager is a [promoted attributes](../Attributes/Promoted%20Attributes.md)
|
|||||||
|
|
||||||
Task Manager manages outstanding (TODO) tasks and finished tasks (non-empty doneDate attribute). Outstanding tasks are further categorized by location and arbitrary tags - whenever you change tag attribute in the task note, this task is then automatically moved to appropriate location.
|
Task Manager manages outstanding (TODO) tasks and finished tasks (non-empty doneDate attribute). Outstanding tasks are further categorized by location and arbitrary tags - whenever you change tag attribute in the task note, this task is then automatically moved to appropriate location.
|
||||||
|
|
||||||
Task Manager also integrates with [day notes](Day%20Notes.md) - notes are [cloned](../../Basic%20Concepts/Note/Cloning%20Notes.md) into day note to both todoDate note and doneDate note (with [prefix](../../Basic%20Concepts/Navigation/Tree%20Concepts.md) of either "TODO" or "DONE").
|
Task Manager also integrates with [day notes](Day%20Notes.md) - notes are [cloned](../../Basic%20Concepts%20and%20Features/Notes/Cloning%20Notes.md) into day note to both todoDate note and doneDate note (with [prefix](../../Basic%20Concepts%20and%20Features/Navigation/Tree%20Concepts.md) of either "TODO" or "DONE").
|
||||||
|
|
||||||
## Implementation
|
## Implementation
|
||||||
|
|
||||||
|
@ -36,15 +36,15 @@ Labels are also searchable, enhancing note retrieval.
|
|||||||
* `**appCss**`: Marks CSS notes used to modify Trilium’s appearance
|
* `**appCss**`: Marks CSS notes used to modify Trilium’s appearance
|
||||||
* `**appTheme**`: Marks full CSS themes available in Trilium's options
|
* `**appTheme**`: Marks full CSS themes available in Trilium's options
|
||||||
* `**cssClass**`: Adds a CSS class to the note's representation in the tree
|
* `**cssClass**`: Adds a CSS class to the note's representation in the tree
|
||||||
* `**iconClass**`: Adds a CSS class to the note's icon, useful for distinguishing notes visually. See [note icons](../Basic%20Concepts/Note/Note%20Icons.md)
|
* `**iconClass**`: Adds a CSS class to the note's icon, useful for distinguishing notes visually. See [note icons](../Basic%20Concepts%20and%20Features/Notes/Note%20Icons.md)
|
||||||
* `**pageSize**`: Specifies the number of items per page in note listings
|
* `**pageSize**`: Specifies the number of items per page in note listings
|
||||||
* `**customRequestHandler**` **and** `**customResourceProvider**`: Refer to [Custom request handler](Custom%20Request%20Handler.md)
|
* `**customRequestHandler**` **and** `**customResourceProvider**`: Refer to [Custom request handler](Custom%20Request%20Handler.md)
|
||||||
* `**widget**`: Marks a note as a custom widget, added to Trilium's component tree
|
* `**widget**`: Marks a note as a custom widget, added to Trilium's component tree
|
||||||
* `**workspace**` **and related attributes**: See [Workspace](../Basic%20Concepts/Navigation/Workspace.md) for more details
|
* `**workspace**` **and related attributes**: See [Workspace](../Basic%20Concepts%20and%20Features/Navigation/Workspace.md) for more details
|
||||||
* `**searchHome**`: Specifies the parent for new search notes
|
* `**searchHome**`: Specifies the parent for new search notes
|
||||||
* `**inbox**`: Designates a default location for new notes created via the sidebar
|
* `**inbox**`: Designates a default location for new notes created via the sidebar
|
||||||
* `**sqlConsoleHome**`: Default location for SQL console notes
|
* `**sqlConsoleHome**`: Default location for SQL console notes
|
||||||
* `**bookmarked**` **and** `**bookmarkFolder**`: See [Bookmarks](../Basic%20Concepts/Navigation/Bookmarks.md)
|
* `**bookmarked**` **and** `**bookmarkFolder**`: See [Bookmarks](../Basic%20Concepts%20and%20Features/Navigation/Bookmarks.md)
|
||||||
* `**shareXXX**`: See [Sharing](Sharing.md)
|
* `**shareXXX**`: See [Sharing](Sharing.md)
|
||||||
* `**keyboardShortcut**`: Assigns a keyboard shortcut to open the note
|
* `**keyboardShortcut**`: Assigns a keyboard shortcut to open the note
|
||||||
* `**displayRelations**` **and** `**hideRelations**`: Manages the display of note relations
|
* `**displayRelations**` **and** `**hideRelations**`: Manages the display of note relations
|
||||||
|
@ -23,7 +23,7 @@ To create an instance note through the UI:
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
For the template to appear in the menu, the template note must have the `#template` label. Do not confuse this with the `~template` relation, which links the instance note to the template note. If you use [workspaces](../../Basic%20Concepts/Navigation/Workspace.md), you can also mark templates with `#workspaceTemplate` to display them only in the workspace.
|
For the template to appear in the menu, the template note must have the `#template` label. Do not confuse this with the `~template` relation, which links the instance note to the template note. If you use [workspaces](../../Basic%20Concepts%20and%20Features/Navigation/Workspace.md), you can also mark templates with `#workspaceTemplate` to display them only in the workspace.
|
||||||
|
|
||||||
Templates can also be added or changed after note creation by creating a `~template` relation pointing to the desired template note.
|
Templates can also be added or changed after note creation by creating a `~template` relation pointing to the desired template note.
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ When you run Trilium for the first time, it will generate a new database contain
|
|||||||
* [Day Notes](Advanced%20Showcases/Day%20Notes.md)
|
* [Day Notes](Advanced%20Showcases/Day%20Notes.md)
|
||||||
* [Weight Tracker](Advanced%20Showcases/Weight%20Tracker.md)
|
* [Weight Tracker](Advanced%20Showcases/Weight%20Tracker.md)
|
||||||
* [Task Manager](Advanced%20Showcases/Task%20Manager.md)
|
* [Task Manager](Advanced%20Showcases/Task%20Manager.md)
|
||||||
* [Custom CSS Themes](../Basic%20Concepts/Themes.md)
|
* [Custom CSS Themes](../Basic%20Concepts%20and%20Features/Themes.md)
|
||||||
|
|
||||||
### Restoring Demo Notes
|
### Restoring Demo Notes
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# SQL Console
|
# SQL Console
|
||||||
The SQL Console is Trilium's built-in database editor.
|
The SQL Console is Trilium's built-in database editor.
|
||||||
|
|
||||||
It can be accessed by going to the [global menu](../../../Basic%20Concepts/UI%20Elements) → Advanced → Open SQL Console.
|
It can be accessed by going to the [global menu](../../../Basic%20Concepts%20and%20Features/UI%20Elements) → Advanced → Open SQL Console.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ Here's part of the HTML representation of this note, as it's stored in the datab
|
|||||||
|
|
||||||
## Viewing the source code
|
## Viewing the source code
|
||||||
|
|
||||||
It is possible to view the source code of a note by pressing the contextual menu in [Note buttons](../Basic%20Concepts/UI%20Elements/Note%20buttons.md) and selecting _Note source_.
|
It is possible to view the source code of a note by pressing the contextual menu in [Note buttons](../Basic%20Concepts%20and%20Features/UI%20Elements/Note%20buttons.md) and selecting _Note source_.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ To protect shared notes with a username and password, you can use the `#shareCre
|
|||||||
The default shared page is basic in design, but you can customize it using your own CSS:
|
The default shared page is basic in design, but you can customize it using your own CSS:
|
||||||
|
|
||||||
* **Custom CSS**: Link a CSS [code note](../Note%20Types/Code.md) to the shared page by adding a `~shareCss` relation to the note. If you want this style to apply to the entire subtree, make the label inheritable. You can hide the CSS code note from the tree navigation by adding the `#shareHiddenFromTree` label.
|
* **Custom CSS**: Link a CSS [code note](../Note%20Types/Code.md) to the shared page by adding a `~shareCss` relation to the note. If you want this style to apply to the entire subtree, make the label inheritable. You can hide the CSS code note from the tree navigation by adding the `#shareHiddenFromTree` label.
|
||||||
* **Omitting Default CSS**: For extensive styling changes, use the `#shareOmitDefaultCss` label to avoid conflicts with Trilium's [default stylesheet](../Basic%20Concepts/Themes.md).
|
* **Omitting Default CSS**: For extensive styling changes, use the `#shareOmitDefaultCss` label to avoid conflicts with Trilium's [default stylesheet](../Basic%20Concepts%20and%20Features/Themes.md).
|
||||||
|
|
||||||
### Adding JavaScript
|
### Adding JavaScript
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 93 KiB After Width: | Height: | Size: 93 KiB |
@ -1,4 +1,4 @@
|
|||||||
# Evernote
|
# Evernote
|
||||||
Trilium can import ENEX files which are used by Evernote for backup/export. One ENEX file represents content (notes and resources) of one notebook.
|
Trilium can import ENEX files which are used by Evernote for backup/export. One ENEX file represents content (notes and resources) of one notebook.
|
||||||
|
|
||||||
## Export ENEX from Evernote
|
## Export ENEX from Evernote
|
@ -1,4 +1,4 @@
|
|||||||
# Markdown
|
# Markdown
|
||||||
Trilium Notes supports importing Markdown restricted to the [CommonMark specification](https://spec.commonmark.org/current/) (where [tables are not supported](https://github.com/TriliumNext/Notes/issues/2026))
|
Trilium Notes supports importing Markdown restricted to the [CommonMark specification](https://spec.commonmark.org/current/) (where [tables are not supported](https://github.com/TriliumNext/Notes/issues/2026))
|
||||||
|
|
||||||
## Import
|
## Import
|
@ -1,4 +1,4 @@
|
|||||||
# OneNote
|
# OneNote
|
||||||
**This page describes a method to migrate via EverNote Legacy, but this app is no longer available/working.**
|
**This page describes a method to migrate via EverNote Legacy, but this app is no longer available/working.**
|
||||||
|
|
||||||
## Prep Onenote notes for best compatibility
|
## Prep Onenote notes for best compatibility
|
@ -1,4 +1,4 @@
|
|||||||
# Keyboard Shortcuts
|
# Keyboard Shortcuts
|
||||||
This is supposed to be a complete list of keyboard shortcuts. Note that some of these may work only in certain contexts (e.g. in tree pane or note editor).
|
This is supposed to be a complete list of keyboard shortcuts. Note that some of these may work only in certain contexts (e.g. in tree pane or note editor).
|
||||||
|
|
||||||
It is also possible to configure most keyboard shortcuts in Options -> Keyboard shortcuts. Using `global:` prefix, you can assign a shortcut which will work even without Trilium being in focus (requires app restart to take effect).
|
It is also possible to configure most keyboard shortcuts in Options -> Keyboard shortcuts. Using `global:` prefix, you can assign a shortcut which will work even without Trilium being in focus (requires app restart to take effect).
|
||||||
@ -42,7 +42,7 @@ Only in desktop (electron build):
|
|||||||
* <kbd>Shift</kbd>+<kbd><span>↑</span></kbd>, <kbd>Shift</kbd>`+`<kbd><span>↓</span></kbd> - multi-select note above/below
|
* <kbd>Shift</kbd>+<kbd><span>↑</span></kbd>, <kbd>Shift</kbd>`+`<kbd><span>↓</span></kbd> - multi-select note above/below
|
||||||
* <kbd>Ctrl</kbd>+<kbd>A</kbd> - select all notes in the current level
|
* <kbd>Ctrl</kbd>+<kbd>A</kbd> - select all notes in the current level
|
||||||
* <kbd>Shift</kbd>+<kbd>🖱 Left click</kbd> - multi select note which you clicked on
|
* <kbd>Shift</kbd>+<kbd>🖱 Left click</kbd> - multi select note which you clicked on
|
||||||
* <kbd>Ctrl</kbd>+<kbd>C</kbd> - copies current note (or current selection) into clipboard (used for [cloning](Note/Cloning%20Notes.md)
|
* <kbd>Ctrl</kbd>+<kbd>C</kbd> - copies current note (or current selection) into clipboard (used for [cloning](Notes/Cloning%20Notes.md)
|
||||||
* <kbd>Ctrl</kbd>+<kbd>X</kbd> - cuts current (or current selection) note into clipboard (used for moving notes)
|
* <kbd>Ctrl</kbd>+<kbd>X</kbd> - cuts current (or current selection) note into clipboard (used for moving notes)
|
||||||
* <kbd>Ctrl</kbd>+<kbd>V</kbd> - pastes note(s) as sub-note into current note (which is either move or clone depending on whether it was copied or cut into clipboard)
|
* <kbd>Ctrl</kbd>+<kbd>V</kbd> - pastes note(s) as sub-note into current note (which is either move or clone depending on whether it was copied or cut into clipboard)
|
||||||
* <kbd>Del</kbd> - delete note / sub-tree
|
* <kbd>Del</kbd> - delete note / sub-tree
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@ -1,4 +1,4 @@
|
|||||||
# Bookmarks
|
# Bookmarks
|
||||||
To easily access selected notes, you can bookmark them. See demo:
|
To easily access selected notes, you can bookmark them. See demo:
|
||||||
|
|
||||||

|

|
@ -1,4 +1,4 @@
|
|||||||
# Note Hoisting
|
# Note Hoisting
|
||||||
Hoisting is a standard outliner feature which allows you to focus on (or "zoom into") a specific note and its subtree by hiding all parent and sibling notes. Demo:
|
Hoisting is a standard outliner feature which allows you to focus on (or "zoom into") a specific note and its subtree by hiding all parent and sibling notes. Demo:
|
||||||
|
|
||||||

|

|
@ -1,4 +1,4 @@
|
|||||||
# Note Navigation
|
# Note Navigation
|
||||||
One of the Trilium's goals is to provide fast and comfortable navigation between notes.
|
One of the Trilium's goals is to provide fast and comfortable navigation between notes.
|
||||||
|
|
||||||
## Backwards and forward
|
## Backwards and forward
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
@ -1,4 +1,4 @@
|
|||||||
# Search
|
# Search
|
||||||
## Local Search
|
## Local Search
|
||||||
|
|
||||||
Local search allows you to search within the currently displayed note. To initiate a local search, press <kbd>Ctrl</kbd> + <kbd>F</kbd>. If using a web browser, this will be handled by the browser's native search functionality. In the desktop (electron) version, a separate dialog will apear.
|
Local search allows you to search within the currently displayed note. To initiate a local search, press <kbd>Ctrl</kbd> + <kbd>F</kbd>. If using a web browser, this will be handled by the browser's native search functionality. In the desktop (electron) version, a separate dialog will apear.
|
@ -1,15 +1,15 @@
|
|||||||
# Tree Concepts
|
# Tree Concepts
|
||||||
This page explains the basic concepts related to the tree structure of notes in TriliumNext.
|
This page explains the basic concepts related to the tree structure of notes in TriliumNext.
|
||||||
|
|
||||||
## Note
|
## Note
|
||||||
|
|
||||||
A note is the central entity in TriliumNext. For more details, see [Note](../Note.md).
|
A note is the central entity in TriliumNext. For more details, see [Note](../Notes.md).
|
||||||
|
|
||||||
## Branch
|
## Branch
|
||||||
|
|
||||||
A branch describes the placement of a note within the note tree. Essentially, it is a tuple of `parentNoteId` and `noteId`, indicating that the given note is placed as a child under the specified parent note.
|
A branch describes the placement of a note within the note tree. Essentially, it is a tuple of `parentNoteId` and `noteId`, indicating that the given note is placed as a child under the specified parent note.
|
||||||
|
|
||||||
Each note can have multiple branches, meaning any note can be placed in multiple locations within the tree. This concept is referred to as " [cloning](../Note/Cloning%20Notes.md)."
|
Each note can have multiple branches, meaning any note can be placed in multiple locations within the tree. This concept is referred to as " [cloning](../Notes/Cloning%20Notes.md)."
|
||||||
|
|
||||||
## Prefix
|
## Prefix
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
# Workspace
|
# Workspace
|
||||||
Workspace is a concept built up on top of [note hoisting](Note%20Hoisting.md). It is based on the idea that a user has several distinct spheres of interest. An example might be "Personal" and "Work", these two spheres are quite distinct and don't interact together. When I focus on Work, I don't really care about personal notes.
|
Workspace is a concept built up on top of [note hoisting](Note%20Hoisting.md). It is based on the idea that a user has several distinct spheres of interest. An example might be "Personal" and "Work", these two spheres are quite distinct and don't interact together. When I focus on Work, I don't really care about personal notes.
|
||||||
|
|
||||||
So far workspace consists of these features:
|
So far workspace consists of these features:
|
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 9.0 KiB |
@ -1,4 +1,4 @@
|
|||||||
# Note
|
# Notes
|
||||||
Note is a central entity in Trilium. Main attributes of note are title and content.
|
Note is a central entity in Trilium. Main attributes of note are title and content.
|
||||||
|
|
||||||
### Note types
|
### Note types
|
||||||
@ -22,7 +22,7 @@ There's one special note called "root note" which is root of the note tree. All
|
|||||||
|
|
||||||
### Tree structure
|
### Tree structure
|
||||||
|
|
||||||
Importantly, note itself doesn't carry information on its placement in note tree. See [cloning](Note/Cloning%20Notes.md) for details.
|
Importantly, note itself doesn't carry information on its placement in note tree. See [cloning](Notes/Cloning%20Notes.md) for details.
|
||||||
|
|
||||||
Tree structure of notes can resemble file system - but compared to that notes in Trilium can act as both file and directory - meaning that note can both have its own content and have children. "Leaf note" is a note which doesn't have any children.
|
Tree structure of notes can resemble file system - but compared to that notes in Trilium can act as both file and directory - meaning that note can both have its own content and have children. "Leaf note" is a note which doesn't have any children.
|
||||||
|
|
||||||
@ -40,4 +40,4 @@ After the 7 days (configurable) the notes will be "erased" - their title, conten
|
|||||||
|
|
||||||
## See also
|
## See also
|
||||||
|
|
||||||
* [Read-only note](Note/Read-Only%20Notes.md)
|
* [Read-only note](Notes/Read-Only%20Notes.md)
|
Before Width: | Height: | Size: 340 B After Width: | Height: | Size: 340 B |
@ -1,4 +1,4 @@
|
|||||||
# Archived Notes
|
# Archived Notes
|
||||||
Archived notes are notes which have `archived` [attribute](../../Advanced%20Usage/Attributes.md) - either directly or [inherited](../../Advanced%20Usage/Attributes/Attribute%20Inheritance.md).
|
Archived notes are notes which have `archived` [attribute](../../Advanced%20Usage/Attributes.md) - either directly or [inherited](../../Advanced%20Usage/Attributes/Attribute%20Inheritance.md).
|
||||||
|
|
||||||
Such notes are then by default not shown in the autocomplete and in the full text [search](../Navigation/Search.md).
|
Such notes are then by default not shown in the autocomplete and in the full text [search](../Navigation/Search.md).
|
@ -1,5 +1,5 @@
|
|||||||
# Attachments
|
# Attachments
|
||||||
A [note](../Note.md) in Trilium can _own_ one or more attachments, which can be either images or files. These attachments can be displayed or linked within the note that owns them.
|
A [note](../Notes.md) in Trilium can _own_ one or more attachments, which can be either images or files. These attachments can be displayed or linked within the note that owns them.
|
||||||
|
|
||||||
This can be especially useful to include dependencies for your [scripts](../../Note%20Types/Code/Scripts.md). The [Weight Tracker](../../Advanced%20Usage/Advanced%20Showcases/Weight%20Tracker.md) shows how to use [chartjs](https://chartjs.org/) which is attached to the [script note](#root/HcUYTojFohtb).
|
This can be especially useful to include dependencies for your [scripts](../../Note%20Types/Code/Scripts.md). The [Weight Tracker](../../Advanced%20Usage/Advanced%20Showcases/Weight%20Tracker.md) shows how to use [chartjs](https://chartjs.org/) which is attached to the [script note](#root/HcUYTojFohtb).
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
# Cloning Notes
|
# Cloning Notes
|
||||||
## Motivation
|
## Motivation
|
||||||
|
|
||||||
Trilium's core feature is the ability to structure your notes into hierarchical tree-like structure.
|
Trilium's core feature is the ability to structure your notes into hierarchical tree-like structure.
|
@ -1,4 +1,4 @@
|
|||||||
# Export as PDF
|
# Export as PDF
|
||||||

|

|
||||||
|
|
||||||
Screenshot of the note contextual menu indicating the “Export as PDF” option.
|
Screenshot of the note contextual menu indicating the “Export as PDF” option.
|
Before Width: | Height: | Size: 95 KiB After Width: | Height: | Size: 95 KiB |
@ -0,0 +1,6 @@
|
|||||||
|
# Note Icons
|
||||||
|
Icons are useful for distinguishing notes. At the technical level, they are set by the `iconClass` attribute which adds a CSS class to the note. For example `#iconClass="bx bx-calendar"` will show a calendar instead of the default page or folder icon. Looking up and remembering the css class names is not necessary. While editing a note, click on the icon next to the title to bring up a chooser gallery:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
@ -1,4 +1,4 @@
|
|||||||
# Note Revisions
|
# Note Revisions
|
||||||
Trilium supports seamless versioning of notes by storing snapshots ("revisions") of notes at regular intervals.
|
Trilium supports seamless versioning of notes by storing snapshots ("revisions") of notes at regular intervals.
|
||||||
|
|
||||||
## Note Revisions Snapshot Interval
|
## Note Revisions Snapshot Interval
|
@ -1,4 +1,4 @@
|
|||||||
# Protected Notes
|
# Protected Notes
|
||||||
Trilium is designed to store a wide variety of data, including sensitive information such as personal journals, credentials, or confidential documents. To safeguard this type of content, Trilium offers the option to protect notes, which involves the following measures:
|
Trilium is designed to store a wide variety of data, including sensitive information such as personal journals, credentials, or confidential documents. To safeguard this type of content, Trilium offers the option to protect notes, which involves the following measures:
|
||||||
|
|
||||||
* **Encryption:** Protected notes are encrypted using a key derived from your password. This ensures that without the correct password, protected notes remain indecipherable. Even if someone gains access to your Trilium [database](../../Advanced%20Usage/Database.md), they won't be able to read your encrypted notes.
|
* **Encryption:** Protected notes are encrypted using a key derived from your password. This ensures that without the correct password, protected notes remain indecipherable. Even if someone gains access to your Trilium [database](../../Advanced%20Usage/Database.md), they won't be able to read your encrypted notes.
|
@ -1,4 +1,4 @@
|
|||||||
# Read-Only Notes
|
# Read-Only Notes
|
||||||
Both [text](../../Note%20Types/Text.md) and [code](../../Note%20Types/Code.md) notes in Trilium can be set to read-only. When a note is in read-only mode, it is presented to the user in a non-editable view, with the option to switch to editing mode if needed.
|
Both [text](../../Note%20Types/Text.md) and [code](../../Note%20Types/Code.md) notes in Trilium can be set to read-only. When a note is in read-only mode, it is presented to the user in a non-editable view, with the option to switch to editing mode if needed.
|
||||||
|
|
||||||
## Setting Read-Only Mode with a Label
|
## Setting Read-Only Mode with a Label
|
@ -1,4 +1,4 @@
|
|||||||
# Sorting Notes
|
# Sorting Notes
|
||||||
## Sorting Notes
|
## Sorting Notes
|
||||||
|
|
||||||
You can sort notes by right-clicking the parent note in the note tree and selecting Advanced -> Sort notes by ... This will sort existing notes, but will not automatically sort future notes added to this parent note
|
You can sort notes by right-clicking the parent note in the note tree and selecting Advanced -> Sort notes by ... This will sort existing notes, but will not automatically sort future notes added to this parent note
|
@ -1,4 +1,4 @@
|
|||||||
# Themes
|
# Themes
|
||||||
## Default Themes
|
## Default Themes
|
||||||
|
|
||||||
Trilium comes with a couple pre-installed color themes, with the default being a light theme. To switch to a dark theme or any other available theme, navigate to the Options menu (accessible via the app icon in the top-left corner), select the Appearance tab, and choose your preferred theme.
|
Trilium comes with a couple pre-installed color themes, with the default being a light theme. To switch to a dark theme or any other available theme, navigate to the Options menu (accessible via the app icon in the top-left corner), select the Appearance tab, and choose your preferred theme.
|
@ -1,4 +1,4 @@
|
|||||||
# Theme Gallery
|
# Theme Gallery
|
||||||
These are user-created themes which were made publicly available:
|
These are user-created themes which were made publicly available:
|
||||||
|
|
||||||
## Legacy Themes
|
## Legacy Themes
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 327 B After Width: | Height: | Size: 327 B |
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 81 KiB |
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 780 B After Width: | Height: | Size: 780 B |
Before Width: | Height: | Size: 367 B After Width: | Height: | Size: 367 B |
@ -1,4 +1,4 @@
|
|||||||
# Global menu
|
# Global menu
|
||||||
The global menu configures the current window (zoom, keeping the window on top) and offers access to some more advanced options.
|
The global menu configures the current window (zoom, keeping the window on top) and offers access to some more advanced options.
|
||||||
|
|
||||||

|

|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
@ -1,4 +1,4 @@
|
|||||||
# Launch Bar
|
# Launch Bar
|
||||||
## Position of the Launch bar
|
## Position of the Launch bar
|
||||||
|
|
||||||
Depending on the layout selected, the launcher bar will either be on the left side of the screen with buttons displayed vertically or at the top of the screen. See [Vertical and horizontal layout](Vertical%20and%20horizontal%20layout.md) for more information.
|
Depending on the layout selected, the launcher bar will either be on the left side of the screen with buttons displayed vertically or at the top of the screen. See [Vertical and horizontal layout](Vertical%20and%20horizontal%20layout.md) for more information.
|
||||||
@ -32,7 +32,7 @@ Drag-and-drop the items in the tree in order to change their order. See [Note
|
|||||||
|
|
||||||
## Customizing the launcher
|
## Customizing the launcher
|
||||||
|
|
||||||
* The icon of a launcher can be changed just like a normal note. See [Note Icons](../Note/Note%20Icons.md) for more information.
|
* The icon of a launcher can be changed just like a normal note. See [Note Icons](../Notes/Note%20Icons.md) for more information.
|
||||||
* The title of the launcher can also be changed.
|
* The title of the launcher can also be changed.
|
||||||
|
|
||||||
### Resetting
|
### Resetting
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB |
@ -1,4 +1,4 @@
|
|||||||
# Note Tree
|
# Note Tree
|
||||||
This page explains how to manipulate the note tree in TriliumNext, focusing on moving notes.
|
This page explains how to manipulate the note tree in TriliumNext, focusing on moving notes.
|
||||||
|
|
||||||

|

|
||||||
@ -20,7 +20,7 @@ You can easily rearrange the note tree by dragging and dropping notes, as demons
|
|||||||
|
|
||||||
## Context Menu
|
## Context Menu
|
||||||
|
|
||||||
You can also move notes using the familiar cut and paste functions available in the context menu, or with the associated keyboard [shortcuts](../Keyboard%20Shortcuts.md): `CTRL-C` ( [copy](../Note/Cloning%20Notes.md)), <kbd>Ctrl</kbd> + <kbd>X</kbd> (cut) and <kbd>Ctrl</kbd> + <kbd>V</kbd> (paste).
|
You can also move notes using the familiar cut and paste functions available in the context menu, or with the associated keyboard [shortcuts](../Keyboard%20Shortcuts.md): `CTRL-C` ( [copy](../Notes/Cloning%20Notes.md)), <kbd>Ctrl</kbd> + <kbd>X</kbd> (cut) and <kbd>Ctrl</kbd> + <kbd>V</kbd> (paste).
|
||||||
|
|
||||||
## Multiple selection
|
## Multiple selection
|
||||||
|
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
@ -1,5 +1,5 @@
|
|||||||
# Note buttons
|
# Note buttons
|
||||||
To the right of the [Ribbon](Ribbon.md) there are a few more buttons: 
|
To the right of the [Ribbon](Ribbon.md) there are a few more buttons: 
|
||||||
|
|
||||||
* The Note Revisions button displays the [Note Revisions](../Note/Note%20Revisions.md) for that particular note.
|
* The Note Revisions button displays the [Note Revisions](../Notes/Note%20Revisions.md) for that particular note.
|
||||||
* The contextual menu offers commands for the note or its subtree, such as import, export, viewing the [Note source code](../../Advanced%20Usage/Note%20source.md) or [Attachments](../Note/Attachments.md).
|
* The contextual menu offers commands for the note or its subtree, such as import, export, viewing the [Note source code](../../Advanced%20Usage/Note%20source.md) or [Attachments](../Notes/Attachments.md).
|
Before Width: | Height: | Size: 941 B After Width: | Height: | Size: 941 B |
@ -1,4 +1,4 @@
|
|||||||
# Ribbon
|
# Ribbon
|
||||||

|

|
||||||
|
|
||||||
The ribbon allows changing options, attributes and viewing information about the current note.
|
The ribbon allows changing options, attributes and viewing information about the current note.
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 188 B After Width: | Height: | Size: 188 B |
@ -1,4 +1,4 @@
|
|||||||
# Vertical and horizontal layout
|
# Vertical and horizontal layout
|
||||||
## Layouts
|
## Layouts
|
||||||
|
|
||||||
Trilium supports two different layouts, based on your preference.
|
Trilium supports two different layouts, based on your preference.
|
@ -1,4 +1,4 @@
|
|||||||
# Zen mode
|
# Zen mode
|
||||||

|

|
||||||
|
|
||||||
Screenshot of Zen Mode activated on a Windows 11 system with native title bar off and background effects on.
|
Screenshot of Zen Mode activated on a Windows 11 system with native title bar off and background effects on.
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
@ -1,6 +0,0 @@
|
|||||||
# Note Icons
|
|
||||||
Icons are useful for distinguishing notes. At the technical level, they are set by the `**iconClass**` attribute which adds a CSS class to the note. For example `#iconClass="bx bx-calendar"` will show a calendar instead of the default page or folder icon. Looking up and remembering the css class names is not necessary. While editing a note, click on the icon next to the title to bring up a chooser gallery:
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||

|
|
@ -22,10 +22,10 @@ module.exports = new MyWidget();
|
|||||||
To implement this widget:
|
To implement this widget:
|
||||||
|
|
||||||
1. Create a new `JS Frontend` note in Trilium and paste in the code above.
|
1. Create a new `JS Frontend` note in Trilium and paste in the code above.
|
||||||
2. Assign the `#widget` [attribute](../Advanced%20Usage/Attributes.md) to the [note](../Basic%20Concepts/Note.md).
|
2. Assign the `#widget` [attribute](../Advanced%20Usage/Attributes.md) to the [note](../Basic%20Concepts%20and%20Features/Notes.md).
|
||||||
3. Restart Trilium or reload the window.
|
3. Restart Trilium or reload the window.
|
||||||
|
|
||||||
To verify that the widget is working, open the developer tools (`Cmd` + `Shift` + `I`) and run `document.querySelector("#my-widget")`. If the element is found, the widget is functioning correctly. If `undefined` is returned, double-check that the [note](../Basic%20Concepts/Note.md) has the `#widget` [attribute](../Advanced%20Usage/Attributes.md).
|
To verify that the widget is working, open the developer tools (`Cmd` + `Shift` + `I`) and run `document.querySelector("#my-widget")`. If the element is found, the widget is functioning correctly. If `undefined` is returned, double-check that the [note](../Basic%20Concepts%20and%20Features/Notes.md) has the `#widget` [attribute](../Advanced%20Usage/Attributes.md).
|
||||||
|
|
||||||
### Step 2: Adding an UI Element
|
### Step 2: Adding an UI Element
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ Short answer is that file systems are simply not powerful enough for what we wan
|
|||||||
|
|
||||||
More detailed answer:
|
More detailed answer:
|
||||||
|
|
||||||
* [clones](Basic%20Concepts/Note/Cloning%20Notes.md) are what you might call "hard directory link" in filesystem lingo, but this concept is not implemented in any filesystem
|
* [clones](Basic%20Concepts%20and%20Features/Notes/Cloning%20Notes.md) are what you might call "hard directory link" in filesystem lingo, but this concept is not implemented in any filesystem
|
||||||
* filesystems make a distinction between directory and file while there's intentionally no such difference in Trilium
|
* filesystems make a distinction between directory and file while there's intentionally no such difference in Trilium
|
||||||
* files are stored in no particular order and user can't change this
|
* files are stored in no particular order and user can't change this
|
||||||
* Trilium allows storing note [attributes](Advanced%20Usage/Attributes.md) which could be represented in extended user attributes but their support differs greatly among different filesystems / operating systems
|
* Trilium allows storing note [attributes](Advanced%20Usage/Attributes.md) which could be represented in extended user attributes but their support differs greatly among different filesystems / operating systems
|
||||||
|
@ -20,7 +20,7 @@ Note that this is not an Android/iOS app, this is just mobile friendly web page
|
|||||||
Mobile frontend provides only some of the features of the full desktop frontend:
|
Mobile frontend provides only some of the features of the full desktop frontend:
|
||||||
|
|
||||||
* it is possible to browse the whole note tree, read and edit all types of notes, but you can create only text notes
|
* it is possible to browse the whole note tree, read and edit all types of notes, but you can create only text notes
|
||||||
* reading and editing [protected notes](../Basic%20Concepts/Note/Protected%20Notes.md) is possible, but creating them is not supported
|
* reading and editing [protected notes](../Basic%20Concepts%20and%20Features/Notes/Protected%20Notes.md) is possible, but creating them is not supported
|
||||||
* editing options is not supported
|
* editing options is not supported
|
||||||
* cloning notes is not supported
|
* cloning notes is not supported
|
||||||
* uploading file attachments is not supported
|
* uploading file attachments is not supported
|
||||||
|
@ -63,7 +63,7 @@ This will disable TLS certificate verification, significantly reducing security
|
|||||||
|
|
||||||
### Conflict Resolution
|
### Conflict Resolution
|
||||||
|
|
||||||
If you edit the same note on multiple instances before synchronization, Trilium resolves conflicts by retaining the newer change and discarding the older one. The older version remains accessible in [note revisions](../Basic%20Concepts/Note/Note%20Revisions.md), allowing data recovery if needed.
|
If you edit the same note on multiple instances before synchronization, Trilium resolves conflicts by retaining the newer change and discarding the older one. The older version remains accessible in [note revisions](../Basic%20Concepts%20and%20Features/Notes/Note%20Revisions.md), allowing data recovery if needed.
|
||||||
|
|
||||||
### Hash Check
|
### Hash Check
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Book
|
# Book
|
||||||
A **Book Note** in Trilium is a special type of [note](../Basic%20Concepts/Note.md) designed to display the contents of its child notes sequentially, creating a linear, book-like reading experience. This format is particularly useful for viewing multiple smaller notes in a cohesive, continuous manner.
|
A **Book Note** in Trilium is a special type of [note](../Basic%20Concepts%20and%20Features/Notes.md) designed to display the contents of its child notes sequentially, creating a linear, book-like reading experience. This format is particularly useful for viewing multiple smaller notes in a cohesive, continuous manner.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
@ -8,20 +8,20 @@ This can be useful for a few things:
|
|||||||
* we call such JavaScript code notes "scripts" - see [Scripts](Code/Scripts.md)
|
* we call such JavaScript code notes "scripts" - see [Scripts](Code/Scripts.md)
|
||||||
* JSON, XML etc. can be used as storage for structured data (typically used in conjunction with scripting)
|
* JSON, XML etc. can be used as storage for structured data (typically used in conjunction with scripting)
|
||||||
|
|
||||||
For shorter snippets of code that can be embedded in [Text](Text.md) notes, see [Code blocks](Text/Code%20blocks.md).
|
For shorter snippets of code that can be embedded in [Text](Text.md) notes, see [Code blocks](Text/Developer-specific%20formatting/Code%20blocks.md).
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Adjusting the language of a code note
|
## Adjusting the language of a code note
|
||||||
|
|
||||||
In the [Ribbon](../Basic%20Concepts/UI%20Elements/Ribbon.md), look for the _Note type_ selector and click it to reveal the possible note types. Inside of it there will be a section called _Code_, select any one of the languages.
|
In the [Ribbon](../Basic%20Concepts%20and%20Features/UI%20Elements/Ribbon.md), look for the _Note type_ selector and click it to reveal the possible note types. Inside of it there will be a section called _Code_, select any one of the languages.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Adjusting the list of languages
|
## Adjusting the list of languages
|
||||||
|
|
||||||
Trilium supports syntax highlighting for many languages, but by default displays only some of them. The supported languages can be adjusted by going to [Options](../Basic%20Concepts/UI%20Elements/Options.md), then _Code Notes_ and looking for the _Available MIME types in the dropdown_ section. Simply check any of the items to add them to the list, or un-check them to remove them from the list.
|
Trilium supports syntax highlighting for many languages, but by default displays only some of them. The supported languages can be adjusted by going to [Options](../Basic%20Concepts%20and%20Features/UI%20Elements/Options.md), then _Code Notes_ and looking for the _Available MIME types in the dropdown_ section. Simply check any of the items to add them to the list, or un-check them to remove them from the list.
|
||||||
|
|
||||||
Note that the list of languages is not immediately refreshed, you'd have to manually [refresh the application](../Troubleshooting/Refreshing%20the%20application.md).
|
Note that the list of languages is not immediately refreshed, you'd have to manually [refresh the application](../Troubleshooting/Refreshing%20the%20application.md).
|
||||||
|
|
||||||
The list of languages is also shared with the [Code blocks](Text/Code%20blocks.md) feature of [Text](Text.md) notes.
|
The list of languages is also shared with the [Code blocks](Text/Developer-specific%20formatting/Code%20blocks.md) feature of [Text](Text.md) notes.
|
@ -1,5 +1,5 @@
|
|||||||
# Relation Map
|
# Relation Map
|
||||||
Relation map is a type of [Note](../Basic%20Concepts/Note.md) which visualizes notes and their [relations](../Advanced%20Usage/Attributes.md). See an example:
|
Relation map is a type of [Note](../Basic%20Concepts%20and%20Features/Notes.md) which visualizes notes and their [relations](../Advanced%20Usage/Attributes.md). See an example:
|
||||||
|
|
||||||
## Development process demo
|
## Development process demo
|
||||||
|
|
||||||
|
@ -5,4 +5,4 @@ Trilium allows you to save common searches as notes within the note tree. The se
|
|||||||
|
|
||||||
## Location
|
## Location
|
||||||
|
|
||||||
By default, saved searches are stored in the day note. However, you can designate a different note to store saved searches by marking it with the `#searchHome` label. Additionally, for [workspaces](../Basic%20Concepts/Navigation/Workspace.md), you can use the `#workspaceSearchHome` label to specify a storage location for saved searches within that workspace.
|
By default, saved searches are stored in the day note. However, you can designate a different note to store saved searches by marking it with the `#searchHome` label. Additionally, for [workspaces](../Basic%20Concepts%20and%20Features/Navigation/Workspace.md), you can use the `#workspaceSearchHome` label to specify a storage location for saved searches within that workspace.
|
@ -20,7 +20,7 @@ Text notes are usually opened in edit mode. However, they may open in read-only
|
|||||||
|
|
||||||
In both cases, it is possible to switch back to editable mode using the button at top right of page.
|
In both cases, it is possible to switch back to editable mode using the button at top right of page.
|
||||||
|
|
||||||
For more information, see [Read-Only Notes](../Basic%20Concepts/Note/Read-Only%20Notes.md).
|
For more information, see [Read-Only Notes](../Basic%20Concepts%20and%20Features/Notes/Read-Only%20Notes.md).
|
||||||
|
|
||||||
## General Formatting
|
## General Formatting
|
||||||
|
|
||||||
@ -28,7 +28,6 @@ Since Trilium uses CKEditor, all of its formatting options are available here. Y
|
|||||||
|
|
||||||
* **Bold**: Type `**text**` or `__text__`
|
* **Bold**: Type `**text**` or `__text__`
|
||||||
* _Italic_: Type `*text*` or `_text_`
|
* _Italic_: Type `*text*` or `_text_`
|
||||||
* `Code`: Type \`text\`
|
|
||||||
* ~~Strikethrough~~: Type `~~text~~`
|
* ~~Strikethrough~~: Type `~~text~~`
|
||||||
|
|
||||||
### Lists
|
### Lists
|
||||||
@ -39,15 +38,14 @@ See [Lists](Text/Lists.md).
|
|||||||
|
|
||||||
* Block quote: Start a line with `>` followed by a space
|
* Block quote: Start a line with `>` followed by a space
|
||||||
|
|
||||||
### Multi-Line Code Blocks
|
## Developer-specific formatting
|
||||||
|
|
||||||
To create a multi-line code block, start a line with "\`\`\`\[lang\]", for example:
|
The following features are supported:
|
||||||
|
|
||||||
```
|
* Inline code
|
||||||
if (1 > 2) {
|
* [Code blocks](Text/Developer-specific%20formatting/Code%20blocks.md)
|
||||||
console.log("Error in the matrix");
|
|
||||||
}
|
See [Developer-specific formatting](Text/Developer-specific%20formatting.md) for more information.
|
||||||
```
|
|
||||||
|
|
||||||
### Headings
|
### Headings
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 349 B After Width: | Height: | Size: 349 B |
After Width: | Height: | Size: 231 B |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 352 B After Width: | Height: | Size: 352 B |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
@ -0,0 +1,33 @@
|
|||||||
|
# Developer-specific formatting
|
||||||
|
### Inline code
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
* Via the [Formatting toolbar](Formatting%20toolbar.md), look for the  button.
|
||||||
|
* Type \`code\` where `code` is the desired text to be automatically formatted as inline code.
|
||||||
|
|
||||||
|
### Code blocks
|
||||||
|
|
||||||
|
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](../Code.md) note type instead.
|
||||||
|
|
||||||
|
See the dedicated documentation for more information: [Code blocks](Developer-specific%20formatting/Code%20blocks.md)
|
||||||
|
|
||||||
|
### Keyboard shortcuts
|
||||||
|
|
||||||
|
This allows marking a portion of text as a shortcut key.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
To apply this style, press the  button in  group from the [Formatting toolbar](Formatting%20toolbar.md). On the floating toolbar, the buttons appear when selecting a text.
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
@ -1,13 +1,13 @@
|
|||||||
# Code blocks
|
# Code blocks
|
||||||

|

|
||||||
|
|
||||||
The code blocks feature allows entering pieces of code in text notes.
|
The code blocks feature allows entering pieces of code in text notes.
|
||||||
|
|
||||||
Note that this feature is meant for generally small snippets of code. For larger files such as an entire log, see the dedicated [\[missing note\]](#root/pOsGYCXsbNQG/KSZ04uQ2D1St/FVuX89AJuFSw) note type instead.
|
Note that this feature is meant for generally small snippets of code. For larger files such as an entire log, see the [Code blocks](Code%20blocks.md) note type instead.
|
||||||
|
|
||||||
## Inserting a code block
|
## Inserting a code block
|
||||||
|
|
||||||
* Via the [Formatting toolbar](Formatting%20toolbar.md), look for the  button.
|
* Via the [Formatting toolbar](../Formatting%20toolbar.md), look for the  button.
|
||||||
* Pressing directly on the icon will insert a code block with the language that was selected most recently. If this is the first time a code block is inserted, the language will be “Auto-detected” by default.
|
* Pressing directly on the icon will insert a code block with the language that was selected most recently. If this is the first time a code block is inserted, the language will be “Auto-detected” by default.
|
||||||
* Pressing the arrow next to the icon, which will show a popup with the available languages.
|
* Pressing the arrow next to the icon, which will show a popup with the available languages.
|
||||||
* Type ` ``` ` (as in Markdown).
|
* Type ` ``` ` (as in Markdown).
|
||||||
@ -15,7 +15,7 @@ Note that this feature is meant for generally small snippets of code. For larger
|
|||||||
|
|
||||||
## Syntax highlighting
|
## Syntax highlighting
|
||||||
|
|
||||||
Since TriliumNext v0.90.12, Trilium will try to offer syntax highlighting to the code block. Note that the syntax highlighting mechanism is slightly different than the one in [Code Notes](../Code.md) notes as different technologies are involved.
|
Since TriliumNext v0.90.12, Trilium will try to offer syntax highlighting to the code block. Note that the syntax highlighting mechanism is slightly different than the one in [Code Notes](../../Code.md) notes as different technologies are involved.
|
||||||
|
|
||||||
When the language is set to _Auto-detected_, Trilium will try to identify the programming language (or similar) that corresponds to the given snippet of text and highlight it. If this is problematic, consider changing the language of the code block manually.
|
When the language is set to _Auto-detected_, Trilium will try to identify the programming language (or similar) that corresponds to the given snippet of text and highlight it. If this is problematic, consider changing the language of the code block manually.
|
||||||
|
|
||||||
@ -23,13 +23,13 @@ When the language is set to _Plain text_, there will be no syntax highlighting.
|
|||||||
|
|
||||||
## Changing the language of a code block
|
## Changing the language of a code block
|
||||||
|
|
||||||
Simply click anywhere inside the code block and press again the code block button in the [Formatting toolbar](Formatting%20toolbar.md):
|
Simply click anywhere inside the code block and press again the code block button in the [Formatting toolbar](../Formatting%20toolbar.md):
|
||||||

|

|
||||||
|
|
||||||
## Adjusting the list of languages
|
## Adjusting the list of languages
|
||||||
|
|
||||||
The code blocks feature shares the list of languages with the [Code Notes](../Code.md) note type.
|
The code blocks feature shares the list of languages with the [Code Notes](../../Code.md) note type.
|
||||||
|
|
||||||
The supported languages can be adjusted by going to [Options](../../Basic%20Concepts/UI%20Elements/Options.md), then _Code Notes_ and looking for the _Available MIME types in the dropdown_ section. Simply check any of the items to add them to the list, or uncheck them to remove them from the list.
|
The supported languages can be adjusted by going to [Options](../../../Basic%20Concepts%20and%20Features/UI%20Elements/Options.md), then _Code Notes_ and looking for the _Available MIME types in the dropdown_ section. Simply check any of the items to add them to the list, or uncheck them to remove them from the list.
|
||||||
|
|
||||||
Note that the list of languages is not immediately refreshed, you'd have to manually [refresh the application](../../Troubleshooting/Refreshing%20the%20application.md).
|
Note that the list of languages is not immediately refreshed, you'd have to manually [refresh the application](../../../Troubleshooting/Refreshing%20the%20application.md).
|
Before Width: | Height: | Size: 682 B After Width: | Height: | Size: 682 B |
@ -1,7 +1,7 @@
|
|||||||
# Formatting toolbar
|
# Formatting toolbar
|
||||||
Trilium allows two different editing experiences for text notes, based on your preference.
|
Trilium allows two different editing experiences for text notes, based on your preference.
|
||||||
|
|
||||||
To do so, go to [Options](../../Basic%20Concepts/UI%20Elements/Options.md) and look for the _Text Notes_ section. There is a corresponding section called _Formatting toolbar_.
|
To do so, go to [Options](../../Basic%20Concepts%20and%20Features/UI%20Elements/Options.md) and look for the _Text Notes_ section. There is a corresponding section called _Formatting toolbar_.
|
||||||
|
|
||||||
## Floating
|
## Floating
|
||||||
|
|
||||||
@ -28,7 +28,7 @@ All the options here apply only to the selected portion of text, such as changin
|
|||||||
|
|
||||||
The fixed formatting offers a more traditional editing paradigm, usually useful if a lot of formatting is needed.
|
The fixed formatting offers a more traditional editing paradigm, usually useful if a lot of formatting is needed.
|
||||||
|
|
||||||
All the options are combined into a single toolbar that will appear as part of the [Ribbon](../../Basic%20Concepts/UI%20Elements/Ribbon.md).
|
All the options are combined into a single toolbar that will appear as part of the [Ribbon](../../Basic%20Concepts%20and%20Features/UI%20Elements/Ribbon.md).
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
# Formatting
|
|
||||||
## Developer-specific formatting
|
|
||||||
|
|
||||||
### Keyboard shortcuts
|
|
||||||
|
|
||||||
This allows marking a portion of text as a shortcut key.
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
To apply this style, press the  button in  group from the [Formatting toolbar](Formatting%20toolbar.md). On the floating toolbar, the buttons appear when selecting a text.
|
|
@ -1,7 +1,7 @@
|
|||||||
# Images
|
# Images
|
||||||
Trilium supports storing and displaying images. Supported formats are JPEG, PNG and GIF.
|
Trilium supports storing and displaying images. Supported formats are JPEG, PNG and GIF.
|
||||||
|
|
||||||
An image can be uploaded in the form of note's [attachment](../../Basic%20Concepts/Note/Attachments.md) or as a standalone [note](../../Basic%20Concepts/Navigation/Tree%20Concepts.md) placed into the [note tree](../../Basic%20Concepts/Navigation/Tree%20Concepts.md). Its reference can be copied into a text note, in order to display it in the text itself.
|
An image can be uploaded in the form of note's [attachment](../../Basic%20Concepts%20and%20Features/Notes/Attachments.md) or as a standalone [note](../../Basic%20Concepts%20and%20Features/Navigation/Tree%20Concepts.md) placed into the [note tree](../../Basic%20Concepts%20and%20Features/Navigation/Tree%20Concepts.md). Its reference can be copied into a text note, in order to display it in the text itself.
|
||||||
|
|
||||||
## Uploading images
|
## Uploading images
|
||||||
|
|
||||||
|
4181
src/public/app/doc_notes/en/User Guide/!!!meta.json
generated
@ -27,7 +27,7 @@
|
|||||||
<p>
|
<p>
|
||||||
<img src="1_Day Notes_image.png">
|
<img src="1_Day Notes_image.png">
|
||||||
</p>
|
</p>
|
||||||
<p>This pattern works well also because of <a href="../../Basic%20Concepts/Note/Cloning%20Notes.html">Cloning Notes</a> functionality
|
<p>This pattern works well also because of <a href="../../Basic%20Concepts%20and%20Features/Notes/Cloning%20Notes.html">Cloning Notes</a> functionality
|
||||||
- note can appear in multiple places in the note tree, so besides appearing
|
- note can appear in multiple places in the note tree, so besides appearing
|
||||||
under day note, it can also be categorized into other notes.</p>
|
under day note, it can also be categorized into other notes.</p>
|
||||||
<h2>Demo</h2>
|
<h2>Demo</h2>
|
||||||
|
@ -25,8 +25,8 @@
|
|||||||
and arbitrary tags - whenever you change tag attribute in the task note,
|
and arbitrary tags - whenever you change tag attribute in the task note,
|
||||||
this task is then automatically moved to appropriate location.</p>
|
this task is then automatically moved to appropriate location.</p>
|
||||||
<p>Task Manager also integrates with <a href="Day%20Notes.html">day notes</a> -
|
<p>Task Manager also integrates with <a href="Day%20Notes.html">day notes</a> -
|
||||||
notes are <a href="../../Basic%20Concepts/Note/Cloning%20Notes.html">cloned</a> into
|
notes are <a href="../../Basic%20Concepts%20and%20Features/Notes/Cloning%20Notes.html">cloned</a> into
|
||||||
day note to both todoDate note and doneDate note (with <a href="../../Basic%20Concepts/Navigation/Tree%20Concepts.html">prefix</a> of
|
day note to both todoDate note and doneDate note (with <a href="../../Basic%20Concepts%20and%20Features/Navigation/Tree%20Concepts.html">prefix</a> of
|
||||||
either "TODO" or "DONE").</p>
|
either "TODO" or "DONE").</p>
|
||||||
<h2>Implementation</h2>
|
<h2>Implementation</h2>
|
||||||
<p>New tasks are created in the TODO note which has <code>~child:template</code>
|
<p>New tasks are created in the TODO note which has <code>~child:template</code>
|
||||||
|
@ -72,7 +72,7 @@
|
|||||||
<li><code>**cssClass**</code>: Adds a CSS class to the note's representation
|
<li><code>**cssClass**</code>: Adds a CSS class to the note's representation
|
||||||
in the tree</li>
|
in the tree</li>
|
||||||
<li><code>**iconClass**</code>: Adds a CSS class to the note's icon, useful
|
<li><code>**iconClass**</code>: Adds a CSS class to the note's icon, useful
|
||||||
for distinguishing notes visually. See <a href="../Basic%20Concepts/Note/Note%20Icons.html">note icons</a>
|
for distinguishing notes visually. See <a href="../Basic%20Concepts%20and%20Features/Notes/Note%20Icons.html">note icons</a>
|
||||||
</li>
|
</li>
|
||||||
<li><code>**pageSize**</code>: Specifies the number of items per page in note
|
<li><code>**pageSize**</code>: Specifies the number of items per page in note
|
||||||
listings</li>
|
listings</li>
|
||||||
@ -83,13 +83,13 @@
|
|||||||
component tree</li>
|
component tree</li>
|
||||||
<li><code>**workspace**</code> <strong>and related attributes</strong>: See
|
<li><code>**workspace**</code> <strong>and related attributes</strong>: See
|
||||||
<a
|
<a
|
||||||
href="../Basic%20Concepts/Navigation/Workspace.html">Workspace</a>for more details</li>
|
href="../Basic%20Concepts%20and%20Features/Navigation/Workspace.html">Workspace</a>for more details</li>
|
||||||
<li><code>**searchHome**</code>: Specifies the parent for new search notes</li>
|
<li><code>**searchHome**</code>: Specifies the parent for new search notes</li>
|
||||||
<li><code>**inbox**</code>: Designates a default location for new notes created
|
<li><code>**inbox**</code>: Designates a default location for new notes created
|
||||||
via the sidebar</li>
|
via the sidebar</li>
|
||||||
<li><code>**sqlConsoleHome**</code>: Default location for SQL console notes</li>
|
<li><code>**sqlConsoleHome**</code>: Default location for SQL console notes</li>
|
||||||
<li><code>**bookmarked**</code> <strong>and</strong> <code>**bookmarkFolder**</code>:
|
<li><code>**bookmarked**</code> <strong>and</strong> <code>**bookmarkFolder**</code>:
|
||||||
See <a href="../Basic%20Concepts/Navigation/Bookmarks.html">Bookmarks</a>
|
See <a href="../Basic%20Concepts%20and%20Features/Navigation/Bookmarks.html">Bookmarks</a>
|
||||||
</li>
|
</li>
|
||||||
<li><code>**shareXXX**</code>: See <a href="Sharing.html">Sharing</a>
|
<li><code>**shareXXX**</code>: See <a href="Sharing.html">Sharing</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<p>For the template to appear in the menu, the template note must have the <code>#template</code> label.
|
<p>For the template to appear in the menu, the template note must have the <code>#template</code> label.
|
||||||
Do not confuse this with the <code>~template</code> relation, which links
|
Do not confuse this with the <code>~template</code> relation, which links
|
||||||
the instance note to the template note. If you use <a href="../../Basic%20Concepts/Navigation/Workspace.html">workspaces</a>,
|
the instance note to the template note. If you use <a href="../../Basic%20Concepts%20and%20Features/Navigation/Workspace.html">workspaces</a>,
|
||||||
you can also mark templates with <code>#workspaceTemplate</code> to display
|
you can also mark templates with <code>#workspaceTemplate</code> to display
|
||||||
them only in the workspace.</p>
|
them only in the workspace.</p>
|
||||||
<p>Templates can also be added or changed after note creation by creating
|
<p>Templates can also be added or changed after note creation by creating
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
</li>
|
</li>
|
||||||
<li><a href="Advanced%20Showcases/Task%20Manager.html">Task Manager</a>
|
<li><a href="Advanced%20Showcases/Task%20Manager.html">Task Manager</a>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="../Basic%20Concepts/Themes.html">Custom CSS Themes</a>
|
<li><a href="../Basic%20Concepts%20and%20Features/Themes.html">Custom CSS Themes</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h3>Restoring Demo Notes</h3>
|
<h3>Restoring Demo Notes</h3>
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<div class="ck-content">
|
<div class="ck-content">
|
||||||
<p>The SQL Console is Trilium's built-in database editor.</p>
|
<p>The SQL Console is Trilium's built-in database editor.</p>
|
||||||
<p>It can be accessed by going to the <a href="../../../Basic%20Concepts/UI%20Elements">global menu</a> →
|
<p>It can be accessed by going to the <a href="../../../Basic%20Concepts%20and%20Features/UI%20Elements">global menu</a> →
|
||||||
Advanced → Open SQL Console.</p>
|
Advanced → Open SQL Console.</p>
|
||||||
<p>
|
<p>
|
||||||
<img src="SQL Console_image.png">
|
<img src="SQL Console_image.png">
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
</p></code></pre>
|
</p></code></pre>
|
||||||
<h2>Viewing the source code</h2>
|
<h2>Viewing the source code</h2>
|
||||||
<p>It is possible to view the source code of a note by pressing the contextual
|
<p>It is possible to view the source code of a note by pressing the contextual
|
||||||
menu in <a class="reference-link" href="../Basic%20Concepts/UI%20Elements/Note%20buttons.html">Note buttons</a> and
|
menu in <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Note%20buttons.html">Note buttons</a> and
|
||||||
selecting <em>Note source</em>.</p>
|
selecting <em>Note source</em>.</p>
|
||||||
<p>
|
<p>
|
||||||
<img src="Note source_image.png" width="860" height="377">
|
<img src="Note source_image.png" width="860" height="377">
|
||||||
|
@ -71,7 +71,7 @@
|
|||||||
<li><strong>Omitting Default CSS</strong>: For extensive styling changes,
|
<li><strong>Omitting Default CSS</strong>: For extensive styling changes,
|
||||||
use the <code>#shareOmitDefaultCss</code> label to avoid conflicts with Trilium's
|
use the <code>#shareOmitDefaultCss</code> label to avoid conflicts with Trilium's
|
||||||
<a
|
<a
|
||||||
href="../Basic%20Concepts/Themes.html">default stylesheet</a>.</li>
|
href="../Basic%20Concepts%20and%20Features/Themes.html">default stylesheet</a>.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h3>Adding JavaScript</h3>
|
<h3>Adding JavaScript</h3>
|
||||||
<p>You can inject custom JavaScript into the shared note using the <code>~shareJs</code> relation.
|
<p>You can inject custom JavaScript into the shared note using the <code>~shareJs</code> relation.
|
||||||
|
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 93 KiB After Width: | Height: | Size: 93 KiB |