Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
docs: give the 51 pictures that are JPEGs a .jpg name
Elian Doran0ff7d6cde989
diff --git a/apps/edit-docs/src/docs_images.spec.ts b/apps/edit-docs/src/docs_images.spec.tsnew file mode 100644index 0000000000..bdcd5186de--- /dev/null+++ b/apps/edit-docs/src/docs_images.spec.ts@@ -0,0 +1,76 @@+import { imageExtensionForMime, imageMimeForExtension } from "@triliumnext/commons";+import { getImageTypeFromBuffer } from "@triliumnext/server/src/services/image_codec.js";+import { readdirSync, readFileSync, statSync } from "fs";+import { extname, join, relative, sep } from "path";+import { describe, expect, it } from "vitest";++/**+ * The documentation's pictures, checked against what their bytes actually are.+ *+ * These files are not read by a browser alone. Every build copies `docs/User Guide` into the app+ * (`apps/server/scripts/build.ts`, `apps/desktop/scripts/build.ts`, `apps/standalone/vite.config.mts`)+ * and serves them as the in-app help, where the Content-Type comes from the extension and nothing+ * looks at the bytes. A file whose name disagrees with its contents is therefore served under the+ * wrong media type by all three, and any tooling that sorts these by format — a conversion pass,+ * an optimizer — is misled the same way.+ *+ * They arrive by export from a Trilium instance, so the name comes from `mapExtension` in+ * `packages/trilium-core/src/services/export/zip/abstract_provider.ts` rather than from anyone+ * typing it, and a wrong one here means that rule got it wrong.+ */++const DOCS_ROOT = join(__dirname, "..", "..", "..", "docs");++/** Extensions worth opening. Anything else in the tree is not claiming to be a picture. */+const PICTURE_EXTENSIONS = new Set([".png", ".jpg", ".jpeg", ".gif", ".webp", ".avif", ".bmp", ".ico", ".svg"]);++describe("documentation pictures", () => {+ it("names every picture after the format its bytes are in", async () => {+ const pictures = picturesUnder(DOCS_ROOT);+ const mismatches: string[] = [];++ // A scan that reached nothing would report no mismatch and pass on that alone. The+ // documentation runs to hundreds of pictures, so anything near zero means the walk went+ // somewhere else rather than that the tree came out clean.+ expect(pictures.length).toBeGreaterThan(100);++ for (const file of pictures) {+ const detected = await getImageTypeFromBuffer(readFileSync(file));+ const path = relative(DOCS_ROOT, file).split(sep).join("/");++ if (!detected) {+ mismatches.push(`${path}: not a picture in any format that can be recognised`);+ continue;+ }++ // Compared the way the export compares them, so this agrees with the rule that+ // produced the name: both sides through the media type, which settles `.jpeg` against+ // `.jpg` and the case of an extension along with it.+ const claimed = imageExtensionForMime(imageMimeForExtension(extname(file)));+ const actual = imageExtensionForMime(detected.mime);++ if (claimed !== actual) {+ mismatches.push(`${path}: named .${claimed}, actually ${actual.toUpperCase()} (${detected.mime})`);+ }+ }++ expect(mismatches).toEqual([]);+ });+});++/** Every file under a directory whose extension claims it is a picture. */+function picturesUnder(directory: string): string[] {+ const found: string[] = [];++ for (const entry of readdirSync(directory)) {+ const path = join(directory, entry);++ if (statSync(path).isDirectory()) {+ found.push(...picturesUnder(path));+ } else if (PICTURE_EXTENSIONS.has(extname(entry).toLowerCase())) {+ found.push(path);+ }+ }++ return found;+}diff --git a/apps/server/src/assets/help/help_content.json b/apps/server/src/assets/help/help_content.jsonindex 0d833c971f..2ce6069690 100644--- a/apps/server/src/assets/help/help_content.json+++ b/apps/server/src/assets/help/help_content.json@@ -27,22 +27,22 @@"_help_IgkTHSaFfq6A": "<aside class=\"admonition note\"><p>This page contains instructions on how to set up <a class=\"reference-link\" href=\"#root/_help_x1lQNKQBqLcA\">Signing in with OpenID Connect</a> with various providers such as Authelia, GitLab, Google. Note that while the configuration reference is correct and up to date, the steps to create the OAuth application might differ slightly as providers change their UI.</p></aside><h2>Authelia</h2><ol><li><p>Generate a client secret:</p><pre><code class=\"language-text-x-trilium-auto\">authelia crypto hash generate pbkdf2 --variant sha512 --random --random.length 72 --random.charset rfc3986\n</code></pre><p><code spellcheck=\"false\">Random Password</code> goes to Trilium, <code spellcheck=\"false\">Digest</code> (the <code spellcheck=\"false\">$pbkdf2-sha512$…</code> string) goes to Authelia.</p></li><li><p>Add a client under <code spellcheck=\"false\">identity_providers.oidc.clients</code> in Authelia's <code spellcheck=\"false\">configuration.yml</code>, replacing <code spellcheck=\"false\"><server></code> with the URL of your Trilium instance:</p><pre><code class=\"language-text-x-yaml\">identity_providers:\n oidc:\n clients:\n - client_id: 'trilium'\n client_name: 'Trilium'\n client_secret: '<Digest>'\n public: false\n authorization_policy: 'two_factor'\n redirect_uris:\n - 'https://<server>/callback'\n scopes:\n - 'openid'\n - 'profile'\n - 'email'</code></pre><p>Unlike GitLab, <code spellcheck=\"false\">client_id</code> is a name you choose rather than one the provider generates.</p></li><li><p>Restart Authelia.</p></li></ol><p>Adjust <code spellcheck=\"false\">config.ini</code>, using the <code spellcheck=\"false\">Random Password</code> from step 1:</p><pre><code class=\"language-text-x-trilium-auto\">[MultiFactorAuthentication]\noauthBaseUrl=https://<server>\noauthClientId=<ClientId>\noauthClientSecret=<RandomPassword>\noauthIssuerBaseUrl=https://<server>\noauthIssuerName=Authelia</code></pre><aside class=\"admonition important\"><p>Do <strong>not</strong> set <code spellcheck=\"false\">oauthClientAuthMethod</code> for Authelia. It defaults confidential clients to <code spellcheck=\"false\">client_secret_basic</code> and rejects any other method with <code spellcheck=\"false\">invalid_client</code>, which is the default Trilium already uses. This is the opposite of the GitLab case below.</p></aside><h2>GitLab (self-hosted or cloud)</h2><ol><li>Go to user settings on <a href=\"https://gitlab.com/-/user_settings/applications\">gitlab.com</a> or your own self-hosted instance.</li><li>Press <em>Add new application</em>.</li><li>Give it a name (e.g. Trilium).</li><li>Set <em>Redirect URI</em> to <code spellcheck=\"false\">https://<server>/callback</code></li><li>Make sure <em>Confidential</em> is checked and <em>Device authorization grant</em> is unchecked.</li><li>Under scopes, check <em>openid</em>, <em>profile</em> and <em>email</em> (they should be near the end).</li><li>Save the application and copy the <em>Application ID</em> and <em>Secret</em>.</li></ol><p>Adjust <code spellcheck=\"false\">config.ini</code> as follows, replacing <code spellcheck=\"false\"><ApplicationId></code> and <code spellcheck=\"false\"><Secret></code> with the values from the last step as well as the <code spellcheck=\"false\"><server></code> with a URL to your Trilium instance.</p><pre><code class=\"language-text-x-trilium-auto\">[MultiFactorAuthentication]\noauthBaseUrl=https://<server>\noauthClientId=<ApplicationId>\noauthClientSecret=<Secret>\noauthIssuerBaseUrl=https://gitlab.com\noauthIssuerName=GitLab\noauthClientAuthMethod=client_secret_post\n</code></pre><aside class=\"admonition important\"><p>If you are using a self-hosted instance of GitLab, make sure to also update <code spellcheck=\"false\">oauthIssuerBaseUrl</code>, and keep the <code spellcheck=\"false\">oauthClientAuthMethod</code> line above.</p><p>GitLab's token endpoint does not decode credentials sent via HTTP Basic, so without <code spellcheck=\"false\">oauthClientAuthMethod</code>, sign-in fails with a <code spellcheck=\"false\">server responded with a challenge in the WWW-Authenticate HTTP Header</code> error. Trilium applies this automatically for <code spellcheck=\"false\">gitlab.com</code>, but a self-hosted issuer URL cannot be detected.</p></aside><h2>Kanidm</h2><ol><li><p>Create the client, add the redirect URL and grant the scopes, replacing <code spellcheck=\"false\"><server></code> with the URL of your Trilium instance and <code spellcheck=\"false\"><group></code> with an existing Kanidm group whose members may sign in:</p><pre><code class=\"language-text-x-trilium-auto\">kanidm system oauth2 create trilium \"Trilium\" \"https://<server>\"\nkanidm system oauth2 add-redirect-url trilium \"https://<server>/callback\"\nkanidm system oauth2 update-scope-map trilium <group> openid profile email</code></pre><p>The <code spellcheck=\"false\">openid</code> scope is mandatory; without it Kanidm treats the client as plain OAuth 2.0.</p></li><li><p>Read the client secret:</p><pre><code class=\"language-text-x-trilium-auto\">kanidm system oauth2 show-basic-secret trilium</code></pre></li></ol><p>Adjust <code spellcheck=\"false\">config.ini</code> as follows, replacing <code spellcheck=\"false\"><idm></code> with the URL of your Kanidm instance and <code spellcheck=\"false\"><BasicSecret></code> with the value from step 2:</p><pre><code class=\"language-text-x-trilium-auto\">[MultiFactorAuthentication]\noauthBaseUrl=https://<server>\noauthClientId=trilium\noauthClientSecret=<BasicSecret>\noauthIssuerBaseUrl=https://<idm>/oauth2/openid/trilium\noauthIssuerName=Kanidm</code></pre><p>The client name you chose in step 1 is both the client ID and the last path segment of the issuer URL, so the two must match.</p><aside class=\"admonition important\"><p>Kanidm signs ID tokens with ES256, not RS256. Trilium detects this from the provider on v0.105.0 and later, so no extra configuration is needed. Do <strong>not</strong> run <code spellcheck=\"false\">kanidm system oauth2 warning-enable-legacy-crypto</code>, it downgrades the client to RS256 and disables ES256 entirely. On older Trilium versions sign-in fails with an <code spellcheck=\"false\">unexpected JWT alg</code> error.</p></aside><h2>Pocket ID</h2><aside class=\"admonition important\"><p>Pocket ID is passwordless, signing in requires a passkey. Register one and confirm you can sign in to Pocket ID itself <em>before</em> switching Trilium over to OpenID Connect, otherwise you may find yourself unable to authenticate at either end.</p></aside><ol><li>Sign in to Pocket ID as an administrator and go to <em>OIDC Clients</em> → <em>Add OIDC Client</em>.</li><li>Give it a name (e.g. Trilium).</li><li>Set <em>Callback URLs</em> to <code spellcheck=\"false\">https://<server>/callback</code>, replacing <code spellcheck=\"false\"><server></code> with the URL of your Trilium instance.</li><li>Save, then copy the <em>Client ID</em>, <em>Client Secret</em> and <em>OIDC Discovery URL</em>.</li></ol><p>Adjust <code spellcheck=\"false\">config.ini</code> as follows, using the values from step 4:</p><pre><code class=\"language-text-x-trilium-auto\">[MultiFactorAuthentication]\noauthBaseUrl=https://<server>\noauthClientId=<ClientID>\noauthClientSecret=<ClientSecret>\noauthIssuerBaseUrl=<OIDCDiscoveryURL>\noauthIssuerName=Pocket ID</code></pre><aside class=\"admonition note\"><p>Pocket ID gives you an <em>OIDC Discovery URL</em> ending in <code spellcheck=\"false\">/.well-known/openid-configuration</code>. On v0.105.0 and later you can paste it as-is. On earlier versions, remove that suffix and use only the part before it.</p></aside><aside class=\"admonition important\"><p>Pocket ID generates an RS256 signing key on first start, which works without further configuration. If you rotate it to Ed25519 (<code spellcheck=\"false\">pocket-id key-rotate --alg EdDSA --crv Ed25519</code>), ID tokens are signed with EdDSA instead. Trilium detects this automatically on v0.105.0 and later; older versions fail with <code spellcheck=\"false\">unexpected JWT alg received, expected RS256, got: EdDSA</code>.</p></aside><h2>GitHub</h2><p>GitHub cannot be used as an identity provider because it is plain OAuth 2.0 and not OpenID Connect, so it will fail with <code spellcheck=\"false\">OAUTH_RESPONSE_IS_NOT_CONFORM</code>.</p><h2>Google</h2><ol><li>Go to <a href=\"https://console.cloud.google.com/auth/clients\">Google Cloud's Clients</a> dashboard and select <em>Create client</em>.</li><li>For <em>Application type,</em> select <em>Web application</em>.</li><li>In <em>Authorized redirect URIs</em>, set <code spellcheck=\"false\">https://<server>/callback</code>.</li><li>Press <em>Create</em> and copy <em>Client ID</em> and <em>Client secret</em>.</li></ol><p>Adjust <code spellcheck=\"false\">config.ini</code> as follows, replacing <code spellcheck=\"false\"><ClientID></code> and <code spellcheck=\"false\"><ClientSecret></code> with the values from the last step as well as the <code spellcheck=\"false\"><server></code> with a URL to your Trilium instance.</p><pre><code class=\"language-text-x-trilium-auto\">[MultiFactorAuthentication]\noauthBaseUrl=https://<server>\noauthClientId=<ClientID>\noauthClientSecret=<ClientSecret></code></pre>","_help_yeEaYqosGLSh": "<p>As an alternative to <a href=\"#root/_help_Dgg7bR3b6K9j\">hosting your own Trilium instance</a>, there are two services out there that provide out of the box support for Trilium.</p><aside class=\"admonition important\"><p><strong>Disclaimer</strong>: The Trilium Notes project and maintainers are not directly affiliated with either of the projects.</p><p>PikaPods have gracefully offered us free credits for testing purposes.</p></aside><h2>Cloud instance providers</h2><h3>PikaPods</h3><ol><li>Go to <a href=\"https://www.pikapods.com\">pikapods.com</a> and sign up.</li><li>In the “Available Apps” section, look for \"TriliumNext<br> and select “Run your own”.</li><li>Follow the on-screen instructions to set up your own cloud hosted instance.</li></ol><p>PikaPods generally updates their Trilium instances to the latest version within a two-week interval after a new version is released.</p><h2>Matching your version with the cloud instance</h2><p>Please note that once you set up <a class=\"reference-link\" href=\"#root/_help_cbkrhQjrkKrh\">Synchronization</a> between a cloud instance and <a href=\"#root/_help_poXkQfguuA0U\">desktop</a> clients, it's important that the version of the desktop application and the server match up.</p><p>When setting up a cloud instance, it's best to check the version of the server by accessing it via a web browser and going to the <em>About</em> section. It's best that both the desktop and the server have the same <em>App version</em>; however it's generally OK to update the desktop to a newer version than the server if it has the same <em>Sync version</em>.</p><p>If the <em>Sync version</em> between the server and the desktop application doesn't match, synchronization will not work.</p>","_help_iGTnKjubbXkA": "<ul><li>Using Docker, the server can be run on Windows, Linux and macOS devices.</li><li>Native binaries are provided for Linux x64 and ARM (<code spellcheck=\"false\">aarch64</code>).</li></ul><h2>Legacy ARM support</h2><p>The Docker builds also provide <code spellcheck=\"false\">linux/arm/v7</code> and <code spellcheck=\"false\">linux/arm/v8</code> platforms. These platforms are considered legacy since Trilium uses Node.js version 24 which have <a href=\"https://github.com/nodejs/node/commit/6682861d6f\">officially downgraded support</a> for these platforms to “experimental”.</p><p>As a result, Trilium needs to use Node.js 22 for these versions. As soon as soon Node.js 22 will no longer be compatible, support for <code spellcheck=\"false\">armv7</code> and <code spellcheck=\"false\">armv8</code> will be dropped entirely.</p><p>Regardless of upstream support, these platforms are supported on a best-effort basis and are not officially supported by the Trilium development team. Bug reports are accepted but they will not be treated with priority; contributions are welcome.</p>",- "_help_cbkrhQjrkKrh": "<p>Trilium is an offline-first note-taking application that stores all data locally on the desktop client. However, it also offers the option to set up synchronization with a server instance, allowing multiple desktop clients to sync with a central server. This creates a star-shaped topology:</p><p><img src=\"{{helpAssets}}/User%20Guide/Installation%20%26%20Setup/Synchronization_image.png\"></p><p>In this setup, a central server (referred to as the <em>sync server</em>) and multiple <em>client</em> (or <em>desktop</em>) instances synchronize with the sync server. Once configured, synchronization is automatic and ongoing, requiring no manual intervention.</p><h2>Setting Up Synchronization</h2><h3>Security Considerations</h3><p>Setting up the server securely is critical and can be complex. It is crucial to use a valid <a href=\"#root/_help_l2VkvOwUNfZj\">TLS certificate</a> (HTTPS) rather than an unencrypted HTTP connection to ensure security and avoid potential vulnerabilities.</p><h3>Synchronizing a Desktop Instance with a Sync Server</h3><p>This method is used when you already have a desktop instance of Trilium and want to set up a sync server on your web host.</p><ol><li><strong>Server Deployment</strong>: Ensure your server instance is deployed but uninitialized.</li><li><strong>Desktop Configuration</strong>: Open your desktop instance, navigate to Options -> Sync tab -> Sync configuration, and set the \"Server instance address\" to your sync server's address. Click Save.</li></ol><p><img src=\"{{helpAssets}}/User%20Guide/Installation%20%26%20Setup/Synchronization_sync-config.png\" alt=\"screenshot of the sync settings options modal\"></p><ol><li><strong>Testing Sync</strong>: Click the \"Test sync\" button to verify the connection to the sync server. If successful, the client will start pushing all data to the server instance. This process may take some time, but you can continue using Trilium. Periodically check the server instance to confirm when the sync is complete. Once finished, you should see the login screen on the server.</li></ol><h3>Synchronizing a Desktop Instance from a Sync Server</h3><p>This method is used when you already have a sync server and want to configure a new desktop instance to sync with it.</p><ol><li><strong>Desktop Setup</strong>: Follow the <a href=\"#root/_help_poXkQfguuA0U\">desktop installation page</a>.</li><li><strong>Initial Configuration</strong>: When prompted, choose the option to set up sync with a sync server.</li></ol><p><img src=\"{{helpAssets}}/User%20Guide/Installation%20%26%20Setup/Synchronization_sync-init.png\" alt=\"screenshot of the sync from server setup page\"></p><ol><li><strong>Server Details</strong>: Configure the Trilium server address and enter the correct username and password for authentication.</li><li><strong>Finish Setup</strong>: Click the \"Finish setup\" button. If successful, you will see the following screen:</li></ol><p><img src=\"{{helpAssets}}/User%20Guide/Installation%20%26%20Setup/Synchronization_sync-in-progress.png\" alt=\"screenshot of the sync page\"></p><p>Once synchronization is complete, you will be automatically redirected to the Trilium application.</p><h3>Desktop-to-desktop sync</h3><p>This method allows two desktop instances to synchronize between each other without requiring a <a class=\"reference-link\" href=\"#root/_help_WOcw2SLH6tbX\">Server Installation</a>.</p><aside class=\"admonition warning\"><p>Since v0.104.0, LAN access needs to be enabled to allow this sync to function. See <a class=\"reference-link\" href=\"#root/_help_swSFivWk6KkA\">Network Access</a> for information on how to do so.</p></aside><h2>Proxy Configuration</h2><p>Two proxy setups are supported:</p><ul><li><strong>Explicit Proxy Configuration</strong>: Set the proxy server in Options / Sync. Only unauthenticated proxy servers are supported.</li><li><strong>System Proxy Settings</strong>: If no proxy server is explicitly configured, Trilium will use the system proxy settings.</li></ul><h2>Troubleshooting</h2><h3>Date/Time Synchronization</h3><p>For successful synchronization, both client and server must have the same date and time, with a tolerance of up to five minutes.</p><h3>Certificate Issues</h3><p>When using TLS, Trilium will verify the server certificate. If verification fails (e.g., due to self-signed certificates or certain corporate proxies), you can run the Trilium client with the <code spellcheck=\"false\">NODE_TLS_REJECT_UNAUTHORIZED</code> environment variable set to <code spellcheck=\"false\">0</code>:</p><pre><code class=\"language-text-x-trilium-auto\">export NODE_TLS_REJECT_UNAUTHORIZED=0</code></pre><p>This will disable TLS certificate verification, significantly reducing security and exposing the setup to MITM attacks. It is strongly recommended to use a valid signed server certificate. Newer Trilium versions include a script called <code spellcheck=\"false\">trilium-no-cert-check.sh</code> for this purpose.</p><h3>Conflict Resolution</h3><p>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 <a href=\"#root/_help_vZWERwf8U3nx\">note revisions</a>, allowing data recovery if needed.</p><h3>Hash Check</h3><p>After each synchronization, Trilium computes a hash of all synced data on both the client and the sync server. If there is a discrepancy, Trilium will automatically initiate a recovery mechanism to resolve the issue.</p>",+ "_help_cbkrhQjrkKrh": "<p>Trilium is an offline-first note-taking application that stores all data locally on the desktop client. However, it also offers the option to set up synchronization with a server instance, allowing multiple desktop clients to sync with a central server. This creates a star-shaped topology:</p><p><img src=\"{{helpAssets}}/User%20Guide/Installation%20%26%20Setup/Synchronization_image.jpg\"></p><p>In this setup, a central server (referred to as the <em>sync server</em>) and multiple <em>client</em> (or <em>desktop</em>) instances synchronize with the sync server. Once configured, synchronization is automatic and ongoing, requiring no manual intervention.</p><h2>Setting Up Synchronization</h2><h3>Security Considerations</h3><p>Setting up the server securely is critical and can be complex. It is crucial to use a valid <a href=\"#root/_help_l2VkvOwUNfZj\">TLS certificate</a> (HTTPS) rather than an unencrypted HTTP connection to ensure security and avoid potential vulnerabilities.</p><h3>Synchronizing a Desktop Instance with a Sync Server</h3><p>This method is used when you already have a desktop instance of Trilium and want to set up a sync server on your web host.</p><ol><li><strong>Server Deployment</strong>: Ensure your server instance is deployed but uninitialized.</li><li><strong>Desktop Configuration</strong>: Open your desktop instance, navigate to Options -> Sync tab -> Sync configuration, and set the \"Server instance address\" to your sync server's address. Click Save.</li></ol><p><img src=\"{{helpAssets}}/User%20Guide/Installation%20%26%20Setup/Synchronization_sync-config.png\" alt=\"screenshot of the sync settings options modal\"></p><ol><li><strong>Testing Sync</strong>: Click the \"Test sync\" button to verify the connection to the sync server. If successful, the client will start pushing all data to the server instance. This process may take some time, but you can continue using Trilium. Periodically check the server instance to confirm when the sync is complete. Once finished, you should see the login screen on the server.</li></ol><h3>Synchronizing a Desktop Instance from a Sync Server</h3><p>This method is used when you already have a sync server and want to configure a new desktop instance to sync with it.</p><ol><li><strong>Desktop Setup</strong>: Follow the <a href=\"#root/_help_poXkQfguuA0U\">desktop installation page</a>.</li><li><strong>Initial Configuration</strong>: When prompted, choose the option to set up sync with a sync server.</li></ol><p><img src=\"{{helpAssets}}/User%20Guide/Installation%20%26%20Setup/Synchronization_sync-init.png\" alt=\"screenshot of the sync from server setup page\"></p><ol><li><strong>Server Details</strong>: Configure the Trilium server address and enter the correct username and password for authentication.</li><li><strong>Finish Setup</strong>: Click the \"Finish setup\" button. If successful, you will see the following screen:</li></ol><p><img src=\"{{helpAssets}}/User%20Guide/Installation%20%26%20Setup/Synchronization_sync-in-progress.png\" alt=\"screenshot of the sync page\"></p><p>Once synchronization is complete, you will be automatically redirected to the Trilium application.</p><h3>Desktop-to-desktop sync</h3><p>This method allows two desktop instances to synchronize between each other without requiring a <a class=\"reference-link\" href=\"#root/_help_WOcw2SLH6tbX\">Server Installation</a>.</p><aside class=\"admonition warning\"><p>Since v0.104.0, LAN access needs to be enabled to allow this sync to function. See <a class=\"reference-link\" href=\"#root/_help_swSFivWk6KkA\">Network Access</a> for information on how to do so.</p></aside><h2>Proxy Configuration</h2><p>Two proxy setups are supported:</p><ul><li><strong>Explicit Proxy Configuration</strong>: Set the proxy server in Options / Sync. Only unauthenticated proxy servers are supported.</li><li><strong>System Proxy Settings</strong>: If no proxy server is explicitly configured, Trilium will use the system proxy settings.</li></ul><h2>Troubleshooting</h2><h3>Date/Time Synchronization</h3><p>For successful synchronization, both client and server must have the same date and time, with a tolerance of up to five minutes.</p><h3>Certificate Issues</h3><p>When using TLS, Trilium will verify the server certificate. If verification fails (e.g., due to self-signed certificates or certain corporate proxies), you can run the Trilium client with the <code spellcheck=\"false\">NODE_TLS_REJECT_UNAUTHORIZED</code> environment variable set to <code spellcheck=\"false\">0</code>:</p><pre><code class=\"language-text-x-trilium-auto\">export NODE_TLS_REJECT_UNAUTHORIZED=0</code></pre><p>This will disable TLS certificate verification, significantly reducing security and exposing the setup to MITM attacks. It is strongly recommended to use a valid signed server certificate. Newer Trilium versions include a script called <code spellcheck=\"false\">trilium-no-cert-check.sh</code> for this purpose.</p><h3>Conflict Resolution</h3><p>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 <a href=\"#root/_help_vZWERwf8U3nx\">note revisions</a>, allowing data recovery if needed.</p><h3>Hash Check</h3><p>After each synchronization, Trilium computes a hash of all synced data on both the client and the sync server. If there is a discrepancy, Trilium will automatically initiate a recovery mechanism to resolve the issue.</p>","_help_RDslemsQ6gCp": "<figure class=\"image image_resized image-style-align-right\" style=\"width:33.52%;\"><img style=\"aspect-ratio:1242/2688;\" src=\"{{helpAssets}}/User%20Guide/Installation%20%26%20Setup/Mobile%20Frontend_IMG_1765.PNG\" width=\"1242\" height=\"2688\"></figure><p>Trilium has a mobile web frontend which is optimized for touch based devices - smartphones and tablets. It is activated automatically during login process based on browser detection.</p><p>Mobile frontend is limited in features compared to the full desktop version. See below for more details on this.</p><h2>Layout basics</h2><p>Unlike the desktop version, the mobile version has a slightly different UI meant to better fit the constrained screens of a mobile phone.</p><p>Here is a non-exhaustive list of differences between the desktop version and the mobile one:</p><ul><li><p>The <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a> is displayed as a sidebar. To display the sidebar, press the button in the top-left of the screen.</p><ul><li>There is also a swipe gesture that can be done from the left of the screen, but the browser's navigation gesture interferes with it most of the time (depending on the platform).</li><li>Press and hold a note to display the <a class=\"reference-link\" href=\"#root/_help_YtSN43OrfzaA\">Note tree contextual menu</a>.</li></ul></li><li><p>The <a class=\"reference-link\" href=\"#root/_help_Ms1nauBra7gq\">Quick search</a> bar is also displayed at the top of the note tree.</p></li><li><p>The full <a class=\"reference-link\" href=\"#root/_help_eIg8jdvaoNNd\">Search</a> function can be triggered either from either the <a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a> or from the <a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>, if configured.</p></li><li><p>The <a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a> is displayed at the bottom of the screen.</p><ul><li>The launch bar uses a different configuration for icons than the desktop version. See the dedicated page for more information on how to configure it.</li></ul></li><li><p>Most of the note-related actions are grouped in the horizontal dots icon on the top-right of the note.</p></li><li><p>The <a class=\"reference-link\" href=\"#root/_help_3seOhtN8uLIY\">Tabs</a> are grouped under a tab switcher in the <a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>, where the tabs are displayed in a full-screen grid with preview for easy switching, as well as additional options such as reopening closed tabs.</p></li><li><p>Since v0.100.0, <a class=\"reference-link\" href=\"#root/_help_luNhaphA37EO\">Split View</a> can also be used in mobile view, but with a maximum of two panes at once. The splits are displayed vertically instead of horizontally.</p></li><li><p>Starting with v0.102.0, the <a class=\"reference-link\" href=\"#root/_help_IjZS7iK5EXtb\">New Layout</a> is enforced on mobile. This brings features such as the note badges, note type switcher or collection properties which would otherwise not be available.</p></li></ul><h2>Installing as a PWA</h2><p>The mobile view can be set up as a PWA. While this does not offer any offline capabilities, it will display the application in full-screen and makes it easy to access via your mobile phone's home screen.</p><h3>On iOS with Safari</h3><ol><li>Open your default web browser and access your Trilium instance.</li><li>Login.</li><li>Press the […] button in the bottom-right of the screen and select Share.</li><li>Scroll down to reveal the full list of items and choose “Add to Home Screen”.</li><li>Press “Add” and the web app will be available.</li></ol><h3>On Android with Google Chrome</h3><aside class=\"admonition important\"><p>Google Chrome requires the server to be served over HTTPS in order to display in full-screen. If using HTTP, the app will appear like a normal web page (similar to a bookmark).</p></aside><ol><li>Open your default web browser and access your Trilium instance.</li><li>Login.</li><li>Press the three vertical dots icon in the top-right of the screen and select <em>Add to Home screen.</em></li><li>Select the <em>Install</em> option.</li><li>Select an appropriate name.</li><li>The web app will appear as an application, not on the home screen.</li></ol><h3>On Android with Brave</h3><aside class=\"admonition important\"><p>Brave requires the server to be served over HTTPS in order to display in full-screen. If using HTTP, the app will appear like a normal web page (similar to a bookmark).</p></aside><ol><li>Open your default web browser and access your Trilium instance.</li><li>Login.</li><li>Press the three vertical dots icon in the bottom-right of the screen and select <em>Add to Home screen</em>.</li><li>Press the <em>Install</em> option.</li><li>The web app will appear as an application, not on the home screen.</li></ol><h3>On Samsung Browser</h3><ol><li>Open your default web browser and access your Trilium instance.</li><li>Login.</li><li>Press the hamburger menu in the bottom-right of the screen.</li><li>Select <em>Add to</em>, followed by <em>Home screen</em>.</li><li>Press <em>Add</em> and the web app will appear on the home page.</li></ol><h2>Testing via the desktop application</h2><p>If you are running Trilium without a dedicated <a href=\"#root/_help_WOcw2SLH6tbX\">server installation</a>, you can still test the mobile application using the desktop application. For more information, see <a class=\"reference-link\" href=\"#root/_help_nRqcgfTb97uV\">Using the desktop application as a server</a>. To access it go to <code spellcheck=\"false\">http://<ip>:37840/login?mobile</code> .</p><h2>Forcing mobile/desktop frontend</h2><p>Trilium decides automatically whether to use mobile or desktop front-end. If this is not appropriate, you can use <code spellcheck=\"false\">?mobile</code> or <code spellcheck=\"false\">?desktop</code> query param on <strong>login</strong> page (Note: you might need to log out).</p><p>Alternatively, simply select <em>Switch to Mobile/Desktop Version</em> in the <a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>.</p><h2>Scripting</h2><p>You can alter the behavior with <a class=\"reference-link\" href=\"#root/_help_CdNpE2pqjmI6\">Scripting</a>, just like for normal frontend. For script notes to be executed, they need to have labeled <code spellcheck=\"false\">#run=mobileStartup</code>.</p><p>Custom <a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a> widgets are also supported.</p>","_help_MtPxeAWVAzMg": "<p><img src=\"{{helpAssets}}/User%20Guide/Installation%20%26%20Setup/Web%20Clipper_image.png\"></p><p>Trilium Web Clipper is a web browser extension which allows user to clip text, screenshots, whole pages and short notes and save them directly to Trilium Notes.</p><h2>Supported browsers</h2><p>Trilium Web Clipper officially supports the following web browsers:</p><ul><li>Mozilla Firefox, using Manifest v2.</li><li>Google Chrome, using Manifest v3. Theoretically the extension should work on other Chromium-based browsers as well, but they are not officially supported.</li></ul><h2>Obtaining the extension</h2><p>The extension is available from the official browser web stores:</p><ul><li><strong>Firefox</strong>: <a href=\"https://addons.mozilla.org/firefox/addon/trilium-notes-web-clipper/\">Trilium Web Clipper on Firefox Add-ons</a></li><li><strong>Chrome</strong>: <a href=\"https://chromewebstore.google.com/detail/trilium-web-clipper/ofoiklieachadcaeffficgjaajojpkpi\">Trilium Web Clipper on Chrome Web Store</a></li></ul><h2>Functionality</h2><ul><li>select text and clip it with the right-click context menu</li><li>click on an image or link and save it through context menu</li><li>save whole page from the popup or context menu</li><li>save screenshot (with crop tool) from either popup or context menu</li><li>create short text note from popup</li></ul><h2>Location of clippings</h2><p>Trilium will save these clippings as a new child note under a \"clipper inbox\" note.</p><p>By default, that's the <a class=\"reference-link\" href=\"#root/_help_l0tKav7yLHGF\">Day Notes</a> but you can override that by setting the <a href=\"#root/_help_zEY4DaJG4YT5\">label</a> <code spellcheck=\"false\">clipperInbox</code>, on any other note.</p><p>If there's multiple clippings from the same page (and on the same day), then they will be added to the same note.</p><h2>Keyboard shortcuts</h2><p>Keyboard shortcuts are available for most functions:</p><ul><li>Save selected text: <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>S</kbd> (Mac: <kbd>⌘</kbd>+<kbd>⇧</kbd>+<kbd>S</kbd>)</li><li>Save whole page: <kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>S</kbd> (Mac: <kbd>⌥</kbd>+<kbd>⇧</kbd>+<kbd>S</kbd>)</li><li>Save screenshot: <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>E</kbd> (Mac: <kbd>⌘</kbd>+<kbd>⇧</kbd>+<kbd>E</kbd>)</li></ul><p>To set custom shortcuts, follow the directions for your browser.</p><ul><li><strong>Firefox</strong>: <code spellcheck=\"false\">about:addons</code> → Gear icon ⚙️ → Manage extension shortcuts</li><li><strong>Chrome</strong>: <code spellcheck=\"false\">chrome://extensions/shortcuts</code></li></ul><aside class=\"admonition note\"><p>On Firefox, the default shortcuts interfere with some browser features. As such, the keyboard combinations will not trigger the Web Clipper action. To fix this, simply change the keyboard shortcut to something that works. The defaults will be adjusted in future versions.</p></aside><h2>Configuration</h2><p>The extension needs to connect to a running Trilium instance. By default, it scans a port range on the local computer to find a desktop Trilium instance.</p><p>It's also possible to configure the <a href=\"#root/_help_WOcw2SLH6tbX\">server</a> address if you don't run the desktop application, or want it to work without the desktop application running.</p><h2>Testing development versions</h2><p>Development versions are version pre-release versions, generally meant for testing purposes. These are not available in the Google or Firefox web stores, but can be downloaded from either:</p><ul><li><a href=\"https://github.com/TriliumNext/Trilium/releases\">GitHub Releases</a> by looking for releases starting with <em>Web Clipper.</em></li><li>Artifacts in GitHub Actions, by looking for the <a href=\"https://github.com/TriliumNext/Trilium/actions/workflows/web-clipper.yml\"><em>Deploy web clipper extension</em> workflow</a>. Once a workflow run is selected, the ZIP files are available in the <em>Artifacts</em> section, under the name <code spellcheck=\"false\">web-clipper-extension</code>.</li></ul><h3>For Chrome</h3><ol><li>Download <code spellcheck=\"false\">trilium-web-clipper-[x.y.z]-chrome.zip</code>.</li><li>Extract the archive.</li><li>In Chrome, navigate to <code spellcheck=\"false\">chrome://extensions/</code></li><li>Toggle <em>Developer Mode</em> in top-right of the page.</li><li>Press the <em>Load unpacked</em> button near the header.</li><li>Point to the extracted directory from step (2).</li></ol><h3>For Firefox</h3><aside class=\"admonition warning\"><p>Firefox prevents installation of unsigned packages in the “retail” version. To be able to install extensions from disk, consider using <em>Firefox Developer Edition</em> or a non-branded version of Firefox (e.g. <em>GNU IceCat</em>).</p><p>One time, go to <code spellcheck=\"false\">about:config</code> and change <code spellcheck=\"false\">xpinstall.signatures.required</code> to <code spellcheck=\"false\">false</code>.</p></aside><ol><li>Navigate to <code spellcheck=\"false\">about:addons</code>.</li><li>Select <em>Extensions</em> in the left-side navigation.</li><li>Press the <em>Gear</em> icon on the right of the <em>Manage Your Extensions</em> title.</li><li>Select <em>Install Add-on From File…</em></li><li>Point it to <code spellcheck=\"false\">trilium-web-clipper-[x.y.z]-firefox.zip</code>.</li><li>Press the <em>Add</em> button to confirm.</li></ol><h2>Credits</h2><p>Some parts of the code are based on the <a href=\"https://github.com/laurent22/joplin/tree/master/Clipper\">Joplin Notes browser extension</a>.</p>","_help_n1lujUxCwipy": "<p>This document outlines the steps required to upgrade Trilium to a new release version.</p><h2>How to Upgrade</h2><p>Trilium does not support built-in automatic upgrades; all updates must be performed manually. The upgrade process varies depending on the installation method:</p><ul><li><a href=\"#root/_help_rWX5eY045zbE\"><strong>Docker Server Installation</strong></a>: Pull the new image and restart the container.</li><li><strong>Other Installations</strong>: Download the latest version from the <a href=\"https://github.com/TriliumNext/Trilium/releases/latest\">release page</a> and replace the existing application files.</li></ul><h2>Database Compatibility and Migration</h2><p>Upon startup, Trilium will automatically migrate the <a href=\"#root/_help_wX4HbRucYSDD\">database</a> to the new version. Note that after migration, older versions of Trilium will be unable to read the database. If you need to revert to a previous version of Trilium and its database, you can restore the <a href=\"#root/_help_ODY7qQn5m2FT\">backup</a> that is created prior to migration.</p><h2>Sync Compatibility</h2><p>The <a href=\"#root/_help_cbkrhQjrkKrh\">synchronization</a> protocol used by Trilium is versioned, requiring all members of the sync cluster to use the same protocol version. Therefore, when upgrading to a new version, you may need to upgrade all instances in the sync cluster. Changes to the sync protocol version are typically indicated on the release page.</p>","_help_ODY7qQn5m2FT": "<p>Trilium supports simple backup scheme where it saves copy of the <a class=\"reference-link\" href=\"#root/_help_wX4HbRucYSDD\">Database</a> on these events:</p><ul><li>once a day</li><li>once a week</li><li>once a month</li><li>before DB migration to newer version</li></ul><p>So in total you'll have at most 4 backups from different points in time which should protect you from various problems. These backups are stored by default in <code spellcheck=\"false\">backup</code> directory placed in the <a href=\"#root/_help_tAassRL4RSQL\">data directory</a>.</p><p>This is only very basic backup solution, and you're encouraged to add some better backup solution - e.g. backing up the <a class=\"reference-link\" href=\"#root/_help_wX4HbRucYSDD\">Database</a> to cloud / different computer etc.</p><p>Note that <a class=\"reference-link\" href=\"#root/_help_cbkrhQjrkKrh\">Synchronization</a> provides also some backup capabilities by its nature of distributing the data to other computers.</p><h2>Downloading backup</h2><p>You can download an existing backup by going to Settings > Backup > Existing backups > Download</p><h2>Restoring backup</h2><p>Let's assume you want to restore the weekly backup, here's how to do it:</p><ul><li>find <a href=\"#root/_help_tAassRL4RSQL\">data directory</a> Trilium uses - easy way is to open \"About Trilium Notes\" from \"Menu\" in upper left corner and looking at \"data directory\"<ul><li>I'll refer to <code spellcheck=\"false\">~/trilium-data</code> as data directory from now on</li></ul></li><li>find <code spellcheck=\"false\">~/trilium-data/backup/backup-weekly.db</code> - this is the <a class=\"reference-link\" href=\"#root/_help_wX4HbRucYSDD\">Database</a> backup</li><li>at this point stop/kill Trilium</li><li>delete <code spellcheck=\"false\">~/trilium-data/document.db</code>, <code spellcheck=\"false\">~/trilium-data/document.db-wal</code> and <code spellcheck=\"false\">~/trilium-data/document.db-shm</code> (latter two files are auto generated)</li><li>copy and rename this <code spellcheck=\"false\">~/trilium-data/backup/backup-weekly.db</code> to <code spellcheck=\"false\">~/trilium-data/document.db</code></li><li>make sure that the file is writable, e.g. with <code spellcheck=\"false\">chmod 600 document.db</code></li><li>start Trilium again</li></ul><p>If you have configured sync then you need to do it across all members of the sync cluster, otherwise older version (restored backup) of the document will be detected and synced to the newer version.</p><h2>Disabling backup</h2><p>Although this is not recommended, it is possible to disable backup in <code spellcheck=\"false\">config.ini</code> in the <a href=\"#root/_help_tAassRL4RSQL\">data directory</a>:</p><pre><code class=\"language-text-x-trilium-auto\">[General]\n... some other configs\n# set to true to disable backups (e.g. because of limited space on server)\nnoBackup=true</code></pre><p>You can also review the <a href=\"#root/_help_Gzjqa934BdH4\">configuration</a> file to provide all <code spellcheck=\"false\">config.ini</code> values as environment variables instead.</p><p>See <a href=\"https://github.com/TriliumNext/Trilium/blob/master/config-sample.ini\">sample config</a>.</p>",- "_help_tAassRL4RSQL": "<p>Data directory contains:</p><ul><li><code spellcheck=\"false\">document.db</code> - <a href=\"#root/_help_wX4HbRucYSDD\">database</a></li><li><code spellcheck=\"false\">config.ini</code> - instance level settings like port on which the Trilium application runs</li><li><code spellcheck=\"false\">backup</code> - contains automatically <a href=\"#root/_help_ODY7qQn5m2FT\">backup</a> of documents</li><li><code spellcheck=\"false\">log</code> - contains application log files</li></ul><h2>Location of the data directory</h2><p>Easy way how to find out which data directory Trilium uses is to look at the \"About Trilium Notes\" dialog (from \"Menu\" in upper left corner):</p><p><img src=\"{{helpAssets}}/User%20Guide/Installation%20%26%20Setup/Data%20directory_image.png\"></p><p>Here's how the location is decided:</p><p>Data directory is normally named <code spellcheck=\"false\">trilium-data</code> and it is stored in:</p><ul><li><code spellcheck=\"false\">/home/[user]/.local/share</code> for Linux</li><li><code spellcheck=\"false\">C:\\Users\\[user]\\AppData\\Roaming</code> for Windows Vista and up</li><li><code spellcheck=\"false\">/Users/[user]/Library/Application Support</code> for Mac OS</li><li>user's home is a fallback if some of the paths above don't exist</li><li>user's home is also a default setup for [[docker|Docker server installation]]</li></ul><p>If you want to back up your Trilium data, just backup this single directory - it contains everything you need.</p><h3>Changing the location of data directory</h3><p>If you want to use some other location for the data directory than the default one, you may change it via <code spellcheck=\"false\">TRILIUM_DATA_DIR</code> environment variable to some other location:</p><h3>Windows</h3><ol><li>Press the Windows key on your keyboard.</li><li>Search and select “Edit the system variables”.</li><li>Press the “Environment Variables…” button in the bottom-right of the newly opened screen.</li><li>On the top section (\"User variables for [user]\"), press the “New…” button.</li><li>In the <em>Variable name</em> field insert <code spellcheck=\"false\">TRILIUM_DATA_DIR</code>.</li><li>Press the <em>Browse Directory…</em> button and select the new directory where to store the database.</li><li>Close all the windows by pressing the <em>OK</em> button for each of them.</li></ol><h4>Linux</h4><pre><code class=\"language-text-x-trilium-auto\">export TRILIUM_DATA_DIR=/home/myuser/data/my-trilium-data</code></pre><h4>Mac OS X</h4><p>You need to create a <code spellcheck=\"false\">.plist</code> file under <code spellcheck=\"false\">~/Library/LaunchAgents</code> to load it properly each login.</p><p>To load it manually, you need to use <code spellcheck=\"false\">launchctl setenv TRILIUM_DATA_DIR <yourpath></code></p><p>Here is a pre-defined template, where you just need to add your path to:</p><pre><code class=\"language-text-x-trilium-auto\"> Label\n set.trilium.env\n RunAtLoad\n \n ProgramArguments\n \n launchctl\n setenv\n TRILIUM_DATA_DIR\n /Users/YourUserName/Library/Application Support/trilium-data </code></pre><h3>Create a script to run with specific data directory</h3><p>An alternative to globally setting environment variable is to run only the Trilium Notes with this environment variable. This then allows for different setup styles like two <a href=\"#root/_help_wX4HbRucYSDD\">database</a> instances or \"portable\" installation.</p><p>To do this in Unix-based systems simply run <code spellcheck=\"false\">trilium</code> like this:</p><pre><code class=\"language-text-x-trilium-auto\">TRILIUM_DATA_DIR=/home/myuser/data/my-trilium-data trilium</code></pre><p>You can then save the above command as a shell script on your path for convenience.</p><h2>Electron user data directory (desktop only)</h2><p>When running the desktop application, Electron stores internal data (caches, spell-check dictionaries, session storage, etc.) separately from the Trilium data directory. By default this goes to the system's application data folder (e.g. <code spellcheck=\"false\">%APPDATA%</code> on Windows), which may be undesirable in corporate environments with roaming profiles or when running in portable mode.</p><p>To keep Electron data out of the system's roaming profile, set the <code spellcheck=\"false\">TRILIUM_ELECTRON_DATA_DIR</code> environment variable to an explicit path. The <code spellcheck=\"false\">trilium-portable</code> script does this automatically, pointing it to <code spellcheck=\"false\">trilium-electron-data/</code> next to the application.</p><h2>Fine-grained directory/path location</h2><p>Apart from the data directory, some of the subdirectories of it can be moved elsewhere by changing an environment variable:</p><figure class=\"table\"><table>\n<thead>\n<tr>\n<th>Environment variable</th>\n<th>Default value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code spellcheck=\"false\">TRILIUM_DOCUMENT_PATH</code></td>\n<td><code spellcheck=\"false\">${TRILIUM_DATA_DIR}/document.db</code></td>\n<td>Path to the <a class=\"reference-link\" href=\"#root/_help_wX4HbRucYSDD\">Database</a> (storing all notes and metadata).</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_BACKUP_DIR</code></td>\n<td><code spellcheck=\"false\">${TRILIUM_DATA_DIR}/backup</code></td>\n<td>Directory where automated <a class=\"reference-link\" href=\"#root/_help_ODY7qQn5m2FT\">Backup</a> databases are stored.</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_LOG_DIR</code></td>\n<td><code spellcheck=\"false\">${TRILIUM_DATA_DIR}/log</code></td>\n<td>Directory where daily <a class=\"reference-link\" href=\"#root/_help_bnyigUA2UK7s\">Backend (server) logs</a> are stored.</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_TMP_DIR</code></td>\n<td><code spellcheck=\"false\">${TRILIUM_DATA_DIR}/tmp</code></td>\n<td>Directory where temporary files are stored (for example when opening in an external app).</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_ANONYMIZED_DB_DIR</code></td>\n<td><code spellcheck=\"false\">${TRILIUM_DATA_DIR}/anonymized-db</code></td>\n<td>Directory where a <a class=\"reference-link\" href=\"#root/_help_x59R8J8KV5Bp\">Anonymized Database</a> is stored.</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_CONFIG_INI_PATH</code></td>\n<td><code spellcheck=\"false\">${TRILIUM_DATA_DIR}/config.ini</code></td>\n<td>Path to <a class=\"reference-link\" href=\"#root/_help_Gzjqa934BdH4\">Configuration (config.ini or environment variables)</a> file.</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_ELECTRON_DATA_DIR</code></td>\n<td>System appData</td>\n<td>Directory for Electron internal data (caches, spell-check dictionaries, etc.). Set this in portable mode to avoid writing to the system profile (desktop only).</td>\n</tr>\n</tbody></table></figure>",- "_help_x0JgW8UqGXvq": "<h2>Layouts</h2><p>Trilium supports two different layouts, based on your preference.</p><h3>Vertical layout</h3><p>The vertical layout is Trilium's original layout:</p><ul><li>The <a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a> is positioned on the left side of the screen, with buttons being laid out vertically.</li><li>The tab bar is at the top, but to the right of the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>.</li><li>The <a class=\"reference-link\" href=\"#root/_help_Ms1nauBra7gq\">Quick search</a> is at the top of the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>.</li><li>The <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a> can be collapsed by pressing the <img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/5_Vertical%20and%20horizontal%20layout_image.png\"> button at the bottom of the <a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>.</li><li>The <a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a> can be accessed via the <img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/4_Vertical%20and%20horizontal%20layout_image.png\"> icon at the top of the <a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>.</li></ul><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/3_Vertical%20and%20horizontal%20layout_image.png\"></p><h3>Horizontal layout</h3><p>The horizontal layout is a more traditional layout, since it bears similarity with other applications. In this mode:</p><ul><li>The <a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a> is at the top of the screen, with the buttons laid horizontally.</li><li>The tab bar is at the top of the screen, but now covers the entirety of the width, allowing for more tabs to be displayed at once.</li><li>The <a class=\"reference-link\" href=\"#root/_help_Ms1nauBra7gq\">Quick search</a> is now part of the <a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>. It can be moved around according to preference and even removed if needed.</li><li>The <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a> can be collapsed by pressing the small <img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/1_Vertical%20and%20horizontal%20layout_image.png\"> button to the left of the first tab.</li><li>The <a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a> can be accessed via the <img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Vertical%20and%20horizontal%20layout_image.png\"> button at the end of the <a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>.</li></ul><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/2_Vertical%20and%20horizontal%20layout_image.png\"></p><h2>Changing the layout</h2><p>Go to <a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> and look for the <em>Appearance</em> option on the left. Then look for the <em>Layout</em> section, where there is the possibility to switch between the two available layouts.</p><p>Selecting an option will immediately apply the new layout by reloading the window.</p>",- "_help_x3i7MxGccDuM": "<p>The global menu configures the current window (zoom, keeping the window on top) and offers access to some more advanced options.</p><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu_image.png\"></p><h2>Accessing the global menu</h2><p>See <a href=\"#root/_help_x0JgW8UqGXvq\">Vertical and horizontal layout</a> since the position of the global menu is changed based on which layout has been selected.</p>",- "_help_oPVyFC7WL2Lp": "<p>This page explains how to manipulate the note tree in TriliumNext, focusing on moving notes.</p><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree_image.png\"></p><h2>Drag and Drop</h2><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree_drag-and-drop.gif\" alt=\"Drag and drop example\"></p><p>You can easily rearrange the note tree by dragging and dropping notes, as demonstrated in the example above.</p><h2>Keyboard Manipulation</h2><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree_move-note-with-keyboard.gif\" alt=\"Example of using keyboard keys to move a note\">Trilium offers efficient keyboard-based manipulation using the following <a href=\"#root/_help_A9Oc6YKKc65v\">shortcuts</a>:</p><ul><li><kbd>Ctrl</kbd> + <kbd><span>↑</span></kbd> and <kbd>Ctrl</kbd> +<kbd><span>↓</span></kbd>: Move the note up or down in the order.</li><li><kbd>Ctrl</kbd>+<kbd><span>←</span></kbd>: Move the note up in the hierarchy by changing its parent to the note's grandparent.</li><li><kbd>Ctrl</kbd>+<kbd><span>→</span></kbd>: Move the note down in the hierarchy by setting its parent to the note currently above it (this action is best understood through a demo or hands-on experience).</li><li><kbd><span>←</span></kbd> and <kbd><span>→</span></kbd>: Expand and collapse a sub-tree.</li></ul><h2>Context Menu</h2><p>You can also move notes using the familiar cut and paste functions available in the context menu, or with the associated keyboard <a href=\"#root/_help_A9Oc6YKKc65v\">shortcuts</a>: <code spellcheck=\"false\">CTRL-C</code> ( <a href=\"#root/_help_IakOLONlIfGI\">copy</a>), <kbd>Ctrl</kbd> + <kbd>X</kbd> (cut) and <kbd>Ctrl</kbd> + <kbd>V</kbd> (paste).</p><p>See <a class=\"reference-link\" href=\"#root/_help_YtSN43OrfzaA\">Note tree contextual menu</a> for more information.</p><h2>Tree Settings</h2><p>Click the tree icon in the tree toolbar to open the tree settings popup. It contains the following options:</p><ul><li><strong>Hide archived notes</strong>: When enabled, archived notes are not shown in the tree.</li><li><strong>Automatically collapse notes</strong>: When enabled, notes are collapsed after a period of inactivity to keep the tree tidy.</li><li><strong>Follow active note</strong>: When enabled (default), the tree automatically scrolls and expands parent nodes to keep the currently active note visible. When disabled, the tree is fully detached from navigation — only the background highlight of the active note is updated, but the tree viewport and its expanded/collapsed state are never changed by navigation. Use the crosshair button to manually jump the tree to the active note at any time.</li></ul><h2>Keyboard shortcuts</h2><p>The note tree comes with multiple keyboard shortcuts to make editing faster, consult the dedicated <a class=\"reference-link\" href=\"#root/_help_DvdZhoQZY9Yd\">Keyboard shortcuts</a> section.</p>",+ "_help_tAassRL4RSQL": "<p>Data directory contains:</p><ul><li><code spellcheck=\"false\">document.db</code> - <a href=\"#root/_help_wX4HbRucYSDD\">database</a></li><li><code spellcheck=\"false\">config.ini</code> - instance level settings like port on which the Trilium application runs</li><li><code spellcheck=\"false\">backup</code> - contains automatically <a href=\"#root/_help_ODY7qQn5m2FT\">backup</a> of documents</li><li><code spellcheck=\"false\">log</code> - contains application log files</li></ul><h2>Location of the data directory</h2><p>Easy way how to find out which data directory Trilium uses is to look at the \"About Trilium Notes\" dialog (from \"Menu\" in upper left corner):</p><p><img src=\"{{helpAssets}}/User%20Guide/Installation%20%26%20Setup/Data%20directory_image.jpg\"></p><p>Here's how the location is decided:</p><p>Data directory is normally named <code spellcheck=\"false\">trilium-data</code> and it is stored in:</p><ul><li><code spellcheck=\"false\">/home/[user]/.local/share</code> for Linux</li><li><code spellcheck=\"false\">C:\\Users\\[user]\\AppData\\Roaming</code> for Windows Vista and up</li><li><code spellcheck=\"false\">/Users/[user]/Library/Application Support</code> for Mac OS</li><li>user's home is a fallback if some of the paths above don't exist</li><li>user's home is also a default setup for [[docker|Docker server installation]]</li></ul><p>If you want to back up your Trilium data, just backup this single directory - it contains everything you need.</p><h3>Changing the location of data directory</h3><p>If you want to use some other location for the data directory than the default one, you may change it via <code spellcheck=\"false\">TRILIUM_DATA_DIR</code> environment variable to some other location:</p><h3>Windows</h3><ol><li>Press the Windows key on your keyboard.</li><li>Search and select “Edit the system variables”.</li><li>Press the “Environment Variables…” button in the bottom-right of the newly opened screen.</li><li>On the top section (\"User variables for [user]\"), press the “New…” button.</li><li>In the <em>Variable name</em> field insert <code spellcheck=\"false\">TRILIUM_DATA_DIR</code>.</li><li>Press the <em>Browse Directory…</em> button and select the new directory where to store the database.</li><li>Close all the windows by pressing the <em>OK</em> button for each of them.</li></ol><h4>Linux</h4><pre><code class=\"language-text-x-trilium-auto\">export TRILIUM_DATA_DIR=/home/myuser/data/my-trilium-data</code></pre><h4>Mac OS X</h4><p>You need to create a <code spellcheck=\"false\">.plist</code> file under <code spellcheck=\"false\">~/Library/LaunchAgents</code> to load it properly each login.</p><p>To load it manually, you need to use <code spellcheck=\"false\">launchctl setenv TRILIUM_DATA_DIR <yourpath></code></p><p>Here is a pre-defined template, where you just need to add your path to:</p><pre><code class=\"language-text-x-trilium-auto\"> Label\n set.trilium.env\n RunAtLoad\n \n ProgramArguments\n \n launchctl\n setenv\n TRILIUM_DATA_DIR\n /Users/YourUserName/Library/Application Support/trilium-data </code></pre><h3>Create a script to run with specific data directory</h3><p>An alternative to globally setting environment variable is to run only the Trilium Notes with this environment variable. This then allows for different setup styles like two <a href=\"#root/_help_wX4HbRucYSDD\">database</a> instances or \"portable\" installation.</p><p>To do this in Unix-based systems simply run <code spellcheck=\"false\">trilium</code> like this:</p><pre><code class=\"language-text-x-trilium-auto\">TRILIUM_DATA_DIR=/home/myuser/data/my-trilium-data trilium</code></pre><p>You can then save the above command as a shell script on your path for convenience.</p><h2>Electron user data directory (desktop only)</h2><p>When running the desktop application, Electron stores internal data (caches, spell-check dictionaries, session storage, etc.) separately from the Trilium data directory. By default this goes to the system's application data folder (e.g. <code spellcheck=\"false\">%APPDATA%</code> on Windows), which may be undesirable in corporate environments with roaming profiles or when running in portable mode.</p><p>To keep Electron data out of the system's roaming profile, set the <code spellcheck=\"false\">TRILIUM_ELECTRON_DATA_DIR</code> environment variable to an explicit path. The <code spellcheck=\"false\">trilium-portable</code> script does this automatically, pointing it to <code spellcheck=\"false\">trilium-electron-data/</code> next to the application.</p><h2>Fine-grained directory/path location</h2><p>Apart from the data directory, some of the subdirectories of it can be moved elsewhere by changing an environment variable:</p><figure class=\"table\"><table>\n<thead>\n<tr>\n<th>Environment variable</th>\n<th>Default value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code spellcheck=\"false\">TRILIUM_DOCUMENT_PATH</code></td>\n<td><code spellcheck=\"false\">${TRILIUM_DATA_DIR}/document.db</code></td>\n<td>Path to the <a class=\"reference-link\" href=\"#root/_help_wX4HbRucYSDD\">Database</a> (storing all notes and metadata).</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_BACKUP_DIR</code></td>\n<td><code spellcheck=\"false\">${TRILIUM_DATA_DIR}/backup</code></td>\n<td>Directory where automated <a class=\"reference-link\" href=\"#root/_help_ODY7qQn5m2FT\">Backup</a> databases are stored.</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_LOG_DIR</code></td>\n<td><code spellcheck=\"false\">${TRILIUM_DATA_DIR}/log</code></td>\n<td>Directory where daily <a class=\"reference-link\" href=\"#root/_help_bnyigUA2UK7s\">Backend (server) logs</a> are stored.</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_TMP_DIR</code></td>\n<td><code spellcheck=\"false\">${TRILIUM_DATA_DIR}/tmp</code></td>\n<td>Directory where temporary files are stored (for example when opening in an external app).</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_ANONYMIZED_DB_DIR</code></td>\n<td><code spellcheck=\"false\">${TRILIUM_DATA_DIR}/anonymized-db</code></td>\n<td>Directory where a <a class=\"reference-link\" href=\"#root/_help_x59R8J8KV5Bp\">Anonymized Database</a> is stored.</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_CONFIG_INI_PATH</code></td>\n<td><code spellcheck=\"false\">${TRILIUM_DATA_DIR}/config.ini</code></td>\n<td>Path to <a class=\"reference-link\" href=\"#root/_help_Gzjqa934BdH4\">Configuration (config.ini or environment variables)</a> file.</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_ELECTRON_DATA_DIR</code></td>\n<td>System appData</td>\n<td>Directory for Electron internal data (caches, spell-check dictionaries, etc.). Set this in portable mode to avoid writing to the system profile (desktop only).</td>\n</tr>\n</tbody></table></figure>",+ "_help_x0JgW8UqGXvq": "<h2>Layouts</h2><p>Trilium supports two different layouts, based on your preference.</p><h3>Vertical layout</h3><p>The vertical layout is Trilium's original layout:</p><ul><li>The <a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a> is positioned on the left side of the screen, with buttons being laid out vertically.</li><li>The tab bar is at the top, but to the right of the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>.</li><li>The <a class=\"reference-link\" href=\"#root/_help_Ms1nauBra7gq\">Quick search</a> is at the top of the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>.</li><li>The <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a> can be collapsed by pressing the <img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/5_Vertical%20and%20horizontal%20layout_image.png\"> button at the bottom of the <a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>.</li><li>The <a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a> can be accessed via the <img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/4_Vertical%20and%20horizontal%20layout_image.png\"> icon at the top of the <a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>.</li></ul><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/3_Vertical%20and%20horizontal%20layout_image.jpg\"></p><h3>Horizontal layout</h3><p>The horizontal layout is a more traditional layout, since it bears similarity with other applications. In this mode:</p><ul><li>The <a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a> is at the top of the screen, with the buttons laid horizontally.</li><li>The tab bar is at the top of the screen, but now covers the entirety of the width, allowing for more tabs to be displayed at once.</li><li>The <a class=\"reference-link\" href=\"#root/_help_Ms1nauBra7gq\">Quick search</a> is now part of the <a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>. It can be moved around according to preference and even removed if needed.</li><li>The <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a> can be collapsed by pressing the small <img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/1_Vertical%20and%20horizontal%20layout_image.png\"> button to the left of the first tab.</li><li>The <a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a> can be accessed via the <img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Vertical%20and%20horizontal%20layout_image.png\"> button at the end of the <a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>.</li></ul><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/2_Vertical%20and%20horizontal%20layout_image.jpg\"></p><h2>Changing the layout</h2><p>Go to <a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> and look for the <em>Appearance</em> option on the left. Then look for the <em>Layout</em> section, where there is the possibility to switch between the two available layouts.</p><p>Selecting an option will immediately apply the new layout by reloading the window.</p>",+ "_help_x3i7MxGccDuM": "<p>The global menu configures the current window (zoom, keeping the window on top) and offers access to some more advanced options.</p><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu_image.jpg\"></p><h2>Accessing the global menu</h2><p>See <a href=\"#root/_help_x0JgW8UqGXvq\">Vertical and horizontal layout</a> since the position of the global menu is changed based on which layout has been selected.</p>",+ "_help_oPVyFC7WL2Lp": "<p>This page explains how to manipulate the note tree in TriliumNext, focusing on moving notes.</p><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree_image.jpg\"></p><h2>Drag and Drop</h2><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree_drag-and-drop.gif\" alt=\"Drag and drop example\"></p><p>You can easily rearrange the note tree by dragging and dropping notes, as demonstrated in the example above.</p><h2>Keyboard Manipulation</h2><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree_move-note-with-keyboard.gif\" alt=\"Example of using keyboard keys to move a note\">Trilium offers efficient keyboard-based manipulation using the following <a href=\"#root/_help_A9Oc6YKKc65v\">shortcuts</a>:</p><ul><li><kbd>Ctrl</kbd> + <kbd><span>↑</span></kbd> and <kbd>Ctrl</kbd> +<kbd><span>↓</span></kbd>: Move the note up or down in the order.</li><li><kbd>Ctrl</kbd>+<kbd><span>←</span></kbd>: Move the note up in the hierarchy by changing its parent to the note's grandparent.</li><li><kbd>Ctrl</kbd>+<kbd><span>→</span></kbd>: Move the note down in the hierarchy by setting its parent to the note currently above it (this action is best understood through a demo or hands-on experience).</li><li><kbd><span>←</span></kbd> and <kbd><span>→</span></kbd>: Expand and collapse a sub-tree.</li></ul><h2>Context Menu</h2><p>You can also move notes using the familiar cut and paste functions available in the context menu, or with the associated keyboard <a href=\"#root/_help_A9Oc6YKKc65v\">shortcuts</a>: <code spellcheck=\"false\">CTRL-C</code> ( <a href=\"#root/_help_IakOLONlIfGI\">copy</a>), <kbd>Ctrl</kbd> + <kbd>X</kbd> (cut) and <kbd>Ctrl</kbd> + <kbd>V</kbd> (paste).</p><p>See <a class=\"reference-link\" href=\"#root/_help_YtSN43OrfzaA\">Note tree contextual menu</a> for more information.</p><h2>Tree Settings</h2><p>Click the tree icon in the tree toolbar to open the tree settings popup. It contains the following options:</p><ul><li><strong>Hide archived notes</strong>: When enabled, archived notes are not shown in the tree.</li><li><strong>Automatically collapse notes</strong>: When enabled, notes are collapsed after a period of inactivity to keep the tree tidy.</li><li><strong>Follow active note</strong>: When enabled (default), the tree automatically scrolls and expands parent nodes to keep the currently active note visible. When disabled, the tree is fully detached from navigation — only the background highlight of the active note is updated, but the tree viewport and its expanded/collapsed state are never changed by navigation. Use the crosshair button to manually jump the tree to the active note at any time.</li></ul><h2>Keyboard shortcuts</h2><p>The note tree comes with multiple keyboard shortcuts to make editing faster, consult the dedicated <a class=\"reference-link\" href=\"#root/_help_DvdZhoQZY9Yd\">Keyboard shortcuts</a> section.</p>","_help_YtSN43OrfzaA": "<figure class=\"image image-style-align-right\"><img style=\"aspect-ratio:269/608;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree/1_Note%20tree%20contextual%20menu_image.png\" width=\"269\" height=\"608\"></figure><p>The <em>note tree menu</em> can be accessed by right-clicking in the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>.</p><h2>Interaction</h2><p>The contextual menu can operate:</p><ul><li>On a single note, by right clicking it in the note tree.</li><li>On multiple notes, by selecting them first. See <a class=\"reference-link\" href=\"#root/_help_yTjUdsOi4CIE\">Multiple selection</a> on how to do so.<ul><li>When right clicking, do note that usually the note being right clicked is also included in the affected notes, regardless of whether it was selected or not.</li></ul></li></ul><h2>Available options</h2><aside class=\"admonition note\"><p>When multiple notes are selected, only a subset of notes will be active. The ones that do support multiple notes will mention this in the list below.</p></aside><ul><li><strong>Open in a new tab</strong><ul><li>Will open a single note in a new <a href=\"#root/_help_3seOhtN8uLIY\">tab</a>.</li></ul></li><li><strong>Open in a new split</strong><ul><li>Will open a split to the right with the given note within the current tab.</li></ul></li><li><strong>Hoist note</strong><ul><li>Will focus the note tree on this note. See <a class=\"reference-link\" href=\"#root/_help_OR8WJ7Iz9K4U\">Note Hoisting</a> for more information.</li></ul></li><li><strong>Insert note after</strong><ul><li>Allows easy creation of a note with a specified <a href=\"#root/_help_KSZ04uQ2D1St\">note type</a>.</li><li><a class=\"reference-link\" href=\"#root/_help_KC1HB96bqqHX\">Templates</a> will also be present (if any) at the end of the list.</li><li>The note will be added on the same level of hierarchy as the note selected.</li></ul></li><li><strong>Insert child note</strong><ul><li>Same as <em>Insert note after</em>, but the note will be created as a child of the selected note.</li></ul></li><li><strong>Protect subtree</strong><ul><li>Will mark this note and all of its descendents as protected. See <a class=\"reference-link\" href=\"#root/_help_bwg0e8ewQMak\">Protected Notes</a> for more information.</li></ul></li><li><strong>Unprotect subtree</strong><ul><li>Will unprotect this note and all of its descendents.</li></ul></li><li><strong>Cut</strong><ul><li>Will place the given notes in clipboard.</li><li>Use one of the two paste functions (or the keyboard shortcuts) to move them to the desired location.</li></ul></li><li><strong>Copy / clone</strong><ul><li>Will place the given notes in clipboard.</li><li>Use one of the two paste functions (or the keyboard shortcuts) to copy them to the desired location.</li><li>Note that the copy function here works according to the <a class=\"reference-link\" href=\"#root/_help_IakOLONlIfGI\">Cloning Notes</a> functionality (i.e. the note itself will be present in two locations at once, and editing it in one place will edit it everywhere).</li><li>To simply create a duplicate note that can be modified independently, look for <em>Duplicate subtree</em>.</li></ul></li><li><strong>Paste into</strong><ul><li>If there are any notes in clipboard, they will be pasted as child notes to the right-clicked one.</li></ul></li><li><strong>Paste after</strong><ul><li>If there are any notes in clipboard, they will be pasted underneath the right-clicked one.</li></ul></li><li><strong>Move to…</strong><ul><li>Will display a modal to specify where to move the desired notes.</li></ul></li><li><strong>Clone to…</strong><ul><li>Will display a modal to specify where to <a href=\"#root/_help_IakOLONlIfGI\">clone</a> the desired notes.</li></ul></li><li><strong>Duplicate</strong><ul><li>Creates a copy of the note and its descendants.</li><li>This process is different from <a class=\"reference-link\" href=\"#root/_help_IakOLONlIfGI\">Cloning Notes</a> since the duplicated note can be edited independently from the original.</li><li>An alternative to this, if done regularly, would be <a class=\"reference-link\" href=\"#root/_help_KC1HB96bqqHX\">Templates</a>.</li></ul></li><li><strong>Archive/Unarchive</strong><ul><li>Marks a note as <a href=\"#root/_help_MKmLg5x6xkor\">archived</a>.</li><li>If the note is already archived, it will be unarchived instead.</li><li>Multiple notes can be selected as well. However, all the selected notes must be in the same state (archived or not), otherwise the option will be disabled.</li></ul></li><li><strong>Delete</strong><ul><li>Will delete the given notes, asking for confirmation first.</li><li>In the dialog, the following options can be configured:<ul><li><em>Delete also all clones</em> to ensure that the note will be deleted everywhere if it has been placed into multiple locations (see <a class=\"reference-link\" href=\"#root/_help_IakOLONlIfGI\">Cloning Notes</a>).</li><li><em>Erase notes permanently</em> will ensure that the note cannot be recovered from <a class=\"reference-link\" href=\"#root/_help_r5JGHN99bVKn\">Recent Changes</a>.</li></ul></li></ul></li><li><strong>Import into note</strong><ul><li>Opens the <a href=\"#root/_help_mHbBMPDPkVV5\">import</a> dialog and places the imported notes as child notes of the selected one.</li></ul></li><li><strong>Export</strong><ul><li>Opens the <a href=\"#root/_help_mHbBMPDPkVV5\">export</a> dialog for the selected notes.</li></ul></li><li><strong>Search in subtree</strong><ul><li>Opens a full <a class=\"reference-link\" href=\"#root/_help_eIg8jdvaoNNd\">Search</a> with it preconfigured to only look into this note and its descendants (the <em>Ancestor</em> field).</li></ul></li></ul><h2>Advanced options</h2><figure class=\"image image-style-align-right\"><img style=\"aspect-ratio:231/263;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree/Note%20tree%20contextual%20menu_image.png\" width=\"231\" height=\"263\"></figure><p>The advanced options menu offers some of the less frequently used actions for notes.</p><p>To access these options, first look for the <em>Advanced</em> option in the contextual menu to reveal a sub-menu with:</p><ul><li><strong>Apply bulk actions</strong><ul><li>Opens the <a class=\"reference-link\" href=\"#root/_help_ivYnonVFBxbQ\">Bulk Actions</a> dialog, to apply actions such as adding labels or moving notes to multiple notes at once (see <a class=\"reference-link\" href=\"#root/_help_yTjUdsOi4CIE\">Multiple selection</a>).</li></ul></li><li><strong>Edit branch prefix</strong><ul><li>Opens a dialog to assign a name to be able to distinguish <a href=\"#root/_help_IakOLONlIfGI\">clones</a>, see <a class=\"reference-link\" href=\"#root/_help_TBwsyfadTA18\">Branch prefix</a> for more information.</li></ul></li><li><strong>Convert to attachment</strong><ul><li>Converts the selected notes to <a class=\"reference-link\" href=\"#root/_help_0vhv7lsOLy82\">Attachments</a> of their parent notes.</li><li>This functional is most useful when dealing with image <a class=\"reference-link\" href=\"#root/_help_W8vYD3Q1zjCR\">File</a> notes that were imported from an external source or an older version of Trilium.</li></ul></li><li><strong>Expand subtree</strong><ul><li>Expands all the child notes in the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>.</li></ul></li><li><strong>Collapse subtree</strong><ul><li>Collapses all the child notes in the note tree.</li></ul></li><li><strong>Sort by…</strong><ul><li>Opens a dialog to sort all the child notes of the selected note.</li><li>The sorting is done only once, there is an automatic sorting mechanism as well that can be set using <a class=\"reference-link\" href=\"#root/_help_zEY4DaJG4YT5\">Attributes</a>.</li><li>See <a class=\"reference-link\" href=\"#root/_help_aGlEvb9hyDhS\">Sorting Notes</a> for more information.</li></ul></li><li><strong>Copy note path to clipboard</strong><ul><li>Copies a URL fragment representing the full path to this branch for a note, such as <code spellcheck=\"false\">#root/Hb2E70L7HPuf/4sRFgMZhYFts/2IVuShedRJ3U/LJVMvKXOFv7n</code>.</li><li>The URL to manually create <a class=\"reference-link\" href=\"#root/_help_QEAPj01N5f7w\">Links</a> within notes, or for note <a class=\"reference-link\" href=\"#root/_help_wArbEsdSae6g\">Navigation</a>.</li></ul></li><li><strong>Recent changes in subtree</strong><ul><li>This will open <a class=\"reference-link\" href=\"#root/_help_r5JGHN99bVKn\">Recent Changes</a>, but filtered to only the changes related to this note or one of its descendants.</li></ul></li></ul>",- "_help_yTjUdsOi4CIE": "<p>In the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>, it's possible to select multiple notes at one time. This won't affect the currently displayed note, but it allows to do batch operations.</p><h2>Types of multiple selection</h2><figure class=\"image image-style-align-right image_resized\" style=\"width:28.54%;\"><img style=\"aspect-ratio:335/306;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree/Multiple%20selection_image.png\" width=\"335\" height=\"306\"></figure><h3>Selecting notes one by one</h3><p>To individually select each note, press the <kbd>Alt</kbd> key and click on the note to be selected.</p><p>The selected notes will be indicated via a different background color and an icon.</p><h3>Selecting notes in a sequence</h3><figure class=\"image image-style-align-right image_resized\" style=\"width:29.24%;\"><img style=\"aspect-ratio:233/205;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree/1_Multiple%20selection_image.png\" width=\"233\" height=\"205\"></figure><p>When notes are in a sequence (e.g. one underneath the other), the entire selection can be made just by selecting the first and the last item instead of individually clicking all the notes.</p><p>To do so, first select the note to start the selection with. Then hold <kbd>Shift</kbd> and click on the note to end the selection with. All the notes between the start and the end note will be selected as well.</p><h2>Selected notes vs. active note</h2><p>There is a distinction between <em>selected notes</em> and the <em>active note</em>:</p><ul><li><em>Selected notes</em> are simply the notes that were selected in the multiple section process (i.e. either via <kbd>Alt</kbd> or <kbd>Shift</kbd>).</li><li>The <em>active note</em> is simply the note that whose content is being displayed to the right of the tree.<ul><li><p>Visually, it's identified in the tree by having a different background color and a subtle shadow.</p></li><li><p>The active note can also be selected case in which the icon and background will also change:</p><img class=\"image_resized\" style=\"aspect-ratio:317/223;width:35.1%;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree/2_Multiple%20selection_image.png\" width=\"317\" height=\"223\"></li></ul></li></ul>",+ "_help_yTjUdsOi4CIE": "<p>In the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>, it's possible to select multiple notes at one time. This won't affect the currently displayed note, but it allows to do batch operations.</p><h2>Types of multiple selection</h2><figure class=\"image image-style-align-right image_resized\" style=\"width:28.54%;\"><img style=\"aspect-ratio:335/306;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree/Multiple%20selection_image.png\" width=\"335\" height=\"306\"></figure><h3>Selecting notes one by one</h3><p>To individually select each note, press the <kbd>Alt</kbd> key and click on the note to be selected.</p><p>The selected notes will be indicated via a different background color and an icon.</p><h3>Selecting notes in a sequence</h3><figure class=\"image image-style-align-right image_resized\" style=\"width:29.24%;\"><img style=\"aspect-ratio:233/205;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree/1_Multiple%20selection_image.jpg\" width=\"233\" height=\"205\"></figure><p>When notes are in a sequence (e.g. one underneath the other), the entire selection can be made just by selecting the first and the last item instead of individually clicking all the notes.</p><p>To do so, first select the note to start the selection with. Then hold <kbd>Shift</kbd> and click on the note to end the selection with. All the notes between the start and the end note will be selected as well.</p><h2>Selected notes vs. active note</h2><p>There is a distinction between <em>selected notes</em> and the <em>active note</em>:</p><ul><li><em>Selected notes</em> are simply the notes that were selected in the multiple section process (i.e. either via <kbd>Alt</kbd> or <kbd>Shift</kbd>).</li><li>The <em>active note</em> is simply the note that whose content is being displayed to the right of the tree.<ul><li><p>Visually, it's identified in the tree by having a different background color and a subtle shadow.</p></li><li><p>The active note can also be selected case in which the icon and background will also change:</p><img class=\"image_resized\" style=\"aspect-ratio:317/223;width:35.1%;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree/2_Multiple%20selection_image.png\" width=\"317\" height=\"223\"></li></ul></li></ul>","_help_DvdZhoQZY9Yd": "<p>The <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a> comes with multiple keyboard shortcuts to make editing faster:</p><h2>Navigation within the tree</h2><ul><li><kbd><span>↑</span></kbd> and <kbd><span>↑</span></kbd> to navigate between notes.</li><li><kbd><span>←</span></kbd> to collapse a note with children, or <kbd><span>→</span></kbd> to expand it.</li><li><kbd><span>←</span></kbd> on a note with no children to navigate to its parent.</li></ul><h2>Opening notes</h2><ul><li><kbd>Click</kbd> to open the note in the current tab.</li><li><kbd>Ctrl</kbd>+<kbd>Click</kbd> or <kbd>Middle click</kbd> to open the note in a new tab.</li><li><kbd>Ctrl</kbd>+<kbd>Right click</kbd> to open the note in <a class=\"reference-link\" href=\"#root/_help_ZjLYv08Rp3qC\">Quick edit</a>.</li></ul><h2>Clipboard management</h2><ul><li><kbd>Ctrl</kbd>+<kbd>C</kbd> to copy one or more notes based on selection (see <a class=\"reference-link\" href=\"#root/_help_IakOLONlIfGI\">Cloning Notes</a>).</li><li><kbd>Ctrl</kbd>+<kbd>X</kbd> to cut one or more notes (for moving them).</li><li><kbd>Ctrl</kbd>+<kbd>V</kbd> to paste them somewhere (which results in a copy or move based on the shortcut used).</li></ul><h2>Moving notes</h2><ul><li><kbd>Ctrl</kbd> + <kbd><span>↑</span></kbd> , <kbd>Ctrl</kbd> + <kbd><span>↓</span></kbd> - move note up/down in the note list.</li><li><kbd>Ctrl</kbd> + <kbd><span>←</span></kbd> - move note up in the note tree.</li><li><kbd>Ctrl</kbd>+<kbd><span>→</span></kbd> - move note down in the note tree.</li><li><kbd>Del</kbd> - deletes note and optionally its subtree (asked in the dialog).</li></ul><h2>Multiple selection</h2><p>See <a class=\"reference-link\" href=\"#root/_help_yTjUdsOi4CIE\">Multiple selection</a> for more information about how selection works.</p><ul><li><kbd>Alt</kbd>+<kbd>Click</kbd> – add a single note to the current selection.</li><li><kbd>Shift</kbd>+<kbd>Click</kbd> – select a range of notes, starting from the current note (the highlighted one) to the one that is being clicked.</li><li><kbd>Shift</kbd>+<kbd><span>↑</span></kbd>, <kbd>Shift</kbd>+<kbd><span>↓</span></kbd> – multi-select not above/below.</li><li><kbd>Ctrl</kbd>+<kbd>A</kbd> – select all notes in the current level</li></ul>","_help_wyaGBBQrl4i3": "<figure class=\"image image-style-align-right\"><img style=\"aspect-ratio:328/45;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree/1_Hiding%20the%20subtree_image.png\" width=\"328\" height=\"45\"><figcaption>An example of a collection with a relatively large number of children that are hidden from the tree.</figcaption></figure><p>The tree works well when the notes are structured in a hierarchy so that the number of items stays small. When a note has a large number of notes (in the order of thousands or tens of thousands), two problems arise:</p><ul><li>Navigating between notes becomes cumbersome and the tree itself gets cluttered with a large amount of notes.</li><li>The large amount of notes can slow down the application considerably.</li></ul><p>Since v0.102.0, Trilium allows the tree to hide the child notes of particular notes. This works for both <a class=\"reference-link\" href=\"#root/_help_GTwFsgaA0lCt\">Collections</a> and normal notes.</p><h2>Interaction</h2><p>When the subtree of a note is hidden, there are a few subtle changes:</p><ul><li>To indicate that the subtree is hidden, the note will not have an expand button and it will display the number of children to the right.</li><li>It's not possible to add a new note directly from the tree.<ul><li>For <a class=\"reference-link\" href=\"#root/_help_GTwFsgaA0lCt\">Collections</a>, it's best to use the built-in mechanism to create notes (for example by creating a new point on a geo-map, or by adding a new row in a table).</li><li>For normal notes, it's still possible to create children via other means such as using the <a class=\"reference-link\" href=\"#root/_help_hrZ1D00cLbal\">Internal (reference) links</a> system.</li></ul></li><li>Notes can be dragged from outside the note, case in which they will be cloned into it.<ul><li>Instead of switching to the child notes that were copied, the parent note is highlighted instead.</li><li>A notification will indicate this behavior.</li></ul></li><li>Similarly, features such as cut/copy and then paste into the note will also work.</li></ul><h2>Spotlighting</h2><figure class=\"image image-style-align-right\"><img style=\"aspect-ratio:322/83;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree/Hiding%20the%20subtree_image.png\" width=\"322\" height=\"83\"></figure><p>Even if the subtree of a note is hidden, if a child note manages to become active, it will still appear inside the tree in a special state called <em>spotlighted</em>.</p><p>During this state, the note remains under its normal hierarchy, so that its easy to tell its location. In addition, this means that:</p><ul><li>The note position is clearly visible when using the <a class=\"reference-link\" href=\"#root/_help_eIg8jdvaoNNd\">Search</a>.</li><li>The note can still be operated on from the tree, such as adding a <a class=\"reference-link\" href=\"#root/_help_TBwsyfadTA18\">Branch prefix</a> or moving it outside the collection.</li></ul><p>The note appears in italics to indicate its temporary display. When switching to another note, the spotlighted note will disappear.</p><aside class=\"admonition note\"><p>Only one note can be highlighted at the time. When working with multiple notes such as dragging them into the collection, no note will be spotlighted. This is intentional to avoid displaying a partial state of the subtree.</p></aside><h2>Working with collections</h2><p>For large collections, it can be helpful to hide their child notes for performance reasons or de-cluttering the tree.</p><p>To toggle this behavior:</p><ul><li>Open the collection and in <a class=\"reference-link\" href=\"#root/_help_CssoWBu8I7jF\">Collection Properties</a>, look for <em>Hide child notes in tree</em>.</li><li>Right click the collection note in the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a> and select <em>Advanced</em> → <em>Show subtree</em>.</li></ul><h2>Working with normal notes</h2><p>It's possible to hide the subtree for normal notes as well, not just collections. To do so, right click the note in the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a> and select <em>Advanced</em> → <em>Hide subtree.</em></p>",- "_help_BlN9DFI679QC": "<p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Ribbon_image.png\"></p><p>The ribbon allows changing options, attributes and viewing information about the current note.</p><h2>Settings</h2><p>It is possible to change whether some ribbon items will be automatically open when navigating to a new note. To do so, in <a href=\"#root/_help_4TIF1oA4VQRO\">Settings</a>, go to <em>Appearance</em> and look for the <em>Ribbon widgets</em> section.</p><h2>Formatting</h2><p>If you are using the <em>Fixed</em> formatting toolbar, all the formatting buttons for text notes will appear here. See <a href=\"#root/_help_nRhnJkTT8cPs\">Formatting toolbar</a> for more information.</p><h2>Tabs</h2><h3>Basic Properties</h3><ul><li><em><strong>Note type</strong></em> allows changing the <a href=\"#root/_help_KSZ04uQ2D1St\">note type</a> of a note.<ul><li>Generally this is desirable only if the note is empty.</li><li>As a more advanced use, it's possible to change the note type in order to modify the <a href=\"#root/_help_4FahAwuGTAwC\">source code</a> of a note.</li></ul></li><li><em><strong>Protect the note</strong></em> toggles whether the current note is encrypted and accessible only by entering the protected session. See <a href=\"#root/_help_bwg0e8ewQMak\">Protected Notes</a> for more information.</li><li><em><strong>Editable</strong></em> changes whether the current note:<ul><li>Enters <a href=\"#root/_help_CoFPLs3dRlXc\">read-only mode</a> automatically if the note is too big (default behavior).</li><li>Is always in read-only mode (however it can still be edited temporarily).</li><li>Is always editable, regardless of its size.</li></ul></li><li><em><strong>Bookmark</strong></em> toggles the display of the current note into the <a href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a> for easy access. See <a href=\"#root/_help_u3YFHC9tQlpm\">Bookmarks</a> for more information.</li><li><em><strong>Shared</strong></em> toggles whether the current note is publicly accessible if you have a <a href=\"#root/_help_WOcw2SLH6tbX\">server instance</a> set up. See <a href=\"#root/_help_R9pX4DGra2Vt\">Sharing</a> for more information.</li><li><em><strong>Template</strong></em> toggles whether the current note is considered a template and can be used to easily create notes with the same content. See <a href=\"#root/_help_KC1HB96bqqHX\">Template</a> for more information.</li><li><em><strong>Language</strong></em> changes the main language of the current note, mostly useful for spell checking or right-to-left support. See <a href=\"#root/_help_veGu4faJErEM\">Content language & Right-to-left support</a> for more information.</li></ul><h3>Owned Attributes</h3><p>This section allows editing the labels and relations of a note. For more information, see <a href=\"#root/_help_zEY4DaJG4YT5\">Attributes</a>.</p><p>The plus button to the right offers a simplified way to insert labels and relations, via a graphical input. From this menu, it's also possible to define label and relation definitions (see <a href=\"#root/_help_OFXdgB2nNk1F\">Promoted Attributes</a>).</p><h3>Inherited Attributes</h3><p>This section displays the attributes which are applied to this note via <a href=\"#root/_help_bwZpz2ajCEwO\">Attribute Inheritance</a>. It is not possible to alter the attributes from this section.</p><h3>Note Paths</h3><p>This section displays all the places where the current note has been cloned to. Here the current note can also be cloned to a new location (similar to the <a href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>) See <a href=\"#root/_help_IakOLONlIfGI\">Cloning Notes</a> for more information.</p><h3>Note Map</h3><p>The note map displays all the relations of the current note to other notes, as well as the subtree structure. See <a href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a> for more information.</p><h3>Similar Notes</h3><p>This section lists all the notes that are similar to the current one. See <a href=\"#root/_help_xWtq5NUHOwql\">Similar Notes</a> for more information.</p><h3>Note Info</h3><p>This section displays information about the current note:</p><ul><li>The <a href=\"#root/_help_m1lbrzyKDaRB\">internal ID</a> of the note.</li><li>The <a href=\"#root/_help_KSZ04uQ2D1St\">type of the note</a>, as well as its MIME type (used mostly for exporting notes).</li><li>The created and modification dates.</li><li>The estimated size of the note in the <a href=\"#root/_help_wX4HbRucYSDD\">Database</a>, as well as its children count and size.</li></ul><h3>Edited notes</h3><p>This section pops automatically when entering a <a href=\"#root/_help_l0tKav7yLHGF\">day note</a> and shows the notes that were edited that day.</p><p>It is possible to disable this behavior from settings, by going to <a class=\"reference-link\" href=\"#root/_hidden/_options/_optionsAppearance\">Appearance</a> settings and looking for the <em>Ribbon widgets</em> section.</p>",+ "_help_BlN9DFI679QC": "<p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Ribbon_image.jpg\"></p><p>The ribbon allows changing options, attributes and viewing information about the current note.</p><h2>Settings</h2><p>It is possible to change whether some ribbon items will be automatically open when navigating to a new note. To do so, in <a href=\"#root/_help_4TIF1oA4VQRO\">Settings</a>, go to <em>Appearance</em> and look for the <em>Ribbon widgets</em> section.</p><h2>Formatting</h2><p>If you are using the <em>Fixed</em> formatting toolbar, all the formatting buttons for text notes will appear here. See <a href=\"#root/_help_nRhnJkTT8cPs\">Formatting toolbar</a> for more information.</p><h2>Tabs</h2><h3>Basic Properties</h3><ul><li><em><strong>Note type</strong></em> allows changing the <a href=\"#root/_help_KSZ04uQ2D1St\">note type</a> of a note.<ul><li>Generally this is desirable only if the note is empty.</li><li>As a more advanced use, it's possible to change the note type in order to modify the <a href=\"#root/_help_4FahAwuGTAwC\">source code</a> of a note.</li></ul></li><li><em><strong>Protect the note</strong></em> toggles whether the current note is encrypted and accessible only by entering the protected session. See <a href=\"#root/_help_bwg0e8ewQMak\">Protected Notes</a> for more information.</li><li><em><strong>Editable</strong></em> changes whether the current note:<ul><li>Enters <a href=\"#root/_help_CoFPLs3dRlXc\">read-only mode</a> automatically if the note is too big (default behavior).</li><li>Is always in read-only mode (however it can still be edited temporarily).</li><li>Is always editable, regardless of its size.</li></ul></li><li><em><strong>Bookmark</strong></em> toggles the display of the current note into the <a href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a> for easy access. See <a href=\"#root/_help_u3YFHC9tQlpm\">Bookmarks</a> for more information.</li><li><em><strong>Shared</strong></em> toggles whether the current note is publicly accessible if you have a <a href=\"#root/_help_WOcw2SLH6tbX\">server instance</a> set up. See <a href=\"#root/_help_R9pX4DGra2Vt\">Sharing</a> for more information.</li><li><em><strong>Template</strong></em> toggles whether the current note is considered a template and can be used to easily create notes with the same content. See <a href=\"#root/_help_KC1HB96bqqHX\">Template</a> for more information.</li><li><em><strong>Language</strong></em> changes the main language of the current note, mostly useful for spell checking or right-to-left support. See <a href=\"#root/_help_veGu4faJErEM\">Content language & Right-to-left support</a> for more information.</li></ul><h3>Owned Attributes</h3><p>This section allows editing the labels and relations of a note. For more information, see <a href=\"#root/_help_zEY4DaJG4YT5\">Attributes</a>.</p><p>The plus button to the right offers a simplified way to insert labels and relations, via a graphical input. From this menu, it's also possible to define label and relation definitions (see <a href=\"#root/_help_OFXdgB2nNk1F\">Promoted Attributes</a>).</p><h3>Inherited Attributes</h3><p>This section displays the attributes which are applied to this note via <a href=\"#root/_help_bwZpz2ajCEwO\">Attribute Inheritance</a>. It is not possible to alter the attributes from this section.</p><h3>Note Paths</h3><p>This section displays all the places where the current note has been cloned to. Here the current note can also be cloned to a new location (similar to the <a href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>) See <a href=\"#root/_help_IakOLONlIfGI\">Cloning Notes</a> for more information.</p><h3>Note Map</h3><p>The note map displays all the relations of the current note to other notes, as well as the subtree structure. See <a href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a> for more information.</p><h3>Similar Notes</h3><p>This section lists all the notes that are similar to the current one. See <a href=\"#root/_help_xWtq5NUHOwql\">Similar Notes</a> for more information.</p><h3>Note Info</h3><p>This section displays information about the current note:</p><ul><li>The <a href=\"#root/_help_m1lbrzyKDaRB\">internal ID</a> of the note.</li><li>The <a href=\"#root/_help_KSZ04uQ2D1St\">type of the note</a>, as well as its MIME type (used mostly for exporting notes).</li><li>The created and modification dates.</li><li>The estimated size of the note in the <a href=\"#root/_help_wX4HbRucYSDD\">Database</a>, as well as its children count and size.</li></ul><h3>Edited notes</h3><p>This section pops automatically when entering a <a href=\"#root/_help_l0tKav7yLHGF\">day note</a> and shows the notes that were edited that day.</p><p>It is possible to disable this behavior from settings, by going to <a class=\"reference-link\" href=\"#root/_hidden/_options/_optionsAppearance\">Appearance</a> settings and looking for the <em>Ribbon widgets</em> section.</p>","_help_3seOhtN8uLIY": "<figure class=\"image image-style-align-center\"><img style=\"aspect-ratio:1119/43;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/2_Tabs_image.png\" width=\"1119\" height=\"43\"></figure><p>In Trilium, tabs allow easy switching between notes.</p><h2>Layout</h2><p>Depending on the <a class=\"reference-link\" href=\"#root/_help_x0JgW8UqGXvq\">Vertical and horizontal layout</a>:</p><ul><li>For the vertical layout, the tabs will be placed at the top but to the right of the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>.</li><li>For the horizontal layout, the tabs will be placed at the top in full-width, above the <a href=\"#root/_help_oPVyFC7WL2Lp\">note tree</a>, allowing for more tabs to be comfortably displayed.</li></ul><h2>Interaction</h2><ul><li>To create a new tab, press the <img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/1_Tabs_image.png\"> button that is to the right of the last tab.</li><li>To close a tab, press the corresponding <img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Tabs_image.png\"> button.</li><li>For multitasking, tabs can be used alongside <a class=\"reference-link\" href=\"#root/_help_luNhaphA37EO\">Split View</a>. Each tab can have one or more notes, displayed horizontally.</li><li>Tabs can be reordered by drag-and-dropping it into a new position.</li><li>An existing tab can be displayed in a new window by dragging the tab upwards or downwards. It is not possible to combine tabs back into another window.</li></ul><h2>Keyboard interaction</h2><p>Since tabs are a commonly used feature, there are multiple keyboard shortcuts that can be used:</p><ul><li><kbd>Ctrl</kbd>+<kbd>T</kbd> to open a new tab.</li><li><kbd>Ctrl</kbd>+<kbd>W</kbd> to close the current tab.</li><li><kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>T</kbd> to reopen the last closed tab.</li><li><kbd>Ctrl</kbd>+<kbd>Tab</kbd> and <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>Tab</kbd> to go to the next or previous tab.</li><li><kbd>Ctrl</kbd>+<kbd>1</kbd>, <kbd>Ctrl</kbd>+<kbd>2</kbd>, up to <kbd>Ctrl</kbd>+<kbd>9</kbd> to activate the first, second and up to ninth tab.</li><li>There is also a shortcut to go to the last tab, but it is not assigned a key by default.</li></ul><h2>Mobile</h2><figure class=\"image image-style-align-right image_resized\" style=\"width:34.12%;\"><img style=\"aspect-ratio:1242/2688;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Tabs_IMG_1767.PNG\" width=\"1242\" height=\"2688\"></figure><p>Tabs are also supported on the <a class=\"reference-link\" href=\"#root/_help_RDslemsQ6gCp\">Mobile Frontend</a>.</p><p>Since v0.102.0, the tabs are displayed by pressing the dedicated tab switcher button in the <a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>. In this view the tabs are laid out on a grid with a preview of the note content.</p><p>The context menu button at the top-right of the popup allows creating a new tab, reopening the last closed tab and closing all the tabs.</p><p><a class=\"reference-link\" href=\"#root/_help_luNhaphA37EO\">Split View</a>s are also indicated in the tab switcher, with two titles displayed in a tab.</p><aside class=\"admonition note\"><p>Versions prior to v0.102.0 also supported tabs, but they were displayed directly above the <a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>. The decision to use a more mobile-like tab switcher was taken because the original tab bar could not support many tabs at once and the new design better aligns with how mobile applications handle tabs.</p></aside>",- "_help_xYmIYSP6wE3F": "<h2>Position of the Launch bar</h2><p>On desktop, 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 <a class=\"reference-link\" href=\"#root/_help_x0JgW8UqGXvq\">Vertical and horizontal layout</a> for more information.</p><p>On mobile, the launch bar will always be at the bottom.</p><p>If there are too many items in the launch bar to fit the screen, it will become scrollable.</p><h2>Terminology</h2><ul><li><strong>Launcher</strong>: a button that can be (or is) displayed on the launch bar.</li><li><strong>Available Launcher</strong>: a launcher that is not displayed on the launch bar, but can be added.</li><li><strong>Visible Launcher</strong>: a launcher that is currently displayed on the launch bar.</li></ul><h2>Configuring the desktop Launch bar</h2><p>There are two ways to configure the launch bar:</p><ul><li>Right click in the empty space between launchers on the launch bar and select <em>Configure Launchbar.</em></li><li>Click on the <a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a> and select <em>Configure Launchbar</em>.</li></ul><p>This will open a new tab with the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a> listing the launchers.</p><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Launch%20Bar_image.png\"></p><p>Expanding <em>Available Launchers</em> section will show the list of launchers that are not displayed on the launch bar. The <em>Visible Launchers</em> will show the ones that are currently displayed.</p><h2>Configuring the mobile launch bar</h2><p>The launch bar on mobile uses a different configuration from the desktop one. The reasoning is that not all desktop icons are available on mobile, and fewer icons fit on a mobile screen.</p><p>To configure the launch bar on mobile, go to <a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a> and select <em>Configure Launchbar</em>.</p><p>The configure the mobile launch bar while on the desktop (especially useful to configure more complicated launchers such as scripts or custom widgets), go to <a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a> → Advanced → Show Hidden Subtree and look for the <em>Mobile Launch Bar</em> section. While in the hidden subtree, it's also possible to drag launchers between the <em>Mobile Launch Bar</em> and (Desktop) <em>Launch Bar</em> sections.</p><h3>Adding/removing and reordering launchers</h3><p>To display a new launcher in the launch bar, first look for it in the <em>Available Launchers</em> section. Then right click it and select <em>Move to visible launchers</em>. It is also possible to drag and drop the item manually.</p><p>Similarly, to remove it from the launch bar, simply look for it in <em>Visible Launchers</em> then right click it and select <em>Move to available launchers</em> or use drag-and-drop.</p><p>Drag-and-drop the items in the tree in order to change their order. See <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a> for more interaction options, including using keyboard shortcuts.</p><h2>Customizing the launcher</h2><ul><li>The icon of a launcher can be changed just like a normal note. See <a class=\"reference-link\" href=\"#root/_help_p9kXRFAkwN4o\">Note Icons</a> for more information.</li><li>The title of the launcher can also be changed.</li></ul><h3>Resetting</h3><p>Resetting allows restoring the original configuration of Trilium for the launcher bar, or for a portion of it. Simply right click a launcher (or even the entire <em>Launch Bar</em> section) and select <em>Reset</em> to bring it back to the original state.</p><h3>Creating new launchers / types of launchers</h3><p>Right click either the <em>Available launchers</em> or <em>Visible launchers</em> sections and select one of the options:</p><ol><li><p><strong>Note Launcher</strong><br>A note launcher will simply navigate to a specified note.</p><ol><li>Set the <code spellcheck=\"false\">target</code> promoted attribute to the note to navigate to.</li><li>Optionally, set <code spellcheck=\"false\">hoistedNote</code> to hoist a particular note. See <a class=\"reference-link\" href=\"#root/_help_OR8WJ7Iz9K4U\">Note Hoisting</a> for more information.</li><li>Optionally, set a <code spellcheck=\"false\">keyboardShortcut</code> to trigger the launcher.</li></ol></li><li><p><strong>Script Launcher</strong><br>An advanced launcher which will run a script upon pressing. See <a class=\"reference-link\" href=\"#root/_help_CdNpE2pqjmI6\">Scripting</a> for more information.</p><ol><li>Set <code spellcheck=\"false\">script</code> to point to the desired script to run.</li><li>Optionally, set a <code spellcheck=\"false\">keyboardShortcut</code> to trigger the launcher.</li></ol></li><li><p><strong>Custom Widget</strong></p><p>Allows defining a custom widget to be rendered inside the launcher. See <a class=\"reference-link\" href=\"#root/_help_SynTBQiBsdYJ\">Widget Basics</a> for more information.</p></li><li><p><strong>Spacers</strong><br>Launchers that create some distance between other launchers for better visual distinction.</p></li></ol><p>Launchers are configured via predefined <a class=\"reference-link\" href=\"#root/_help_OFXdgB2nNk1F\">Promoted Attributes</a>.</p>",+ "_help_xYmIYSP6wE3F": "<h2>Position of the Launch bar</h2><p>On desktop, 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 <a class=\"reference-link\" href=\"#root/_help_x0JgW8UqGXvq\">Vertical and horizontal layout</a> for more information.</p><p>On mobile, the launch bar will always be at the bottom.</p><p>If there are too many items in the launch bar to fit the screen, it will become scrollable.</p><h2>Terminology</h2><ul><li><strong>Launcher</strong>: a button that can be (or is) displayed on the launch bar.</li><li><strong>Available Launcher</strong>: a launcher that is not displayed on the launch bar, but can be added.</li><li><strong>Visible Launcher</strong>: a launcher that is currently displayed on the launch bar.</li></ul><h2>Configuring the desktop Launch bar</h2><p>There are two ways to configure the launch bar:</p><ul><li>Right click in the empty space between launchers on the launch bar and select <em>Configure Launchbar.</em></li><li>Click on the <a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a> and select <em>Configure Launchbar</em>.</li></ul><p>This will open a new tab with the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a> listing the launchers.</p><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Launch%20Bar_image.jpg\"></p><p>Expanding <em>Available Launchers</em> section will show the list of launchers that are not displayed on the launch bar. The <em>Visible Launchers</em> will show the ones that are currently displayed.</p><h2>Configuring the mobile launch bar</h2><p>The launch bar on mobile uses a different configuration from the desktop one. The reasoning is that not all desktop icons are available on mobile, and fewer icons fit on a mobile screen.</p><p>To configure the launch bar on mobile, go to <a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a> and select <em>Configure Launchbar</em>.</p><p>The configure the mobile launch bar while on the desktop (especially useful to configure more complicated launchers such as scripts or custom widgets), go to <a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a> → Advanced → Show Hidden Subtree and look for the <em>Mobile Launch Bar</em> section. While in the hidden subtree, it's also possible to drag launchers between the <em>Mobile Launch Bar</em> and (Desktop) <em>Launch Bar</em> sections.</p><h3>Adding/removing and reordering launchers</h3><p>To display a new launcher in the launch bar, first look for it in the <em>Available Launchers</em> section. Then right click it and select <em>Move to visible launchers</em>. It is also possible to drag and drop the item manually.</p><p>Similarly, to remove it from the launch bar, simply look for it in <em>Visible Launchers</em> then right click it and select <em>Move to available launchers</em> or use drag-and-drop.</p><p>Drag-and-drop the items in the tree in order to change their order. See <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a> for more interaction options, including using keyboard shortcuts.</p><h2>Customizing the launcher</h2><ul><li>The icon of a launcher can be changed just like a normal note. See <a class=\"reference-link\" href=\"#root/_help_p9kXRFAkwN4o\">Note Icons</a> for more information.</li><li>The title of the launcher can also be changed.</li></ul><h3>Resetting</h3><p>Resetting allows restoring the original configuration of Trilium for the launcher bar, or for a portion of it. Simply right click a launcher (or even the entire <em>Launch Bar</em> section) and select <em>Reset</em> to bring it back to the original state.</p><h3>Creating new launchers / types of launchers</h3><p>Right click either the <em>Available launchers</em> or <em>Visible launchers</em> sections and select one of the options:</p><ol><li><p><strong>Note Launcher</strong><br>A note launcher will simply navigate to a specified note.</p><ol><li>Set the <code spellcheck=\"false\">target</code> promoted attribute to the note to navigate to.</li><li>Optionally, set <code spellcheck=\"false\">hoistedNote</code> to hoist a particular note. See <a class=\"reference-link\" href=\"#root/_help_OR8WJ7Iz9K4U\">Note Hoisting</a> for more information.</li><li>Optionally, set a <code spellcheck=\"false\">keyboardShortcut</code> to trigger the launcher.</li></ol></li><li><p><strong>Script Launcher</strong><br>An advanced launcher which will run a script upon pressing. See <a class=\"reference-link\" href=\"#root/_help_CdNpE2pqjmI6\">Scripting</a> for more information.</p><ol><li>Set <code spellcheck=\"false\">script</code> to point to the desired script to run.</li><li>Optionally, set a <code spellcheck=\"false\">keyboardShortcut</code> to trigger the launcher.</li></ol></li><li><p><strong>Custom Widget</strong></p><p>Allows defining a custom widget to be rendered inside the launcher. See <a class=\"reference-link\" href=\"#root/_help_SynTBQiBsdYJ\">Widget Basics</a> for more information.</p></li><li><p><strong>Spacers</strong><br>Launchers that create some distance between other launchers for better visual distinction.</p></li></ol><p>Launchers are configured via predefined <a class=\"reference-link\" href=\"#root/_help_OFXdgB2nNk1F\">Promoted Attributes</a>.</p>","_help_8YBEPzcpUgxw": "<p>To the right of the <a href=\"#root/_help_BlN9DFI679QC\">Ribbon</a> there are a few more buttons: <img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Note%20buttons_image.png\"></p><ul><li>The Note Revisions button displays the <a href=\"#root/_help_vZWERwf8U3nx\">Note Revisions</a> for that particular note.</li><li>The contextual menu offers commands for the note or its subtree, such as import, export, viewing the <a href=\"#root/_help_4FahAwuGTAwC\">Note source code</a> or <a href=\"#root/_help_0vhv7lsOLy82\">Attachments</a>.</li></ul><p>On the <a class=\"reference-link\" href=\"#root/_help_IjZS7iK5EXtb\">New Layout</a>, the button area is populated by some more buttons that are specific to the current note. For example, for Image and <a class=\"reference-link\" href=\"#root/_help_W8vYD3Q1zjCR\">File</a> notes, the download and copy buttons were relocated there.</p>","_help_4TIF1oA4VQRO": "<figure class=\"image image-style-align-center\"><img style=\"aspect-ratio:1189/709;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Options_image.png\" width=\"1189\" height=\"709\"></figure><p>The Options section allows the configuration of the TriliumNext client and server.</p><h2>Entering options</h2><p>The Options can be accessed via:</p><ul><li>The <a href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>, by selecting the <em>Options</em> item.</li><li>The <img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/1_Options_image.png\"> button in the <a href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a> which can optionally be hidden if not desirable.</li><li>Optionally, a keyboard shortcut can be defined, but it is not assigned by default.</li><li>By clicking on this link: <a class=\"reference-link\" href=\"#root/_hidden/_options\">Options</a>.</li></ul><p>Once in the options section, simply select one of the option categories using the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>.</p><h2>Exiting options</h2><p>When entering the options, they are opened in a new <a href=\"#root/_help_3seOhtN8uLIY\">tab</a>. To close them, simply close the tab.</p><h2>Options when using sync</h2><p>When using <a class=\"reference-link\" href=\"#root/_help_cbkrhQjrkKrh\">Synchronization</a>, some of the options will be kept in sync across all the devices while others can be changed independently.</p><p>Generally, the options that relate to appearance are intentionally kept not synced in order to allow per-client customization (layout orientation, theme, vertical/horizontal layout, code block themes).</p>","_help_luNhaphA37EO": "<p>In Trilium, is possible to work with two or more notes side-by-side.</p><figure class=\"image image-style-align-center\"><img style=\"aspect-ratio:1398/1015;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Split%20View_2_Split%20View_image.png\" width=\"1398\" height=\"1015\"></figure><h2><strong>Interactions</strong></h2><ul><li>Press the <img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Split%20View_Split%20View_image.png\"> button to the right of a note's title to open a new split to the right of it.<ul><li>It is possible to have as many splits as desired, simply press again the button.</li><li>Only horizontal splits are possible, vertical or drag & dropping is not supported.</li></ul></li><li>When at least one split is open, press the <img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Split%20View_3_Split%20View_image.png\"> button next to it to close it.</li><li>Use the <img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Split%20View_4_Split%20View_image.png\"> or the <img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Split%20View_1_Split%20View_image.png\"> button to move around the splits.</li><li>Each <a href=\"#root/_help_3seOhtN8uLIY\">tab</a> has its own split view configuration (e.g. one tab can have two notes in a split view, whereas the others are one-note views).<ul><li>The tab will indicate only the title of the main note (the first one in the list).</li></ul></li></ul><h2>Splits and the note tree & hoisting</h2><p>Clicking on the content of a split will focus that split. While focused, the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a> will also indicate the note that is being edited.</p><p>It is possible for each of the splits to have their own <a class=\"reference-link\" href=\"#root/_help_OR8WJ7Iz9K4U\">Note Hoisting</a>.</p><p>When a new split is created, it will share the same note hoisting as the previous one. An easy solution to this is to simply hoist the notes after the split is created.</p><p>This is generally quite useful for reorganizing notes from one place to the other, by hoisting the old place in the first split and hoisting the new place to the second one. This will allow easy cut and paste without the tree jumping around from switching between notes.</p><h2>Mobile support</h2><p>Since v0.100.0, it's possible to have a split view on the mobile view as well, with the following differences from the desktop version of the split:</p><ul><li>On smartphones, the split views are laid out vertically (one on the top and one on the bottom), instead of horizontally as on the desktop.</li><li>There can be only one split open per tab.</li><li>It's not possible to resize the two split panes.</li><li>When the keyboard is opened, the active note will be “maximized”, thus allowing for more space even when a split is open. When the keyboard is closed, the splits become equal in size again.</li></ul><p>Interaction:</p><ul><li>To create a new split, click the three dots button on the right of the note title and select <em>Create new split</em>.<ul><li>This option will only be available if there is no split already open in the current tab.</li></ul></li><li>To close a split, click the three dots button on the right of the note title and select <em>Close this pane</em>.<ul><li>Note that this option will only be available on the second note in the split (the one at the bottom on smartphones, the one on the right on tablets).</li></ul></li><li>When long-pressing a link, a contextual menu will show up with an option to <em>Open note in a new split</em>.<ul><li>If there's already a split, the option will replace the existing split instead.</li></ul></li></ul>",@@ -76,18 +76,18 @@"_help_S0Fos78ZfcY7": "<p>The inbox is the default destination for quickly captured notes. When a note is created without picking a location first, it lands in the inbox. This makes it easy to quickly capture notes and sort them later.</p><h2>Where the inbox is used</h2><ul><li>The <em>New note</em> button in the <a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>.</li><li>The global <em>Create note into inbox</em> shortcut (default <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>P</kbd>).</li><li>The <em>New note</em> action in the <a href=\"#root/_help_7iwde4lsKc6O\">tray icon menu</a>.</li><li>The <a class=\"reference-link\" href=\"#root/_help_MtPxeAWVAzMg\">Web Clipper</a> extension.</li></ul><h2>Setting a note inbox</h2><p>To create a note inbox, apply the <code spellcheck=\"false\">#inbox</code> <a href=\"#root/_help_HI6GBBIduIgv\">label</a> to it.</p><p>Only one note should carry this label. If there are multiple notes, only one will be used by the application.</p><aside class=\"admonition note\"><p>If there is no inbox note, Trilium will fall back to today's <a href=\"#root/_help_l0tKav7yLHGF\">day note</a> instead.</p></aside><h2>Workspace inboxes</h2><p>Each <a href=\"#root/_help_9sRHySam5fXb\">workspace</a> can have its own inbox, set via the <code spellcheck=\"false\">#workspaceInbox</code> label.</p><p>When a new note is created while hoisted in a workspace, the location is determined in the following order:</p><ul><li>A note carrying the <code spellcheck=\"false\">#workspaceInbox</code> label in that workspace.</li><li>A note carrying the <code spellcheck=\"false\">#inbox</code> within that workspace.</li><li>The workspace root note itself.</li></ul>","_help_5Ct4MAJTS4tQ": "<p>Deleted notes are listed in the \"Deleted Notes\" dialog (<strong>Global Menu → Show Deleted Notes</strong>) and can be restored by pressing the \"<strong>undelete</strong>\" link.</p><p>If a note has child notes, they will be restored along with it. Should the original location no longer exist (e.g. the parent has been deleted), the note will be restored into the default location for new notes (<a class=\"reference-link\" href=\"#root/_help_S0Fos78ZfcY7\">Note Inbox</a>).</p><aside class=\"admonition note\"><p>When a note is hoisted in the tree, the dialog will only display notes deleted from the subtree of that hoisted note.</p></aside><p>To permanently erase deleted notes and clear the list, press the three-dots menu and select <strong>\"Erase deleted notes now\"</strong>.</p><p>Deleted notes are permanently erased after a certain amount of time (7 days by default). To change this interval, press the three-dots menu and select <strong>\"Deleted Notes Settings\"</strong>.</p>","_help_kBrnXNG3Hplm": "<p>This page explains the basic concepts related to the tree structure of notes in TriliumNext.</p><h2>Note</h2><p>A note is the central entity in TriliumNext. For more details, see <a class=\"reference-link\" href=\"#root/_help_BFs8mudNFgCS\">Notes</a>.</p><h2>Branch</h2><p>A branch describes the placement of a note within the note tree. Essentially, it is a tuple of <code spellcheck=\"false\">parentNoteId</code> and <code spellcheck=\"false\">noteId</code>, indicating that the given note is placed as a child under the specified parent note.</p><p>Each note can have multiple branches, meaning any note can be placed in multiple locations within the tree. This concept is referred to as <a class=\"reference-link\" href=\"#root/_help_IakOLONlIfGI\">Cloning Notes</a>.</p><h2>Prefix</h2><p>A prefix is a branch-specific title modifier for a note. If you place your note in two different locations within the tree and want to alter the title slightly in one of those placements, you can use a prefix.</p><p>To edit a prefix, right-click on the note in the tree pane and select <em>Edit branch prefix</em>.</p><p>The prefix is not part of the note itself and is not encrypted when the note is protected. This can be useful if you want part of the title to remain visible in the tree for easier navigation, even when the note is protected.</p><h2>Subtree</h2><p>A subtree consists of a particular note (the subtree root) and all its children and descendants. Some operations, such as exporting, work on entire subtrees.</p>",- "_help_MMiBEQljMQh2": "<p>One of the Trilium's goals is to provide fast and comfortable navigation between notes.</p><h2>Backwards and forward</h2><p>You can use alt-left and alt-right to move back and forward in history of viewed pages.</p><p>This works identically to browser backwards / forwards, it's actually using built-in browser support for this.</p><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/Navigation/Note%20Navigation_image.png\"></p><h2>Jump to note</h2><p>This is useful to quickly find and view arbitrary notes - click on <code spellcheck=\"false\">Jump to</code> button on the top or press <kbd>Ctrl</kbd> + <kbd>J</kbd> . Then type part of the note name and autocomplete will help you pick the desired note.</p><p>See <a class=\"reference-link\" href=\"#root/_help_F1r9QtzQLZqm\">Jump to Note</a> for more information.</p>",+ "_help_MMiBEQljMQh2": "<p>One of the Trilium's goals is to provide fast and comfortable navigation between notes.</p><h2>Backwards and forward</h2><p>You can use alt-left and alt-right to move back and forward in history of viewed pages.</p><p>This works identically to browser backwards / forwards, it's actually using built-in browser support for this.</p><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/Navigation/Note%20Navigation_image.jpg\"></p><h2>Jump to note</h2><p>This is useful to quickly find and view arbitrary notes - click on <code spellcheck=\"false\">Jump to</code> button on the top or press <kbd>Ctrl</kbd> + <kbd>J</kbd> . Then type part of the note name and autocomplete will help you pick the desired note.</p><p>See <a class=\"reference-link\" href=\"#root/_help_F1r9QtzQLZqm\">Jump to Note</a> for more information.</p>","_help_Ms1nauBra7gq": "<figure class=\"image image-style-align-center\"><img style=\"aspect-ratio:659/256;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/Navigation/Quick%20search_image.png\" width=\"659\" height=\"256\"></figure><p>The <em>Quick search</em> function does a full-text search (that is, it searches through the content of notes and not just the title of a note) and displays the result in an easy-to-access manner.</p><p>The alternative to the quick search is the <a class=\"reference-link\" href=\"#root/_help_eIg8jdvaoNNd\">Search</a> function, which opens in a dedicated tab and has support for advanced queries.</p><p>For even faster navigation, it's possible to use <a class=\"reference-link\" href=\"#root/_help_F1r9QtzQLZqm\">Jump to...</a> which will only search through the note titles instead of the content.</p><h2>Layout</h2><p>Based on the <a class=\"reference-link\" href=\"#root/_help_x0JgW8UqGXvq\">Vertical and horizontal layout</a>, the quick search is placed:</p><ul><li>On the vertical layout, it is displayed right above the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>.</li><li>On the horizontal layout, it is displayed in the <a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>, where it can be positioned just like any other icon.</li></ul><h2>Search Features</h2><p>Quick search includes the following features:</p><h3>Content Previews</h3><p>Search results now display a 200-character preview of the note content below the note title. This preview shows the context where your search terms appear, making it easier to identify the right note without opening it.</p><h3>Infinite Scrolling</h3><p>Results are loaded progressively as you scroll:</p><ul><li>Initial display shows 15 results</li><li>Scrolling near the bottom automatically loads 10 more results</li><li>Continue scrolling to load all matching notes</li></ul><h3>Visual Features</h3><ul><li><strong>Highlighting</strong>: Search terms appear in bold with accent colors</li><li><strong>Separation</strong>: Results are separated with dividers</li><li><strong>Theme Support</strong>: Highlighting colors adapt to light/dark themes</li></ul><h3>Search Behavior</h3><p>Quick search uses progressive search:</p><ol><li>Shows exact matches first</li><li>Includes fuzzy matches when exact results are fewer than 5</li><li>Exact matches appear before fuzzy matches</li></ol><h3>Keyboard Navigation</h3><ul><li>Press <code spellcheck=\"false\">Enter</code> to open the first result</li><li>Use arrow keys to navigate through results</li><li>Press <code spellcheck=\"false\">Escape</code> to close the quick search</li></ul><h2>Using Quick Search</h2><ol><li><strong>Typo tolerance</strong>: Search finds results despite minor typos</li><li><strong>Content previews</strong>: 200-character snippets show match context</li><li><strong>Infinite scrolling</strong>: Additional results load on scroll</li><li><strong>Specific terms</strong>: Specific search terms return more focused results</li><li><strong>Match locations</strong>: Bold text indicates where matches occur</li></ol><h2>Quick Search - Exact Match Operator</h2><p>Quick Search now supports the exact match operator (<code spellcheck=\"false\">=</code>) at the beginning of your search query. This allows you to search for notes where the title or content exactly matches your search term, rather than just containing it.</p><h3>Usage</h3><p>To use exact match in Quick Search:</p><ol><li>Start your search query with the <code spellcheck=\"false\">=</code> operator</li><li>Follow it immediately with your search term (no space after <code spellcheck=\"false\">=</code>)</li></ol><h4>Examples</h4><ul><li><code spellcheck=\"false\">=example</code> - Finds notes with title exactly \"example\" or content exactly \"example\"</li><li><code spellcheck=\"false\">=Project Plan</code> - Finds notes with title exactly \"Project Plan\" or content exactly \"Project Plan\"</li><li><code spellcheck=\"false\">='hello world'</code> - Use quotes for multi-word exact matches</li></ul><h4>Comparison with Regular Search</h4><figure class=\"table\"><table>\n<thead>\n<tr>\n<th>Query</th>\n<th>Behavior</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code spellcheck=\"false\">example</code></td>\n<td>Finds all notes containing \"example\" anywhere in title or content</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">=example</code></td>\n<td>Finds only notes where the title equals \"example\" or content equals \"example\" exactly</td>\n</tr>\n</tbody></table></figure><h3>Technical Details</h3><p>When you use the <code spellcheck=\"false\">=</code> operator:</p><ul><li>The search performs an exact match on note titles</li><li>For note content, it looks for exact matches of the entire content</li><li>Partial word matches are excluded</li><li>The search is case-insensitive</li></ul><h3>Limitations</h3><ul><li>The <code spellcheck=\"false\">=</code> operator must be at the very beginning of the search query</li><li>Spaces after <code spellcheck=\"false\">=</code> will treat it as a regular search</li><li>Multiple <code spellcheck=\"false\">=</code> operators (like <code spellcheck=\"false\">==example</code>) are treated as regular text search</li></ul><h3>Use Cases</h3><p>This feature is particularly useful when:</p><ul><li>You know the exact title of a note</li><li>You want to find notes with specific, complete content</li><li>You need to distinguish between notes with similar but not identical titles</li><li>You want to avoid false positives from partial matches</li></ul><h3>Related Features</h3><ul><li>For more complex exact matching queries, use the full <a href=\"#root/_help_eIg8jdvaoNNd\">Search</a> functionality</li><li>For fuzzy matching (finding results despite typos), use the <code spellcheck=\"false\">~=</code> operator in the full search</li><li>For partial matches with wildcards, use operators like <code spellcheck=\"false\">*=*</code>, <code spellcheck=\"false\">=*</code>, or <code spellcheck=\"false\">*=</code> in the full search</li></ul>","_help_F1r9QtzQLZqm": "<figure class=\"image image-style-align-center\"><img style=\"aspect-ratio:991/403;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/Navigation/1_Jump%20to%20%26%20command%20palette_image.png\" width=\"991\" height=\"403\"></figure><h2>Jump to Note</h2><p>The <em>Jump to Note</em> function allows easy navigation between notes by searching for their title. In addition to that, it can also trigger a full search or create notes.</p><p>To enter the “Jump to” dialog:</p><ul><li>In the <a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>, press <img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/Navigation/2_Jump%20to%20%26%20command%20palette_image.png\"> button.</li><li>Using the keyboard, press <kbd>Ctrl</kbd> + <kbd>J</kbd>.</li></ul><p>In addition to searching for notes, it is also possible to search for commands. See the dedicated section below for more information.</p><h3>Interaction</h3><ul><li>By default, when there is no text entered it will display the most recent notes.</li><li>Using the keyboard, use the up or down arrow keys to navigate between items. Press <kbd>Enter</kbd> to open the desired note.</li><li>If the note doesn't exist, it's possible to create it by typing the desired note title and selecting the <em>Create and link child note</em> option.</li></ul><h2>Recent notes</h2><p>Jump to note also has the ability to show the list of recently viewed / edited notes and quickly jump to it.</p><p>To access this functionality, click on <code spellcheck=\"false\">Jump to</code> button on the top. By default, (when nothing is entered into autocomplete), this dialog will show the list of recent notes.</p><p>Alternatively you can click on the \"time\" icon on the right.</p><h2>Command Palette</h2><figure class=\"image image-style-align-center\"><img style=\"aspect-ratio:982/524;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/Navigation/Jump%20to%20%26%20command%20palette_image.png\" width=\"982\" height=\"524\"></figure><p>The command palette is a feature which allows easy execution of various commands that can be found throughout the application, such as from menus or keyboard shortcuts. This feature integrates directly into the “Jump to” dialog.</p><h3>Interaction</h3><p>To trigger the command palette:</p><ul><li>Press <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>J</kbd> to display the command palette directly.</li><li>If in the “Jump to” dialog, type <code spellcheck=\"false\">></code> in the search to switch to the command palette.</li></ul><p>Interaction:</p><ul><li>Type a few words to filter between commands.</li><li>Use the up and down arrows on the keyboard or the mouse to select a command.</li><li>Press <kbd>Enter</kbd> to execute the command.</li></ul><p>To exit the command palette:</p><ul><li>Remove the <code spellcheck=\"false\">></code> in the search to go back to the note search.</li><li>Press <kbd>Esc</kbd> to dismiss the dialog entirely.</li></ul><h3>Options available</h3><p>Currently the following options are displayed:</p><ul><li>Most of the <a class=\"reference-link\" href=\"#root/_help_A9Oc6YKKc65v\">Keyboard Shortcuts</a> have an entry, with the exception of those that are too specific to be run from a dialog.</li><li>Some additional options which are not yet available as keyboard shortcuts, but can be accessed from various menus such as: exporting a note, showing attachments, searching for notes or configuring the <a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>.</li></ul><h3>Limitations</h3><p>Currently it's not possible to define custom actions that are displayed in the command palette. In the future this might change by integrating the options in the launch bar, which can be customized if needed.</p>","_help_eIg8jdvaoNNd": "<figure class=\"image\"><img style=\"aspect-ratio:987/725;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/Navigation/Search_image.png\" width=\"987\" height=\"725\"></figure><p>Note search enables you to find notes by searching for text in the title, content, or <a href=\"#root/_help_zEY4DaJG4YT5\">attributes</a> of the notes. You also have the option to save your searches, which will create a special search note which is visible on your navigation tree and contains the search results as sub-items.</p><h2>Accessing the search</h2><ul><li>From the <a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>, look for the dedicated search button.</li><li>To limit the search to a note and its children, select <em>Search from subtree</em> from the <a class=\"reference-link\" href=\"#root/_help_YtSN43OrfzaA\">Note tree contextual menu</a> or press <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>S</kbd>.</li></ul><h2>Interaction</h2><p>To search for notes, click on the magnifying glass icon on the toolbar or press the keyboard <a href=\"#root/_help_A9Oc6YKKc65v\">shortcut</a>.</p><ol><li>Set the text to search for in the <em>Search string</em> field.<ol><li>Apart from searching for words literally, there is also the possibility to search for attributes or properties of notes.</li><li>See the examples below for more information.</li></ol></li><li>To limit the search to a note and its sub-children, set a note in <em>Ancestor</em>.<ol><li>This value is also pre-filled if the search is triggered from a <a href=\"#root/_help_OR8WJ7Iz9K4U\">hoisted note</a> or a <a href=\"#root/_help_9sRHySam5fXb\">workspace</a>.</li><li>To search the entire database, keep the value empty.</li></ol></li><li>To limit the search to only a few levels of hierarchy (e.g. look in sub-children but not in sub-sub-children of a note), set the <em>depth</em> field to one of the provided values.</li><li>In addition to that, the search can be configured via the <em>Add search options</em> buttons, as described in the follow-up section.</li><li>Press <em>Search</em> to trigger the search. The results are displayed below the search configuration pane.</li><li>The <em>Search & Execute actions</em> button is only relevant if at least one action has been added (as described in the section below).</li><li>The <em>Save to note</em> will create a new note with the search configuration. For more information, see <a class=\"reference-link\" href=\"#root/_help_m523cpzocqaD\">Saved Search</a>.</li></ol><h2>Search options</h2><p>Click on which search option to apply from the Add search option section.</p><ul><li>For each search option selected, the search configuration will update to reveal the entry. Each search option will have its own configuration.</li><li>To remove a search option, simply press the X button to the right of it.</li></ul><p>The options available are:</p><ol><li>Search script<ol><li>This feature allows writing a <a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a> note that will handle the search on its own.</li></ol></li><li>Fast search<ol><li>The search will not look into the content of the notes, but it will still look into note titles and attributes, relations (based on the search query).</li><li>This method can speed up the search considerably for large <a href=\"#root/_help_wX4HbRucYSDD\">databases</a>.</li></ol></li><li>Include archived<ol><li><a class=\"reference-link\" href=\"#root/_help_MKmLg5x6xkor\">Archived Notes</a> will also be included in the results, whereas otherwise they would be ignored.</li></ol></li><li>Order by<ol><li>Allows changing the criteria for ordering the results, for example to order by creation date or alphabetically instead of by relevancy (default).</li><li>It's also possible to change the order (ascending or descending) of the results.</li></ol></li><li>Limit<ol><li>Limits the results to a given maximum.</li><li>This can help if the number of results would otherwise be high, at the cost of not being able to view all the results.</li></ol></li><li>Debug<ol><li>This will print additional information in the server log (see <a class=\"reference-link\" href=\"#root/_help_qzNzp9LYQyPT\">Error logs</a>), regarding how the search expression was parsed.</li><li>This function is especially useful after understanding the search functionality in detail, in order to determine why a complex search query is not working as expected.</li></ol></li><li>Action<ol><li>Apart from just searching, it is also possible to apply actions such as to add a label or a relation to the notes that have been matched by the search.</li><li>Unlike other search configurations, here it's possible to apply the same action multiple times (i.e. in order to be able to apply multiple labels to notes).</li><li>The actions given are the same as the ones in <a class=\"reference-link\" href=\"#root/_help_ivYnonVFBxbQ\">Bulk Actions</a>, which is an alternative for operating directly with notes within the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>.</li><li>After defining the actions, first press <em>Search</em> to check the matched notes and then press <em>Search & Execute actions</em> to trigger the actions.</li></ol></li></ol><h3>Simple Note Search Examples</h3><ul><li><code spellcheck=\"false\">rings tolkien</code>: Full-text search to find notes containing both \"rings\" and \"tolkien\".</li><li><code spellcheck=\"false\">\"The Lord of the Rings\" Tolkien</code>: Full-text search where \"The Lord of the Rings\" must match exactly.</li><li><code spellcheck=\"false\">note.content *=* rings OR note.content *=* tolkien</code>: Find notes containing \"rings\" or \"tolkien\" in their content.</li><li><code spellcheck=\"false\">towers #book</code>: Combine full-text and attribute search to find notes containing \"towers\" and having the \"book\" label.</li><li><code spellcheck=\"false\">towers #book or #author</code>: Search for notes containing \"towers\" and having either the \"book\" or \"author\" label.</li><li><code spellcheck=\"false\">towers #!book</code>: Search for notes containing \"towers\" and not having the \"book\" label.</li><li><code spellcheck=\"false\">#book #publicationYear = 1954</code>: Find notes with the \"book\" label and \"publicationYear\" set to 1954.</li><li><code spellcheck=\"false\">#genre *=* fan</code>: Find notes with the \"genre\" label containing the substring \"fan\". Additional operators include <code spellcheck=\"false\">*=*</code> for \"contains\", <code spellcheck=\"false\">=*</code> for \"starts with\", <code spellcheck=\"false\">*=</code> for \"ends with\", and <code spellcheck=\"false\">!=</code> for \"is not equal to\".</li><li><code spellcheck=\"false\">#book #publicationYear >= 1950 #publicationYear < 1960</code>: Use numeric operators to find all books published in the 1950s.</li><li><code spellcheck=\"false\">#dateNote >= TODAY-30</code>: Find notes with the \"dateNote\" label within the last 30 days. Supported date values include NOW +- seconds, TODAY +- days, MONTH +- months, YEAR +- years.</li><li><code spellcheck=\"false\">~author.title *=* Tolkien</code>: Find notes related to an author whose title contains \"Tolkien\".</li><li><code spellcheck=\"false\">#publicationYear %= '19[0-9]{2}'</code>: Use the '%=' operator to match a regular expression (regex). This feature has been available since Trilium 0.52.</li><li><code spellcheck=\"false\">note.content %= '\\\\d{2}:\\\\d{2} (PM|AM)'</code>: Find notes that mention a time. Backslashes in a regex must be escaped.</li></ul><h3>Fuzzy Search</h3><p>Trilium supports fuzzy search operators that find results with typos or spelling variations:</p><ul><li><code spellcheck=\"false\">#title ~= trilim</code>: Fuzzy exact match - finds notes with titles like \"Trilium\" even if you typed \"trilim\" (with typo)</li><li><code spellcheck=\"false\">#content ~* progra</code>: Fuzzy contains match - finds notes containing words like \"program\", \"programmer\", \"programming\" even with slight misspellings</li><li><code spellcheck=\"false\">note.content ~* develpment</code>: Will find notes containing \"development\" despite the typo</li></ul><p><strong>Important notes about fuzzy search:</strong></p><ul><li>Fuzzy search requires at least 3 characters in the search term</li><li>Maximum edit distance is 2 characters (number of character changes needed)</li><li>Diacritics are normalized (e.g., \"café\" matches \"cafe\")</li><li>Fuzzy matches work best for finding content with minor typos or spelling variations</li></ul><h3>Advanced Use Cases</h3><ul><li><code spellcheck=\"false\">~author.relations.son.title = 'Christopher Tolkien'</code>: Search for notes with an \"author\" relation to a note that has a \"son\" relation to \"Christopher Tolkien\". This can be modeled with the following note structure:<ul><li>Books<ul><li>Lord of the Rings<ul><li>label: “book”</li><li>relation: “author” points to “J. R. R. Tolkien” note</li></ul></li></ul></li><li>People<ul><li>J. R. R. Tolkien<ul><li>relation: “son” points to \"Christopher Tolkien\" note</li><li>Christopher Tolkien</li></ul></li></ul></li></ul></li><li><code spellcheck=\"false\">~author.title *= Tolkien OR (#publicationDate >= 1954 AND #publicationDate <= 1960)</code>: Use boolean expressions and parentheses to group expressions. Note that expressions starting with a parenthesis need an \"expression separator sign\" (# or ~) prepended.</li><li><code spellcheck=\"false\">note.parents.title = 'Books'</code>: Find notes with a parent named \"Books\".</li><li><code spellcheck=\"false\">note.parents.parents.title = 'Books'</code>: Find notes with a grandparent named \"Books\".</li><li><code spellcheck=\"false\">note.ancestors.title = 'Books'</code>: Find notes with an ancestor named \"Books\".</li><li><code spellcheck=\"false\">note.children.title = 'sub-note'</code>: Find notes with a child named \"sub-note\".</li></ul><h3>Search with Note Properties</h3><p>Notes have properties that can be used in searches, such as <code spellcheck=\"false\">noteId</code>, <code spellcheck=\"false\">dateModified</code>, <code spellcheck=\"false\">dateCreated</code>, <code spellcheck=\"false\">isProtected</code>, <code spellcheck=\"false\">type</code>, <code spellcheck=\"false\">title</code>, <code spellcheck=\"false\">text</code>, <code spellcheck=\"false\">content</code>, <code spellcheck=\"false\">rawContent</code>, <code spellcheck=\"false\">ownedLabelCount</code>, <code spellcheck=\"false\">labelCount</code>, <code spellcheck=\"false\">ownedRelationCount</code>, <code spellcheck=\"false\">relationCount</code>, <code spellcheck=\"false\">ownedRelationCountIncludingLinks</code>, <code spellcheck=\"false\">relationCountIncludingLinks</code>, <code spellcheck=\"false\">ownedAttributeCount</code>, <code spellcheck=\"false\">attributeCount</code>, <code spellcheck=\"false\">targetRelationCount</code>, <code spellcheck=\"false\">targetRelationCountIncludingLinks</code>, <code spellcheck=\"false\">parentCount</code>, <code spellcheck=\"false\">childrenCount</code>, <code spellcheck=\"false\">isArchived</code>, <code spellcheck=\"false\">contentSize</code>, <code spellcheck=\"false\">noteSize</code>, and <code spellcheck=\"false\">revisionCount</code>.</p><p>These properties can be accessed via the <code spellcheck=\"false\">note.</code> prefix, e.g., <code spellcheck=\"false\">note.type = code AND note.mime = 'application/json'</code>.</p><h3>Order by and Limit</h3><pre><code class=\"language-text-x-trilium-auto\">#author=Tolkien orderBy #publicationDate desc, note.title limit 10</code></pre><p>This example will:</p><ol><li>Find notes with the author label \"Tolkien\".</li><li>Order the results by <code spellcheck=\"false\">publicationDate</code> in descending order.</li><li>Use <code spellcheck=\"false\">note.title</code> as a secondary ordering if publication dates are equal.</li><li>Limit the results to the first 10 notes.</li></ol><h3>Negation</h3><p>Some queries can only be expressed with negation:</p><pre><code class=\"language-text-x-trilium-auto\">#book AND not(note.ancestor.title = 'Tolkien')</code></pre><p>This query finds all book notes not in the \"Tolkien\" subtree.</p><h2>Progressive Search Strategy</h2><p>Trilium uses a progressive search strategy that performs exact matching first, then adds fuzzy matching when needed.</p><h3>How Progressive Search Works</h3><ol><li><strong>Phase 1 - Exact Matching</strong>: When you search, Trilium first looks for exact matches of your search terms. This handles the vast majority of searches (90%+) and returns results almost instantly.</li><li><strong>Phase 2 - Fuzzy Fallback</strong>: If Phase 1 doesn't find enough high-quality results (fewer than 5 results with good relevance scores), Trilium automatically adds fuzzy matching to find results with typos or spelling variations.</li><li><strong>Result Ordering</strong>: Exact matches always appear before fuzzy matches, regardless of individual scores. This ensures that when you search for \"project\", notes containing the exact word \"project\" will appear before notes containing similar words like \"projects\" or \"projection\".</li></ol><h3>Progressive Search Behavior</h3><ul><li><strong>Speed</strong>: Most searches complete using only exact matching</li><li><strong>Ordering</strong>: Exact matches appear before fuzzy matches</li><li><strong>Fallback</strong>: Fuzzy matching activates when exact matches return fewer than 5 results</li><li><strong>Identification</strong>: Results indicate whether they are exact or fuzzy matches</li></ul><h3>Search Performance</h3><p>Search system specifications:</p><ul><li>Content size limit: 10MB per note (previously 50KB)</li><li>Edit distance calculations for fuzzy matching</li><li>Infinite scrolling in Quick Search</li></ul><h2>Under the Hood</h2><h3>Label and Relation Shortcuts</h3><p>The \"full\" syntax for searching by labels is:</p><pre><code class=\"language-text-x-trilium-auto\">note.labels.publicationYear = 1954</code></pre><p>For relations:</p><pre><code class=\"language-text-x-trilium-auto\">note.relations.author.title *=* Tolkien</code></pre><p>However, common label and relation searches have shortcut syntax:</p><pre><code class=\"language-text-x-trilium-auto\">#publicationYear = 1954\n~author.title *=* Tolkien</code></pre><h3>Separating Full-Text and Attribute Parts</h3><p>Search syntax allows combining full-text search with attribute-based search. For example, <code spellcheck=\"false\">tolkien #book</code> contains:</p><ol><li>Full-text tokens - <code spellcheck=\"false\">tolkien</code></li><li>Attribute expressions - <code spellcheck=\"false\">#book</code></li></ol><p>Trilium detects the separation between full text search and attribute/property search by looking for certain special characters or words that denote attributes and properties (e.g., #, ~, note.). If you need to include these in full-text search, escape them with a backslash so they are processed as regular text:</p><pre><code class=\"language-text-x-trilium-auto\">\"note.txt\" \n\\#hash \n#myLabel = 'Say \"Hello World\"'</code></pre><h3>Escaping Special Characters</h3><p>Special characters can be enclosed in quotes or escaped with a backslash to be used in full-text search:</p><pre><code class=\"language-text-x-trilium-auto\">\"note.txt\"\n\\#hash\n#myLabel = 'Say \"Hello World\"'</code></pre><p>Three types of quotes are supported: single, double, and backtick.</p><h3>Type Coercion</h3><p>Label values are technically strings but can be coerced for numeric comparisons:</p><pre><code class=\"language-text-x-trilium-auto\">note.dateCreated =* '2019-05'</code></pre><p>This finds notes created in May 2019. Numeric operators like <code spellcheck=\"false\">#publicationYear >= 1960</code> convert string values to numbers for comparison.</p><h2>Auto-Trigger Search from URL</h2><p>You can open Trilium and automatically trigger a search by including the search <a href=\"https://meyerweb.com/eric/tools/dencoder/\">url encoded</a> string in the URL:</p><p><code spellcheck=\"false\">http://localhost:8080/#?searchString=abc</code></p><h2>Search Configuration</h2><h3>Parameters</h3><figure class=\"table\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code spellcheck=\"false\">MIN_FUZZY_TOKEN_LENGTH</code></td>\n<td>3</td>\n<td>Minimum characters for fuzzy matching</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">MAX_EDIT_DISTANCE</code></td>\n<td>2</td>\n<td>Maximum character changes allowed</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">RESULT_SUFFICIENCY_THRESHOLD</code></td>\n<td>5</td>\n<td>Minimum exact results before fuzzy fallback</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">MAX_CONTENT_SIZE</code></td>\n<td>10MB</td>\n<td>Maximum note content size for search processing</td>\n</tr>\n</tbody></table></figure><h3>Limits</h3><ul><li>Searched note content is limited to 10MB per note to prevent performance issues</li><li>Notes exceeding this limit will still be included in title and attribute searches</li><li>Fuzzy matching requires tokens of at least 3 characters</li></ul>","_help_u3YFHC9tQlpm": "<p>Frequently used notes can be bookmarked, which will make them appear in the <a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a> for easy access.</p><h2>Configuring the launch bar</h2><p>If bookmarks don't appear in the launch bar, then most likely the bookmark section has been hidden. Go to the <a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a> configuration from the <a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a> and ensure <em>Bookmarks</em> is in the <em>Visible Launchers</em> section.</p><h2>Bookmark folder</h2><p>Space in the left panel is limited, and you might want to bookmark many items. One possible solution is to bookmark a folder, so it shows its children:</p><p>To do this, bookmark a folder and assign it the <code spellcheck=\"false\">#bookmarkFolder</code> label.</p><h2>Mobile</h2><p>On mobile, bookmarks are only displayed starting with v0.102.0. Because of the more constrained screen size, the bookmarks are grouped under a single icon instead of displaying them as separate icons.</p><p>When pressed, a menu will appear listing all the bookmarks. Bookmark folders are also supported and will appear as sub-menus.</p>","_help_OR8WJ7Iz9K4U": "<p>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:</p><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/Navigation/Note%20Hoisting_note-hoisting.gif\"></p><p>In addition to showing only this subtree, this also narrows both full text search and <a href=\"#root/_help_MMiBEQljMQh2\">“jump to note”</a> to just notes present in hoisted subtree.</p><p>See also <a href=\"#root/_help_9sRHySam5fXb\">Workspace</a> which extends this feature.</p>","_help_ZjLYv08Rp3qC": "<figure class=\"image image-style-align-right image_resized\" style=\"width:53.13%;\"><img style=\"aspect-ratio:895/694;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/Navigation/Quick%20edit_image.png\" width=\"895\" height=\"694\"></figure><p><em>Quick edit</em> provides an alternative to the standard tab-based navigation and editing.</p><p>Instead of clicking on a note which switches the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a> to the newly selected note, or navigating between two different <a class=\"reference-link\" href=\"#root/_help_3seOhtN8uLIY\">Tabs</a>, the <em>Quick edit</em> feature opens as a popup window that can be easily dismissed.</p><p>This feature is also well integrated with <a class=\"reference-link\" href=\"#root/_help_GTwFsgaA0lCt\">Collections</a> such as the calendar view, which makes it easy to edit entries without having to go back and forth between the child note and the calendar.</p><h2>Feature highlights</h2><ul><li>All note types are supported, including <a class=\"reference-link\" href=\"#root/_help_GTwFsgaA0lCt\">Collections</a>.</li><li>Note that the <a class=\"reference-link\" href=\"#root/_help_0ESUbbAxVnoK\">Note List</a> will not be displayed, except for notes of type <a class=\"reference-link\" href=\"#root/_help_GTwFsgaA0lCt\">Collections</a>.</li><li>For <a class=\"reference-link\" href=\"#root/_help_iPIMuisry3hd\">Text</a> notes, depending on user preference, both the floating and classic editors are supported. See <a class=\"reference-link\" href=\"#root/_help_nRhnJkTT8cPs\">Formatting toolbar</a>.</li><li>The title and the note and the icon are editable, just like a normal tab.</li><li>The <a class=\"reference-link\" href=\"#root/_help_OFXdgB2nNk1F\">Promoted Attributes</a> are also displayed.<ul><li>This integrates well with <a class=\"reference-link\" href=\"#root/_help_GTwFsgaA0lCt\">Collections</a> where there are predefined attributes such as the <em>Start date</em> and <em>End date</em>, allowing for easy editing.</li></ul></li></ul><h2>Accessing the quick edit</h2><ul><li>From the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>:<ul><li>Right click on a note and select <em>Quick edit</em>.</li><li>or, press <kbd>Ctrl</kbd>+<kbd>Right click</kbd> on a note.</li></ul></li><li>On <a class=\"reference-link\" href=\"#root/_help_hrZ1D00cLbal\">Internal (reference) links</a>: <ul><li>Right click and select <em>Quick edit</em>.</li><li>or, press <kbd>Ctrl</kbd>+<kbd>Right click</kbd> on the link.</li></ul></li><li>On a <a class=\"reference-link\" href=\"#root/_help_lgKX7r3aL30x\">Note Tooltip</a>, press the quick edit icon.</li><li>In <a class=\"reference-link\" href=\"#root/_help_GTwFsgaA0lCt\">Collections</a>:<ul><li>For <a class=\"reference-link\" href=\"#root/_help_xWbu3jpNWapp\">Calendar</a>:<ul><li>Clicking on an event will open that event for quick editing.</li><li>If the calendar is for the <a class=\"reference-link\" href=\"#root/_help_l0tKav7yLHGF\">Day Notes</a> root, clicking on the day number will open the popup for that day note.</li></ul></li><li>For <a class=\"reference-link\" href=\"#root/_help_81SGnPGMk7Xc\">Geo Map</a>:<ul><li>Clicking on a marker will open that marker, but only if the map is in read-only mode.</li></ul></li></ul></li></ul><h2>Handling of read-only notes</h2><p>The Quick edit feature has a unique behavior for <a class=\"reference-link\" href=\"#root/_help_CoFPLs3dRlXc\">Read-Only Notes</a>: </p><ul><li>If the note is read-only due to performance reasons (auto read-only), then the note is made editable for quick editing.</li><li>If the note has been manually set to read-only, then the note is read-only to prevent accidental change.<ul><li>In this case, the note can still be edited by on-screen instructions.</li></ul></li></ul>",- "_help_9sRHySam5fXb": "<p>Workspace is a concept built up on top of <a href=\"#root/_help_OR8WJ7Iz9K4U\">note hoisting</a>. 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.</p><p>So far workspace consists of these features:</p><ul><li><p><a href=\"#root/_help_OR8WJ7Iz9K4U\">note hoisting</a> - you can \"zoom\" into a workspace subtree to focus only on the relevant notes</p></li><li><p>easy entering of workspace: </p><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/Navigation/1_Workspaces_image.png\"></p></li><li><p>visual identification of workspace in tabs:<br><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/Navigation/Workspaces_image.png\"></p></li></ul><h3>Configuration</h3><figure class=\"table\"><table>\n<thead>\n<tr>\n<th>Label</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code spellcheck=\"false\">workspace</code></td>\n<td>Marks this note as a workspace, button to enter the workspace is controlled by this</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">workspaceIconClass</code></td>\n<td>defines box icon CSS class which will be used in tab when hoisted to this note</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">workspaceTabBackgroundColor</code></td>\n<td>CSS color used in the note tab when hoisted to this note, use any CSS color format, e.g. \"lightblue\" or \"#ddd\". See <a href=\"https://www.w3schools.com/cssref/css_colors.asp\">https://www.w3schools.com/cssref/css_colors.asp</a>.</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">workspaceCalendarRoot</code></td>\n<td>Marking a note with this label will define a new per-workspace calendar for <a class=\"reference-link\" href=\"#root/_help_l0tKav7yLHGF\">Day Notes</a>. If there's no such note, the global calendar will be used.</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">workspaceTemplate</code></td>\n<td>This note will appear in the selection of available template when creating new note, but only when hoisted into a workspace containing this template</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">workspaceSearchHome</code></td>\n<td>new search notes will be created as children of this note when hoisted to some ancestor of this workspace note</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">workspaceInbox</code></td>\n<td>Default inbox location for new notes when hoisted to some ancestor of this workspace note. See <a class=\"reference-link\" href=\"#root/_help_S0Fos78ZfcY7\">Note Inbox</a> for more information.</td>\n</tr>\n</tbody></table></figure>",+ "_help_9sRHySam5fXb": "<p>Workspace is a concept built up on top of <a href=\"#root/_help_OR8WJ7Iz9K4U\">note hoisting</a>. 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.</p><p>So far workspace consists of these features:</p><ul><li><p><a href=\"#root/_help_OR8WJ7Iz9K4U\">note hoisting</a> - you can \"zoom\" into a workspace subtree to focus only on the relevant notes</p></li><li><p>easy entering of workspace: </p><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/Navigation/1_Workspaces_image.jpg\"></p></li><li><p>visual identification of workspace in tabs:<br><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/Navigation/Workspaces_image.jpg\"></p></li></ul><h3>Configuration</h3><figure class=\"table\"><table>\n<thead>\n<tr>\n<th>Label</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code spellcheck=\"false\">workspace</code></td>\n<td>Marks this note as a workspace, button to enter the workspace is controlled by this</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">workspaceIconClass</code></td>\n<td>defines box icon CSS class which will be used in tab when hoisted to this note</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">workspaceTabBackgroundColor</code></td>\n<td>CSS color used in the note tab when hoisted to this note, use any CSS color format, e.g. \"lightblue\" or \"#ddd\". See <a href=\"https://www.w3schools.com/cssref/css_colors.asp\">https://www.w3schools.com/cssref/css_colors.asp</a>.</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">workspaceCalendarRoot</code></td>\n<td>Marking a note with this label will define a new per-workspace calendar for <a class=\"reference-link\" href=\"#root/_help_l0tKav7yLHGF\">Day Notes</a>. If there's no such note, the global calendar will be used.</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">workspaceTemplate</code></td>\n<td>This note will appear in the selection of available template when creating new note, but only when hoisted into a workspace containing this template</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">workspaceSearchHome</code></td>\n<td>new search notes will be created as children of this note when hoisted to some ancestor of this workspace note</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">workspaceInbox</code></td>\n<td>Default inbox location for new notes when hoisted to some ancestor of this workspace note. See <a class=\"reference-link\" href=\"#root/_help_S0Fos78ZfcY7\">Note Inbox</a> for more information.</td>\n</tr>\n</tbody></table></figure>","_help_xWtq5NUHOwql": "<figure class=\"image image-style-align-right image_resized\" style=\"width:50.46%;\"><img style=\"aspect-ratio:538/290;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/Navigation/Similar%20Notes_image.png\" width=\"538\" height=\"290\"></figure><p>The Similar Notes feature tries to identify notes that relate to the current note by looking at the content of the notes, their relationships, as well as the date they were created.</p><p>To access the list of similar notes:</p><ul><li>On the <a class=\"reference-link\" href=\"#root/_help_IjZS7iK5EXtb\">New Layout</a>, go to the <a class=\"reference-link\" href=\"#root/_help_KRlZFoIH0j6p\">Connections tab</a> in the <a class=\"reference-link\" href=\"#root/_help_RnaPdbciOfeq\">Right Sidebar</a> and look for the corresponding section.</li><li>On the old layout, press the <em>Similar Notes</em> tab in the <a class=\"reference-link\" href=\"#root/_help_BlN9DFI679QC\">Ribbon</a>.</li></ul><h2>Interaction</h2><ul><li>Hover over a note to see a short preview of the note.</li><li>Click over a note to open it in the current view.</li><li><kbd>Ctrl</kbd> + click a note to open it in a separate tab.</li></ul>","_help_McngOG2jbUWX": "<figure class=\"image image_resized\" style=\"width:100%;\"><img style=\"aspect-ratio:898/93;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/Navigation/Search%20in%20note_image.png\" width=\"898\" height=\"93\"></figure><p>Local search allows you to search within the currently displayed note. </p><h2>Alternatives</h2><ul><li>Pressing Ctrl+F while in a browser while not focused in a <a class=\"reference-link\" href=\"#root/_help_iPIMuisry3hd\">Text</a> or a <a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a> note will trigger the browser's native search. This will also find text that is part of Trilium's UI.</li><li>Pressing Ctrl+F in a <a class=\"reference-link\" href=\"#root/_help_iPIMuisry3hd\">Text</a> note will reveal <a class=\"reference-link\" href=\"#root/_help_MI26XDLSAlCD\">CKEditor</a>'s search functionality.</li></ul><h2>Accessing the search</h2><ul><li>On desktop, press<kbd>Ctrl</kbd> + <kbd>F</kbd></li><li>From the <a class=\"reference-link\" href=\"#root/_help_8YBEPzcpUgxw\">Note buttons</a>, look for the context menu and select <em>Search in note</em>.</li></ul><h2>Interaction</h2><ul><li>Finding:<ul><li>Fill in the <em>Find in text…</em> with the text to search for.</li><li>The search will be executed automatically in the background.</li><li>Use up and down arrows of the text box to navigate between results.</li></ul></li><li>Replacing:<ul><li>Fill in the <em>Find in text</em>… field with the text to replace.</li><li>Fill in the <em>Replace with…</em> field the text to replace it with.</li><li>Press <em>Replace</em> to replace only the current result.</li><li>Press <em>Replace all</em> to replace all of them at once.</li></ul></li><li>Options:<ul><li><em>Case sensitive</em> – the search will distinguish upper case characters from lower case (e.g. searching for Hello will not match <code spellcheck=\"false\">hello</code>).</li><li><em>Match words</em> - the search will find only exact word matches (e.g. searching for <code spellcheck=\"false\">Java</code> will not match <code spellcheck=\"false\">JavaScript</code>).</li></ul></li></ul>","_help_A9Oc6YKKc65v": "<p>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).</p><p>It is also possible to configure most keyboard shortcuts in Options -> Keyboard shortcuts. Using <code spellcheck=\"false\">global:</code> prefix, you can assign a shortcut which will work even without Trilium being in focus (requires app restart to take effect).</p><h2>Tree</h2><p>See the corresponding section: <a class=\"reference-link\" href=\"#root/_help_DvdZhoQZY9Yd\">Keyboard shortcuts</a></p><h2>Note navigation</h2><ul><li><kbd>Alt</kbd> + <kbd><span>←</span></kbd>, <kbd>Alt</kbd> + <kbd><span>→</span></kbd> – go back / forwards in the history</li><li><kbd>Ctrl</kbd> + <kbd>J</kbd> – show <a href=\"#root/_help_MMiBEQljMQh2\">\"Jump to\" dialog</a></li><li><kbd>Ctrl</kbd> + <kbd>.</kbd> – scroll to current note (useful when you scroll away from your note or your focus is currently in the editor)</li><li><kbd><span>Backspace</span></kbd> – jumps to parent note</li><li><kbd>Alt</kbd> + <kbd>C</kbd> – collapse whole note tree</li><li><kbd>Alt</kbd> + <kbd>-</kbd> (alt with minus sign) – collapse subtree (if some subtree takes too much space on tree pane you can collapse it)</li><li>you can define a <a href=\"#root/_help_zEY4DaJG4YT5\">label</a> <code spellcheck=\"false\">#keyboardShortcut</code> with e.g. value <kbd>Ctrl</kbd> + <kbd>I</kbd> . Pressing this keyboard combination will then bring you to the note on which it is defined. Note that Trilium must be reloaded/restarted (<kbd>Ctrl</kbd> + <kbd>R</kbd> ) for changes to be in effect.</li></ul><p>See demo of some of these features in <a href=\"#root/_help_MMiBEQljMQh2\">note navigation</a>.</p><h2>Tabs</h2><ul><li><kbd>Ctrl</kbd> + <kbd>🖱 Left click</kbd> – (or middle mouse click) on note link opens note in a new tab</li></ul><p>Only in desktop (electron build):</p><ul><li><kbd>Ctrl</kbd> + <kbd>T</kbd> – opens empty tab</li><li><kbd>Ctrl</kbd> + <kbd>W</kbd> – closes active tab</li><li><kbd>Ctrl</kbd> + <kbd>Tab</kbd> – activates next tab</li><li><kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Tab</kbd> – activates previous tab</li></ul><h2>Creating notes</h2><ul><li><kbd>CTRL</kbd>+<kbd>O</kbd> – creates new note after the current note</li><li><kbd>CTRL</kbd>+<kbd>P</kbd> – creates new sub-note into current note</li><li><kbd>F2</kbd> – edit <a class=\"reference-link\" href=\"#root/_help_TBwsyfadTA18\">Branch prefix</a> of current note clone</li></ul><h2>Editing notes</h2><aside class=\"admonition note\"><p>For keyboard shortcuts specific to <a class=\"reference-link\" href=\"#root/_help_iPIMuisry3hd\">Text</a> notes, refer to <a class=\"reference-link\" href=\"#root/_help_oiVPnW8QfnvS\">Keyboard shortcuts</a> and <a class=\"reference-link\" href=\"#root/_help_QrtTYPmdd1qq\">Markdown-like formatting</a>.</p></aside><ul><li><kbd>Enter</kbd> in tree pane switches from tree pane into note title. Enter from note title switches focus to text editor. <kbd>Ctrl</kbd>+<kbd>.</kbd> switches back from editor to tree pane.</li><li><kbd>Ctrl</kbd>+<kbd>.</kbd> – jump away from the editor to tree pane and scroll to current note</li></ul><h2>Runtime shortcuts</h2><p>These are hooked in Electron to be similar to native browser keyboard shortcuts.</p><ul><li><kbd>F5</kbd>, <kbd>Ctrl</kbd>+<kbd>R</kbd> – reloads Trilium front-end</li><li><kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>I</kbd> – show developer tools</li><li><kbd>Ctrl</kbd>+<kbd>F</kbd> – show search dialog</li><li><kbd>Ctrl</kbd>+<kbd>-</kbd> – zoom out</li><li><kbd>Ctrl</kbd>+<kbd>=</kbd> – zoom in</li></ul><h2>Other</h2><ul><li><kbd>Alt</kbd> + <kbd>O</kbd> – show SQL console (use only if you know what you're doing)</li><li><kbd>Alt</kbd> + <kbd>M</kbd> – distraction-free mode - display only note editor, everything else is hidden</li><li><kbd>F11</kbd> – toggle full screen</li><li><kbd>Ctrl</kbd> + <kbd>S</kbd> – toggle <a href=\"#root/_help_eIg8jdvaoNNd\">search</a> form in tree pane</li><li><kbd>Alt</kbd> +<kbd>A</kbd> – show note <a href=\"#root/_help_zEY4DaJG4YT5\">attributes</a> dialog</li></ul>",- "_help_Wy267RK4M69c": "<h2>Default Themes</h2><p>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.</p><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/Themes_dark-theme.png\" alt=\"Dark Theme\"></p><h2>Creating Custom CSS Themes</h2><p>Trilium supports custom user themes, allowing you to personalize the application's appearance. To create a custom theme, follow these steps:</p><ol><li><strong>Create a CSS Code Note</strong>: Start by creating a new <a href=\"#root/_help_6f9hih2hXXZk\">code note</a> with the <code spellcheck=\"false\">CSS</code> type.</li><li><strong>Annotate with</strong> <code spellcheck=\"false\">#appTheme</code>: Add the <a href=\"#root/_help_zEY4DaJG4YT5\">attribute</a> <code spellcheck=\"false\">#appTheme=my-theme-name</code> to your note, where <code spellcheck=\"false\">my-theme-name</code> is the name of your custom theme.</li><li><strong>Define Your Styles</strong>: Write your custom CSS within the note. Below is an example of a custom theme:</li></ol><pre><code class=\"language-text-x-trilium-auto\">@font-face {\n font-family: 'Raleway';\n font-style: normal;\n font-weight: 400;\n src: url('/custom/fonts/raleway.woff2') format('woff2');\n}\n\n:root {\n --main-font-family: 'Raleway' !important;\n --main-font-size: normal;\n --tree-font-family: inherit;\n --tree-font-size: normal;\n --detail-font-family: inherit;\n --detail-font-size: normal;\n --detail-text-font-family: 'Garamond' !important;\n\n --main-background-color: #404552;\n --main-text-color: #AFB8C6;\n --main-border-color: #AFB8C6;\n --accented-background-color: #383C4A;\n --more-accented-background-color: #2F343F;\n --header-background-color: #383C4A;\n --button-background-color: #2F343F;\n --button-disabled-background-color: #404552;\n --button-border-color: #333;\n --button-text-color: #AFB8C6;\n --button-border-radius: 2px;\n --primary-button-background-color: #6c757d;\n --primary-button-text-color: white;\n --primary-button-border-color: #6c757d;\n --muted-text-color: #86919F;\n --input-text-color: #AFB8C6;\n --input-background-color: #404552;\n --hover-item-text-color: white;\n --hover-item-background-color: #4877B1;\n --active-item-text-color: white;\n --active-item-background-color: #4877B1;\n --menu-text-color: #AFB8C6;\n --menu-background-color: #383C4A;\n --tooltip-background-color: #383C4A;\n --link-color: lightskyblue;\n --modal-background-color: #404552;\n --modal-backdrop-color: black;\n --scrollbar-border-color: rgba(175, 184, 198, 0.5);\n}\n\nbody .note-detail-text {\n font-size: 120%;\n}\n\nbody .CodeMirror {\n filter: invert(100%) hue-rotate(180deg);\n}</code></pre><h3>Activating Your Custom Theme</h3><p>Once you've created your custom theme:</p><ol><li>Go to \"Menu\" -> \"Options\" -> \"Appearance.\"</li><li>In the theme selection dropdown, you should see your custom theme listed under the name you provided with the <code spellcheck=\"false\">#appTheme</code> <a href=\"#root/_help_zEY4DaJG4YT5\">label</a>.</li><li>Select your custom theme to activate it.</li></ol><p>If you make changes to your theme, press <kbd>Ctrl</kbd> + <kbd>R</kbd> to reload the frontend and apply your updates.</p><h3>Sharing and Importing Themes</h3><p>Custom themes can be exported as <code spellcheck=\"false\">.tar</code> archives, which can be shared with other users. However, be cautious when importing themes from untrusted sources, as they may contain executable scripts that could pose security risks.</p><p>An example user theme, <em>Steel Blue</em>, is available in the demo document.</p><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/Themes_steel-blue.png\" alt=\"Steel Blue Theme\"></p><h3>Using Custom CSS for Specific Purposes</h3><p>In addition to full themes, Trilium allows for custom CSS that isn't tied to a theme. This can be particularly useful in scripting contexts, where you might want to modify specific UI elements, such as changing the colors of notes in the tree view.</p><h3>Applying Custom CSS</h3><p>To use custom CSS:</p><ol><li><strong>Create a CSS Code Note</strong>: Create a new <a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a> note with the <code spellcheck=\"false\">CSS</code> type.</li><li><strong>Add the</strong> <code spellcheck=\"false\">appCss</code> <strong>Label</strong>: Annotate the note with the <code spellcheck=\"false\">#appCss</code> <a href=\"#root/_help_zEY4DaJG4YT5\">label</a>.</li><li><strong>Write Your CSS</strong>: Add your custom CSS rules to the note.</li></ol><p>For example:</p><pre><code class=\"language-text-x-trilium-auto\">/* Custom CSS to style specific elements */\n.tree-item {\n color: #ff6347; /* Change tree item color */\n}</code></pre><p>When Trilium's frontend starts, all notes labeled with <code spellcheck=\"false\">appCss</code> are automatically included in the style element of the HTML page.</p><p>After making changes, press <kbd>Ctrl</kbd> + <kbd>R</kbd> to reload the frontend and apply your new styles.</p><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/Themes_image.png\"></p><h3>Styling Specific Notes in the Tree</h3><p>To apply specific styles to certain notes in the tree:</p><ul><li><strong>Use the</strong> <code spellcheck=\"false\">cssClass</code> <strong>Attribute</strong>: Add the <code spellcheck=\"false\">cssClass</code> <a href=\"#root/_help_zEY4DaJG4YT5\">attribute</a> to a note, and assign it a value representing the desired CSS class.</li><li><strong>Define an</strong> <code spellcheck=\"false\">iconClass</code>: You can also define a custom icon for a note using the <code spellcheck=\"false\">iconClass</code> attribute, selecting from <a href=\"https://boxicons.com\">Box Icons</a> or your own custom classes.</li></ul><p>For example, if you want to style notes of a specific type, such as notes containing PNG images, you can target them with classes like <code spellcheck=\"false\">type-image mime-image-png</code>.</p><h3>User-Provided Themes</h3><p>A gallery of user-created themes is available, showcasing the variety of customizations that the Trilium community has developed. For more information, check the <a class=\"reference-link\" href=\"#root/_help_VbjZvtUek0Ln\">Theme Gallery</a>.</p><h3>Asset Path Management</h3><p>When referencing built-in assets like images in your custom themes or CSS, you can avoid hardcoding version numbers by using the <code spellcheck=\"false\">vX</code> alias. For example, instead of specifying <code spellcheck=\"false\">/assets/v0.57.0-beta/images/icon-grey.png</code>, you can use <code spellcheck=\"false\">/assets/vX/images/icon-grey.png</code> to keep your theme compatible with future versions of Trilium.</p>",+ "_help_Wy267RK4M69c": "<h2>Default Themes</h2><p>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.</p><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/Themes_dark-theme.png\" alt=\"Dark Theme\"></p><h2>Creating Custom CSS Themes</h2><p>Trilium supports custom user themes, allowing you to personalize the application's appearance. To create a custom theme, follow these steps:</p><ol><li><strong>Create a CSS Code Note</strong>: Start by creating a new <a href=\"#root/_help_6f9hih2hXXZk\">code note</a> with the <code spellcheck=\"false\">CSS</code> type.</li><li><strong>Annotate with</strong> <code spellcheck=\"false\">#appTheme</code>: Add the <a href=\"#root/_help_zEY4DaJG4YT5\">attribute</a> <code spellcheck=\"false\">#appTheme=my-theme-name</code> to your note, where <code spellcheck=\"false\">my-theme-name</code> is the name of your custom theme.</li><li><strong>Define Your Styles</strong>: Write your custom CSS within the note. Below is an example of a custom theme:</li></ol><pre><code class=\"language-text-x-trilium-auto\">@font-face {\n font-family: 'Raleway';\n font-style: normal;\n font-weight: 400;\n src: url('/custom/fonts/raleway.woff2') format('woff2');\n}\n\n:root {\n --main-font-family: 'Raleway' !important;\n --main-font-size: normal;\n --tree-font-family: inherit;\n --tree-font-size: normal;\n --detail-font-family: inherit;\n --detail-font-size: normal;\n --detail-text-font-family: 'Garamond' !important;\n\n --main-background-color: #404552;\n --main-text-color: #AFB8C6;\n --main-border-color: #AFB8C6;\n --accented-background-color: #383C4A;\n --more-accented-background-color: #2F343F;\n --header-background-color: #383C4A;\n --button-background-color: #2F343F;\n --button-disabled-background-color: #404552;\n --button-border-color: #333;\n --button-text-color: #AFB8C6;\n --button-border-radius: 2px;\n --primary-button-background-color: #6c757d;\n --primary-button-text-color: white;\n --primary-button-border-color: #6c757d;\n --muted-text-color: #86919F;\n --input-text-color: #AFB8C6;\n --input-background-color: #404552;\n --hover-item-text-color: white;\n --hover-item-background-color: #4877B1;\n --active-item-text-color: white;\n --active-item-background-color: #4877B1;\n --menu-text-color: #AFB8C6;\n --menu-background-color: #383C4A;\n --tooltip-background-color: #383C4A;\n --link-color: lightskyblue;\n --modal-background-color: #404552;\n --modal-backdrop-color: black;\n --scrollbar-border-color: rgba(175, 184, 198, 0.5);\n}\n\nbody .note-detail-text {\n font-size: 120%;\n}\n\nbody .CodeMirror {\n filter: invert(100%) hue-rotate(180deg);\n}</code></pre><h3>Activating Your Custom Theme</h3><p>Once you've created your custom theme:</p><ol><li>Go to \"Menu\" -> \"Options\" -> \"Appearance.\"</li><li>In the theme selection dropdown, you should see your custom theme listed under the name you provided with the <code spellcheck=\"false\">#appTheme</code> <a href=\"#root/_help_zEY4DaJG4YT5\">label</a>.</li><li>Select your custom theme to activate it.</li></ol><p>If you make changes to your theme, press <kbd>Ctrl</kbd> + <kbd>R</kbd> to reload the frontend and apply your updates.</p><h3>Sharing and Importing Themes</h3><p>Custom themes can be exported as <code spellcheck=\"false\">.tar</code> archives, which can be shared with other users. However, be cautious when importing themes from untrusted sources, as they may contain executable scripts that could pose security risks.</p><p>An example user theme, <em>Steel Blue</em>, is available in the demo document.</p><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/Themes_steel-blue.png\" alt=\"Steel Blue Theme\"></p><h3>Using Custom CSS for Specific Purposes</h3><p>In addition to full themes, Trilium allows for custom CSS that isn't tied to a theme. This can be particularly useful in scripting contexts, where you might want to modify specific UI elements, such as changing the colors of notes in the tree view.</p><h3>Applying Custom CSS</h3><p>To use custom CSS:</p><ol><li><strong>Create a CSS Code Note</strong>: Create a new <a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a> note with the <code spellcheck=\"false\">CSS</code> type.</li><li><strong>Add the</strong> <code spellcheck=\"false\">appCss</code> <strong>Label</strong>: Annotate the note with the <code spellcheck=\"false\">#appCss</code> <a href=\"#root/_help_zEY4DaJG4YT5\">label</a>.</li><li><strong>Write Your CSS</strong>: Add your custom CSS rules to the note.</li></ol><p>For example:</p><pre><code class=\"language-text-x-trilium-auto\">/* Custom CSS to style specific elements */\n.tree-item {\n color: #ff6347; /* Change tree item color */\n}</code></pre><p>When Trilium's frontend starts, all notes labeled with <code spellcheck=\"false\">appCss</code> are automatically included in the style element of the HTML page.</p><p>After making changes, press <kbd>Ctrl</kbd> + <kbd>R</kbd> to reload the frontend and apply your new styles.</p><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/Themes_image.jpg\"></p><h3>Styling Specific Notes in the Tree</h3><p>To apply specific styles to certain notes in the tree:</p><ul><li><strong>Use the</strong> <code spellcheck=\"false\">cssClass</code> <strong>Attribute</strong>: Add the <code spellcheck=\"false\">cssClass</code> <a href=\"#root/_help_zEY4DaJG4YT5\">attribute</a> to a note, and assign it a value representing the desired CSS class.</li><li><strong>Define an</strong> <code spellcheck=\"false\">iconClass</code>: You can also define a custom icon for a note using the <code spellcheck=\"false\">iconClass</code> attribute, selecting from <a href=\"https://boxicons.com\">Box Icons</a> or your own custom classes.</li></ul><p>For example, if you want to style notes of a specific type, such as notes containing PNG images, you can target them with classes like <code spellcheck=\"false\">type-image mime-image-png</code>.</p><h3>User-Provided Themes</h3><p>A gallery of user-created themes is available, showcasing the variety of customizations that the Trilium community has developed. For more information, check the <a class=\"reference-link\" href=\"#root/_help_VbjZvtUek0Ln\">Theme Gallery</a>.</p><h3>Asset Path Management</h3><p>When referencing built-in assets like images in your custom themes or CSS, you can avoid hardcoding version numbers by using the <code spellcheck=\"false\">vX</code> alias. For example, instead of specifying <code spellcheck=\"false\">/assets/v0.57.0-beta/images/icon-grey.png</code>, you can use <code spellcheck=\"false\">/assets/vX/images/icon-grey.png</code> to keep your theme compatible with future versions of Trilium.</p>","_help_VbjZvtUek0Ln": "<p>These are user-created themes which were made publicly available:</p><h2>Legacy Themes</h2><p>These themes may or may not be compatible with the latest versions of TriliumNext and are based on the original/legacy theme.</p><figure class=\"table\"><table>\n<thead>\n<tr>\n<th>Theme</th>\n<th>Author</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><a href=\"https://github.com/tobealive/trilium-midnight-theme\">Midnight</a></td>\n<td><a href=\"https://github.com/tobealive\">tobealive</a></td>\n</tr>\n<tr>\n<td><a href=\"https://github.com/tobealive/trilum-eote-theme\">EOTE</a></td>\n<td><a href=\"https://github.com/tobealive\">tobealive</a></td>\n</tr>\n<tr>\n<td><a href=\"https://github.com/Abourass/TriliumThemes\">Trilium Themes</a></td>\n<td><a href=\"https://github.com/Abourass\">Abourass</a></td>\n</tr>\n<tr>\n<td><a href=\"https://github.com/ZMonk91/Material-Dark-Trilium\">MaterialDark</a></td>\n<td><a href=\"https://github.com/ZMonk91\">ZMonk91</a></td>\n</tr>\n<tr>\n<td><a href=\"https://github.com/jaroet/trilium-theme-lightslategray\">lightslategray</a></td>\n<td><a href=\"https://github.com/jaroet\">jaroet</a></td>\n</tr>\n<tr>\n<td><a href=\"https://github.com/raphwriter/trilium-theme-melon\">melon-4</a></td>\n<td><a href=\"https://github.com/raphwriter\">raphwriter</a></td>\n</tr>\n<tr>\n<td><a href=\"https://github.com/Engr-AllanG/trilium-themes\">Neon_Dark</a></td>\n<td><a href=\"https://github.com/Engr-AllanG\">Engr-AllanG</a></td>\n</tr>\n<tr>\n<td><a href=\"https://github.com/Engr-AllanG/trilium-themes\">Coder_Dark</a></td>\n<td><a href=\"https://github.com/Engr-AllanG\">Engr-AllanG</a></td>\n</tr>\n<tr>\n<td><a href=\"https://github.com/idelem/trilium-theme-velvet\">velvet</a></td>\n<td><a href=\"https://github.com/idelem\">idelem</a></td>\n</tr>\n<tr>\n<td><a href=\"https://github.com/SADAVA/trilium-notes-theme-dark-plus\">Dark Plus</a></td>\n<td><a href=\"https://github.com/SADAVA\">SADAVA</a></td>\n</tr>\n<tr>\n<td><a href=\"https://github.com/WKSu/trilium-solarized-theme\">Solarized</a></td>\n<td><a href=\"https://github.com/WKSu\">WKSu</a></td>\n</tr>\n<tr>\n<td><a href=\"https://github.com/en3r0/Trilium-Nord-Theme\">Nord</a></td>\n<td><a href=\"https://github.com/en3r0\">en3r0</a></td>\n</tr>\n<tr>\n<td><a href=\"https://github.com/AllanZyne/trilium-bear-theme\">Bear Note Light</a></td>\n<td><a href=\"https://github.com/AllanZyne\">AllanZyne</a></td>\n</tr>\n<tr>\n<td><a href=\"https://github.com/AllanZyne/trilium-bear-theme\">Bear Note Dark</a></td>\n<td><a href=\"https://github.com/AllanZyne\">AllanZyne</a></td>\n</tr>\n<tr>\n<td><a href=\"https://github.com/Sebiann/miku-hatsune-trilium-theme\">Miku Hatsune</a></td>\n<td><a href=\"https://github.com/Sebiann\">Sebiann</a></td>\n</tr>\n<tr>\n<td><a href=\"https://github.com/cwilliams5/Midnight-Trilium-Dark-Mode\">Midnight</a></td>\n<td><a href=\"https://github.com/cwilliams5\">cwilliams5</a></td>\n</tr>\n<tr>\n<td><a href=\"https://github.com/SiriusXT/trilium-theme-blue\">Blue</a> (light)</td>\n<td><a href=\"https://github.com/SiriusXT\">SiriusXT</a></td>\n</tr>\n<tr>\n<td><a href=\"https://github.com/SiriusXT/trilium-theme-blue\">Blue</a> (dark)</td>\n<td><a href=\"https://github.com/SiriusXT\">SiriusXT</a></td>\n</tr>\n</tbody></table></figure><aside class=\"admonition tip\"><p>If you would like to add your theme to this gallery, write a new post in <a href=\"https://github.com/TriliumNext/Trilium/discussions/categories/show-and-tell\">👐 Show and tell</a>.</p></aside>","_help_gOKqSJgXLcIj": "<figure class=\"image image-style-align-right image_resized\" style=\"width:45.14%;\"><img style=\"aspect-ratio:854/649;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/Themes/Icon%20Packs_image.png\" width=\"854\" height=\"649\"></figure><p>By default, Trilium comes with a set of icons called Boxicons v2. Since v0.102.0, custom icon packs allow a wider selection of icons for notes.</p><p>Icon packs are specific to Trilium, so they must either be created from scratch (see below) or imported from a ZIP file from a third-party developer.</p><h2>Sample icon packs</h2><p>The Trilium team maintains a few icon packs that are not shipped with Trilium. These icon packs can be found on the official website on the <a href=\"https://triliumnotes.org/resources\">Resources page</a>.</p><h2>Importing an existing icon pack</h2><aside class=\"admonition note\"><p><strong>Icon packs are third-party content</strong></p><p>Apart from the <a href=\"https://triliumnotes.org/resources\">sample icon packs</a>, the Trilium maintainers are not responsible for keeping icon packs up to date. If you have an issue with a specific icon pack, then the issue must be reported to the third-party developer responsible for it, not the Trilium team.</p></aside><p>To import an icon pack:</p><ol><li>Ideally, create a dedicated spot in your note tree where to place the icon packs.</li><li>Right click the note where to put it and select <em>Import into note</em>.</li><li>Uncheck <em>Safe import</em>.</li><li>Select <em>Import</em>.</li><li><a href=\"#root/_help_s8alTXmpFR61\">Refresh the application</a>.</li></ol><aside class=\"admonition warning\"><p>Since <em>Safe import</em> is disabled, make sure you trust the source as it could contain dangerous third-party scripts. One good way to check if the icon pack is safe is to manually extract the .zip and inspect the file contents. Icon packs should only contain a font file and a JSON file. Other files (especially scripts) are to be considered harmful.</p></aside><h2>Creating an icon pack</h2><p>Creating an icon pack requires some scripting knowledge outside Trilium in order to generate the list of icons. For information, see <a class=\"reference-link\" href=\"#root/_help_g1mlRoU8CsqC\">Creating an icon pack</a>.</p><h2>Using an icon from an icon pack</h2><p>After <a href=\"#root/_help_s8alTXmpFR61\">refreshing the application</a>, the icon pack should be enabled by default. To test this, simply select an existing note or create a new one and try to change the note icon.</p><p>There should be a <em>Filter</em> button to the right of the search bar in the icon list. Clicking it allows filtering by icon pack and the newly imported icon pack should be displayed there.</p><aside class=\"admonition note\"><p>If the icon pack is missing from that list, then most likely there's something wrong with it.</p><ul><li>Try checking the <a class=\"reference-link\" href=\"#root/_help_bnyigUA2UK7s\">Backend (server) logs</a> for clues and make sure that the icon pack has the <code spellcheck=\"false\">#iconPack</code> <a href=\"#root/_help_HI6GBBIduIgv\">label</a> with a value assigned to it (a prefix).</li><li>Icon packs that are <a href=\"#root/_help_bwg0e8ewQMak\">protected</a> are ignored.</li></ul></aside><h2>Integration with the share and export functionality</h2><p>Custom icon packs are also supported by the <a class=\"reference-link\" href=\"#root/_help_R9pX4DGra2Vt\">Sharing</a> feature, where they will be shown in the note tree. However, in order for an icon pack to be visible to the share function, the icon pack note must also be shared.</p><p>If you are using a custom share theme, make sure it supports the <code spellcheck=\"false\">iconPackCss</code>, otherwise icons will not show up. Check the original share template source code for reference.</p><p>Custom icon packs will also be preserved when <a class=\"reference-link\" href=\"#root/_help_ycBFjKrrwE9p\">Exporting static HTML for web publishing</a>. In this case, there's no requirement to make the icon pack shared.</p><h2>What happens if I remove an icon pack</h2><p>If an icon pack is removed or disabled (by removing or altering its <code spellcheck=\"false\">#iconPack</code> label), all the notes that use this icon pack will show in the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a> with no icon. This won't cause any issues apart from looking strange.</p><p>The solution is to replace the icons with some else, try using <a class=\"reference-link\" href=\"#root/_help_eIg8jdvaoNNd\">Search</a> which supports bulk actions, to identify the notes with the now deleted icon pack (by looking for the prefix) and changing or removing their <code spellcheck=\"false\">iconClass</code>.</p>","_help_mHbBMPDPkVV5": "<p>Trilium natively supports the following formats for both import and export.</p><h2>Supported formats</h2><ul><li>HTML:<ul><li>This is the main format used by Trilium, where standard tags are used to represent basic formatting and layout (e.g. <code spellcheck=\"false\"><strong></code>, <code spellcheck=\"false\"><table></code>, <code spellcheck=\"false\"><pre></code>).</li><li>Note that HTML is not a standardized format so some more specific features such as admonitions or <a class=\"reference-link\" href=\"#root/_help_hrZ1D00cLbal\">Internal (reference) links</a> might not be supported by other applications.</li><li>The notes can also be exported as <a href=\"#root/_help_ycBFjKrrwE9p\">static HTML that can be used for web publishing</a>.</li></ul></li><li><a class=\"reference-link\" href=\"#root/_help_Oau6X9rCuegd\">Markdown</a><ul><li>Most of the formatting is preserved, see <a class=\"reference-link\" href=\"#root/_help_rJ9grSgoExl9\">Supported syntax</a>.</li></ul></li><li>OPML (Outliner Interchange Format)<ul><li>Supports both OPML v1.0 for plain text and v2.0 with HTML support.</li></ul></li></ul><p>To import from other applications such as OneNote, Notion and others, see <a class=\"reference-link\" href=\"#root/_help_ckZ2uNWQmVeX\">Importing data from other applications</a>.</p><h2>Maximum import size</h2><p>Versions prior to v0.104.0 had an upload limit of 250 MiB that could be bypassed via a <code spellcheck=\"false\">TRILIUM_NO_UPLOAD_LIMIT</code> environment variable; with v0.104.0 this limit was removed.</p><p>Nevertheless, there is still a limit for the maximum size of a <strong>single item</strong> (whether it's a <a class=\"reference-link\" href=\"#root/_help_W8vYD3Q1zjCR\">File</a>, an <a class=\"reference-link\" href=\"#root/_help_0vhv7lsOLy82\">Attachments</a> or even a <a class=\"reference-link\" href=\"#root/_help_iPIMuisry3hd\">Text</a> note). The limit is approximately 374 MiB and it's determined by the <a class=\"reference-link\" href=\"#root/_help_cbkrhQjrkKrh\">Synchronization</a> protocol. Attempts to import such large files will be refused.</p><p>During large imports or exports, memory consumption might spike but it will remain somewhere around the 2 gigabyte mark. Tested with a 2.4 GB database with ~21k notes.</p><aside class=\"admonition important\"><p>For the <a class=\"reference-link\" href=\"#root/_help_poXkQfguuA0U\">Desktop Installation</a>, there are two distinct import mechanisms:</p><ul><li>A quick import, from the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>.</li><li>The import dialog (via right click in the note tree → <em>Import into note</em> or from <a class=\"reference-link\" href=\"#root/_help_8YBEPzcpUgxw\">Note buttons</a>).</li></ul><p>When dealing with large files (multi-gigabyte), prefer using the import dialog as it has a special mechanism which makes sure that the file is read directly from disk rather than uploaded again.</p></aside><h2>Exporting the root note</h2><p>The root note is the top-most note. Exporting it behaves just like any other note: right click on it in the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a> and select <em>Export</em>.</p><p>Starting with v0.104.0, when a root note is imported, it will be imported as a child of your existing root note. This behavior makes sure that the import cannot change or overwrite your existing notes.</p><p>You can easily move the notes onto the root using the tree's <a class=\"reference-link\" href=\"#root/_help_yTjUdsOi4CIE\">Multiple selection</a> and delete the redundant root note.</p><table>\n <thead>\n <tr>\n <th scope=\"col\">Before</th>\n <th scope=\"col\">After</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td><ul><li>root<ul><li>one</li><li>two</li></ul></li></ul></td>\n <td><ul><li>root (existing)<ul><li>root (from import)<ul><li>one</li><li>two</li></ul></li></ul></li></ul></td>\n </tr>\n </tbody>\n</table><aside class=\"admonition tip\"><p>Instead of exporting full ZIPs (including the root note), consider using <a href=\"#root/_help_ODY7qQn5m2FT\">backups</a> instead. Backups always contain the entire structure, as well as additional information a ZIP export does not have: maintains note IDs, contains the options/tokens and handle <a class=\"reference-link\" href=\"#root/_help_bwg0e8ewQMak\">Protected Notes</a> better.</p></aside>",@@ -111,16 +111,16 @@"_help_oI7GoyilXXAr": "<h2>Automatic replacements</h2><p>As you type in a text note, certain character sequences are replaced with the typographic symbol they represent. Typing <code spellcheck=\"false\">(c)</code> gives you <code spellcheck=\"false\">©</code>, <code spellcheck=\"false\">...</code> gives you <code spellcheck=\"false\">…</code>, and <code spellcheck=\"false\">\"quote\"</code> gives you <code spellcheck=\"false\">“quote”</code>.</p><p>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.</p><p>Once an automatic replacement takes place, it can be undone by:</p><ul><li>Pressing <kbd>Backspace</kbd> immediately after a replacement undoes it and restores what you typed.<ul><li>Note that this consumes the undo, so a further <kbd>Ctrl</kbd>+<kbd>Z</kbd> might delete your typed text.</li><li>Pressing <kbd>Space</kbd> or changing the cursor position disables this functionality.</li></ul></li><li>Pressing <kbd>Ctrl</kbd>+<kbd>Z</kbd>, which works even after pressing space.</li></ul><p>Each group can be turned off in <a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → <em>Text notes</em> → <em>Automatic replacements</em>.</p><figure class=\"table\"><table>\n<thead>\n<tr>\n<th>Group</th>\n<th>What it replaces</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>Punctuation</td>\n<td><code spellcheck=\"false\">...</code> with an ellipsis (<code spellcheck=\"false\">…</code>), and <code spellcheck=\"false\">--</code> and <code spellcheck=\"false\">---</code> <em>surrounded by spaces</em> with an en dash (<code spellcheck=\"false\">–</code>) and an em dash (<code spellcheck=\"false\">—</code>)</td>\n</tr>\n<tr>\n<td>Mathematical symbols</td>\n<td>fractions such as <code spellcheck=\"false\">1/2</code> with <code spellcheck=\"false\">½</code>, and the operators <code spellcheck=\"false\"><=</code>, <code spellcheck=\"false\">>=</code>, <code spellcheck=\"false\">!=</code>, <code spellcheck=\"false\"><-</code> and <code spellcheck=\"false\">-></code> with <code spellcheck=\"false\">≤</code>, <code spellcheck=\"false\">≥</code>, <code spellcheck=\"false\">≠</code>, <code spellcheck=\"false\">←</code> and <code spellcheck=\"false\">→</code></td>\n</tr>\n<tr>\n<td>Copyright and trademark</td>\n<td><code spellcheck=\"false\">(c)</code>, <code spellcheck=\"false\">(r)</code> and <code spellcheck=\"false\">(tm)</code> with <code spellcheck=\"false\">©</code>, <code spellcheck=\"false\">®</code> and <code spellcheck=\"false\">™</code></td>\n</tr>\n<tr>\n<td>Quotation marks</td>\n<td>straight quotes with typographic ones — see below</td>\n</tr>\n</tbody></table></figure><h2>Quotation marks</h2><p>Quotation marks are configured separately from the rest, with one setting for the <strong>double</strong> quote key and one for the <strong>single</strong> quote key, because which pair belongs on which key differs between conventions — British typography traditionally sets a quotation in <code spellcheck=\"false\">‘…’</code> where American sets it in <code spellcheck=\"false\">“…”</code>.</p><p>Each offers:</p><ul><li><em>Based on the note's content language</em> (the default) — English gives <code spellcheck=\"false\">“quote”</code>, German <code spellcheck=\"false\">„quote“</code>, French <code spellcheck=\"false\">« quote »</code>, Japanese <code spellcheck=\"false\">「quote」</code>. See <em>Content language & Right-to-left support</em> for how a note's language is decided.</li><li><em>Disabled,</em> straight quotes stay straight.</li><li><em>A specific pair</em> — <code spellcheck=\"false\">“…”</code>, <code spellcheck=\"false\">‘…’</code>, <code spellcheck=\"false\">„…“</code>, <code spellcheck=\"false\">„…”</code>, <code spellcheck=\"false\">«…»</code>, <code spellcheck=\"false\">« … »</code>, <code spellcheck=\"false\">‹…›</code>, <code spellcheck=\"false\">「…」</code>, <code spellcheck=\"false\">『…』</code>. Choosing one applies it to every note, whatever language it is written in.</li></ul><h2>Custom replacements</h2><p>You can add your own under <a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → <em>Text notes</em> → <em>Automatic replacements</em> → <em>Custom replacements</em>. Type the text to replace and the replacement, then press Enter. Existing ones are shown as chips and removed with the × on each.</p><p>A custom replacement is applied when the text is typed as a whole word and followed by a space, so longer words that begin with it are left alone — a <code spellcheck=\"false\">TN</code> replacement does not rewrite the end of <code spellcheck=\"false\">BTN</code>, and <code spellcheck=\"false\">TNT</code> can still be typed.</p><p>Capitalisation follows what you type, unless the replacement has capitals of its own:</p><figure class=\"table\"><table>\n<thead>\n<tr>\n<th><strong>Replacement you defined</strong></th>\n<th><strong>You type</strong></th>\n<th><strong>You get</strong></th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code spellcheck=\"false\">teh</code> → <code spellcheck=\"false\">the</code></td>\n<td><code spellcheck=\"false\">teh</code> / <code spellcheck=\"false\">Teh</code> / <code spellcheck=\"false\">TEH</code></td>\n<td><code spellcheck=\"false\">the</code> / <code spellcheck=\"false\">The</code> / <code spellcheck=\"false\">THE</code></td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TN</code> → <code spellcheck=\"false\">Trilium Notes</code></td>\n<td><code spellcheck=\"false\">TN</code> or <code spellcheck=\"false\">tn</code></td>\n<td><code spellcheck=\"false\">Trilium Notes</code> (unchanged — it has capitals)</td>\n</tr>\n</tbody></table></figure><p>The text to replace is matched literally; it is not a pattern. Typing a replacement whose \"text to replace\" already exists updates that entry rather than adding a second one.</p><h2>Characters that only look replaced (ligatures)</h2><p>If you see <code spellcheck=\"false\">!=</code> displayed as <code spellcheck=\"false\">≠</code> or <code spellcheck=\"false\">-></code> as <code spellcheck=\"false\">→</code> inside a code block, that is not a replacement — replacements never run there. It is a <em>font ligature</em>: the default monospace font draws certain character pairs as a single symbol. The underlying text is unchanged, and copying it out gives you back <code spellcheck=\"false\">!=</code> and <code spellcheck=\"false\">-></code>.</p><p>This can be turned off with <a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a><em>→ Appearance → Fonts → Programming ligatures.</em></p>","_help_NwBbFdNZ9h7O": "<h2>Block quotes</h2><p>As the name suggests, block quotes can be useful to cite one or more paragraphs.</p><p>To create a block quote, press <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Block%20quotes%20%26%20admonitions_image.png\" width=\"15\" height=\"12\"> from the <a class=\"reference-link\" href=\"#root/_help_nRhnJkTT8cPs\">Formatting toolbar</a>. It's also possible to type <kbd>></kbd>, followed by a space to create one (but only if the cursor is at the beginning of a line).</p><p>Inside the quote block, other block items can be inserted such as tables, images, or even other block quotes or admonitions.</p><h2>Admonitions</h2><p>Admonitions are a way to highlight information to the reader. Other names for it include <em>call-outs</em> and <em>info/warning/alert boxes</em>.</p><figure class=\"image image-style-align-center\"><img style=\"aspect-ratio:959/547;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/2_Block%20quotes%20%26%20admonitions_image.png\" width=\"959\" height=\"547\"></figure><p>From a functional point of view, admonitions act very similarly to a block quote, just with different styling. This includes the ability to insert other elements in it such as headings, tables, images, etc.</p><h3>Inserting a new admonition</h3><p>In the <a class=\"reference-link\" href=\"#root/_help_nRhnJkTT8cPs\">Formatting toolbar</a>:</p><p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/1_Block%20quotes%20%26%20admonitions_image.png\"></p><p>It's possible to insert an admonition simply by typing:</p><ul><li><code spellcheck=\"false\">!!! note</code></li><li><code spellcheck=\"false\">!!! tip</code></li><li><code spellcheck=\"false\">!!! important</code></li><li><code spellcheck=\"false\">!!! caution</code></li><li><code spellcheck=\"false\">!!! warning</code></li></ul><p>In addition to that, it's also possible to type <code spellcheck=\"false\">!!!</code> followed by any text, case in which a default admonition type will appear (note) with the entered text inside it.</p><h3>Interaction</h3><p>By design, admonitions act very similar to block quotes.</p><ul><li>Selecting a text and pressing the admonition button will turn that text into an admonition.</li><li>If selecting multiple admonitions, pressing the admonition button will automatically merge them into one.</li></ul><p>Inside an admonition:</p><ul><li>Pressing <kbd>Backspace</kbd> while the admonition is empty will remove it.</li><li>Pressing <kbd>Enter</kbd> will start a new paragraph. Pressing it twice will exit out of the admonition.</li><li>Headings and other block content including tables can be inserted inside the admonition.</li></ul><h3>Types of admonitions</h3><p>There are currently five types of admonitions: <em>Note</em>, <em>Tip</em>, <em>Important</em>, <em>Caution</em>, <em>Warning</em>.</p><p>These types were inspired by GitHub's support for this feature and there are currently no plans for adjusting it or allowing the user to customize them.</p><h3>Markdown support</h3><p>See <a class=\"reference-link\" href=\"#root/_help_rJ9grSgoExl9\">Supported syntax</a>.</p>","_help_4n4oQUVbnOxa": "<p>Collapsible blocks are sections of content that can be expanded and collapsed, letting you hide detail until it's needed.</p><p>A collapsible block consists of:</p><ul><li><strong>An always-visible header</strong>, containing:<ul><li><strong>An arrow</strong> that expands or collapses the block when clicked.</li><li><strong>A summary line</strong> that acts as the block's title. With the cursor in the summary line, press <kbd>Ctrl</kbd>+<kbd>Enter</kbd> to expand or collapse the block.</li><li><strong>A drag handle</strong> for repositioning the block within the note.</li></ul></li><li><strong>The body</strong>, which is hidden while the block is collapsed. It can hold any kind of content, including nested collapsible blocks. To break out of a collapsible block and continue typing outside it, press <kbd>Enter</kbd> twice at the end of the block.</li></ul><p>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.</p><h2>Inserting a collapsible block</h2><p>In the formatting bar, go to “<strong>Insert” → “Collapsible Block”</strong>.</p><aside class=\"admonition tip\"><p>Place multiple collapsible blocks one after another to create an accordion, where each block can be expanded or collapsed independently.</p></aside>",- "_help_veGu4faJErEM": "<p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Content%20language%20%26%20Right-to-left%20support_image.png\"></p><p>The content language determines:</p><ul><li>The spell-checking of the note, when in a browser. The desktop installation has a dedicated spellchecking section.</li><li>Whether the text is displayed from right-to-left, for languages such as Arabic, Hebrew, etc.</li><li>How typed quotes are <a href=\"#root/_help_oI7GoyilXXAr\">automatically replaced</a> (e.g. English uses <code spellcheck=\"false\">“text”</code>, whereas some languages use <code spellcheck=\"false\">«text»</code>).</li></ul><h2>Setting the language of a single note</h2><p>To set the language of the content of a <a class=\"reference-link\" href=\"#root/_help_iPIMuisry3hd\">Text</a> note:</p><ul><li>On the new layout, there is a language selector in the <a class=\"reference-link\" href=\"#root/_help_AlJ73vBCjWDw\">Status bar</a>.</li><li>On the old layout, go to the <a class=\"reference-link\" href=\"#root/_help_BlN9DFI679QC\">Ribbon</a> → <em>Basic Properties</em> and look for the <em>Language</em> field.</li></ul><h2>Adjusting the list of languages</h2><p>By default there will be no language configured, they can be configured by going to <a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → Language & Region or by selecting the <em>Configure languages</em> item when setting the language.</p><h2>Default content language</h2><p>Notes that do not have a language of their own follow <a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → <em>Language & Region</em> → <em>Default content language</em>. It is set to English initially, and can be set to any content language, or to <em>Based on the application's language</em>.</p><p>If a note has a language set, it always takes precedence over the default.</p>",+ "_help_veGu4faJErEM": "<p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Content%20language%20%26%20Right-to-left%20support_image.jpg\"></p><p>The content language determines:</p><ul><li>The spell-checking of the note, when in a browser. The desktop installation has a dedicated spellchecking section.</li><li>Whether the text is displayed from right-to-left, for languages such as Arabic, Hebrew, etc.</li><li>How typed quotes are <a href=\"#root/_help_oI7GoyilXXAr\">automatically replaced</a> (e.g. English uses <code spellcheck=\"false\">“text”</code>, whereas some languages use <code spellcheck=\"false\">«text»</code>).</li></ul><h2>Setting the language of a single note</h2><p>To set the language of the content of a <a class=\"reference-link\" href=\"#root/_help_iPIMuisry3hd\">Text</a> note:</p><ul><li>On the new layout, there is a language selector in the <a class=\"reference-link\" href=\"#root/_help_AlJ73vBCjWDw\">Status bar</a>.</li><li>On the old layout, go to the <a class=\"reference-link\" href=\"#root/_help_BlN9DFI679QC\">Ribbon</a> → <em>Basic Properties</em> and look for the <em>Language</em> field.</li></ul><h2>Adjusting the list of languages</h2><p>By default there will be no language configured, they can be configured by going to <a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → Language & Region or by selecting the <em>Configure languages</em> item when setting the language.</p><h2>Default content language</h2><p>Notes that do not have a language of their own follow <a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → <em>Language & Region</em> → <em>Default content language</em>. It is set to English initially, and can be set to any content language, or to <em>Based on the application's language</em>.</p><p>If a note has a language set, it always takes precedence over the default.</p>","_help_2x0ZAX9ePtzV": "<figure class=\"image image_resized image-style-align-right\" style=\"width:64.63%;\"><img style=\"aspect-ratio:812/585;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Cut%20to%20subnote_cut-to-subnote.gif\" width=\"812\" height=\"585\"></figure><p>When editing a document that becomes too large, you can split it into sub-notes:</p><ol><li>Select the desired text and cut it to the clipboard.</li><li>Create a new sub-note and name it.</li><li>Paste the content from the clipboard into the sub-note.</li></ol><p>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.</p>",- "_help_UYuUB1ZekNQU": "<h3>Inline code</h3><p>Inline code formats text using a monospace font to indicate technical content in a sentence such as code, paths, etc.</p><p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/5_Developer-specific%20formatting_image.png\"></p><p>Example of inline code being used to illustrate file system paths as well as shell commands (<code spellcheck=\"false\">git</code> in this case).</p><p>To insert an inline code:</p><ul><li>Via the <a href=\"#root/_help_nRhnJkTT8cPs\">Formatting toolbar</a>, look for the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/3_Developer-specific%20formatting_image.png\"> button.</li><li>Type `code` where <code spellcheck=\"false\">code</code> is the desired text to be automatically formatted as inline code.</li></ul><h3>Code blocks</h3><p>Code blocks display a snippet of code as a dedicated block:</p><p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/4_Developer-specific%20formatting_image.png\"></p><p>A code block with JavaScript syntax highlight enabled.</p><p>Note that these are not meant for very large portions of code. Use the dedicated <a href=\"#root/_help_6f9hih2hXXZk\">Code</a> note type instead.</p><p>See the dedicated documentation for more information: <a href=\"#root/_help_QxEyIjRBizuC\">Code blocks</a></p><h3>Keyboard shortcuts</h3><p>This allows marking a portion of text as a shortcut key.</p><p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Developer-specific%20formatting_image.png\"></p><p>To apply this style, press the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/6_Developer-specific%20formatting_image.png\"> button in <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/1_Developer-specific%20formatting_image.png\"> group from the <a href=\"#root/_help_nRhnJkTT8cPs\">Formatting toolbar</a>. On the floating toolbar, the buttons appear when selecting a text.</p><p>Alternatively, press the <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>K</kbd> combination to apply keyboard shortcut formatting to the current text selection.</p><p>The formatting can be removed by pressing again the button (from the UI or from the keyboard), or by using the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/2_Developer-specific%20formatting_image.png\" width=\"17\" height=\"16\"> <em>Remove formatting</em> button.</p>",- "_help_QxEyIjRBizuC": "<p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Developer-specific%20formatting/1_Code%20blocks_image.png\"></p><p>The code blocks feature allows entering pieces of code in text notes.</p><p>Note that this feature is meant for generally small snippets of code. For larger files such as an entire log, see the <a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a> note type instead.</p><h2>Inserting a code block</h2><ul><li>Via the <a class=\"reference-link\" href=\"#root/_help_nRhnJkTT8cPs\">Formatting toolbar</a>, look for the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Developer-specific%20formatting/Code%20blocks_image.png\"> button.<ul><li>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.</li><li>Pressing the arrow next to the icon, which will show a popup with the available languages.</li></ul></li><li>Type <code spellcheck=\"false\">```</code> (as in Markdown).<ul><li>Note that it's not possible to specify the language, as it will default to the last selected language.</li></ul></li></ul><h2>Exiting out of the code block</h2><ul><li>To exit out of a code block and enter a normal paragraph, move the cursor at the end of the code block and press <kbd>Enter</kbd> twice.</li><li>Similarly, to insert a paragraph above the note block, move the cursor at the beginning of the code block and press <kbd>Enter</kbd> twice.</li></ul><aside class=\"admonition note\"><p>If you've pasted a code block with a more complex HTML structure, exiting out of the code block by pressing <kbd>Enter</kbd> multiple times might not work. In that case the best approach is to delete the code block entirely and use <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>V</kbd> (paste as plain text).</p></aside><h2>Syntax highlighting & color schemes</h2><p>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 <a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a> notes as different technologies are involved.</p><p>Interaction:</p><ul><li>When the language is set to <em>Auto-detected</em> (by default), 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.</li><li>When the language is set to <em>Plain text</em>, there will be no syntax highlighting.</li></ul><p>Note that when editing a text note, syntax highlighting is automatically disabled if the code block is too big (somewhere around 500 lines). This value is currently not configurable. For <a class=\"reference-link\" href=\"#root/_help_CoFPLs3dRlXc\">Read-Only Notes</a>, this limitation is not applied.</p><p>In order to configure this new feature, a section has been added in Options → Appearance to control the syntax highlighting. There the color scheme can be chosen, from a builtin selection of themes from Highlight.js.</p><ul><li>It is possible to disable the syntax highlighting for all the notes by selecting “No syntax highlighting” in the “Color scheme” option.</li><li>Word wrapping is disabled by default, but can be configured from the same section.</li><li>The tab width can also be adjusted from Options.</li></ul><aside class=\"admonition note\"><p><strong>Context regarding syntax highlighting</strong></p><p>In order to achieve the syntax highlight, the Highlight.js library is being used. Do note that support for syntax highlighting in code blocks is not a supported feature of the text editor we are using CKEditor), but rather a hack which makes use of the highlights API (used for highlighting search results for example). Nevertheless, we haven't noticed any major issues during the development of the feature, but feel free to report any issues you might have.</p><p>Most of the work to achieve the syntax highlight itself was already done by <a href=\"https://github.com/antoniotejada\">antoniotejada</a> in <a href=\"https://github.com/antoniotejada/Trilium-SyntaxHighlightWidget\">https://github.com/antoniotejada/Trilium-SyntaxHighlightWidget</a>. On our side we added customization but also additional functionality.</p></aside><h3>Migrating from existing syntax highlight plugins</h3><p>If you are already using a syntax highlighting plugin such as the <a href=\"https://github.com/antoniotejada/Trilium-SyntaxHighlightWidget\">Trilium-SyntaxHighlightWidget</a> we are basing off of, it is important to disable that plugin before upgrading in order for it not to conflict with our implementation.</p><p>Should you encounter any issues after the migration, try running Trilium in safe mode.</p><h2>Changing the language of a code block</h2><p>Simply click anywhere inside the code block and press again the code block button in the <a class=\"reference-link\" href=\"#root/_help_nRhnJkTT8cPs\">Formatting toolbar</a>:<br><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Developer-specific%20formatting/2_Code%20blocks_image.png\"></p><h2>Adjusting the list of languages</h2><p>The code blocks feature shares the list of languages with the <a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a> note type.</p><p>The supported languages can be adjusted by going to <a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a>, then <em>Code Notes</em> and looking for the <em>Available MIME types in the dropdown</em> section. Simply check any of the items to add them to the list, or uncheck them to remove them from the list.</p><p>Note that the list of languages is not immediately refreshed, you'd have to manually <a href=\"#root/_help_s8alTXmpFR61\">refresh the application</a>.</p>",+ "_help_UYuUB1ZekNQU": "<h3>Inline code</h3><p>Inline code formats text using a monospace font to indicate technical content in a sentence such as code, paths, etc.</p><p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/5_Developer-specific%20formatting_image.png\"></p><p>Example of inline code being used to illustrate file system paths as well as shell commands (<code spellcheck=\"false\">git</code> in this case).</p><p>To insert an inline code:</p><ul><li>Via the <a href=\"#root/_help_nRhnJkTT8cPs\">Formatting toolbar</a>, look for the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/3_Developer-specific%20formatting_image.png\"> button.</li><li>Type `code` where <code spellcheck=\"false\">code</code> is the desired text to be automatically formatted as inline code.</li></ul><h3>Code blocks</h3><p>Code blocks display a snippet of code as a dedicated block:</p><p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/4_Developer-specific%20formatting_image.jpg\"></p><p>A code block with JavaScript syntax highlight enabled.</p><p>Note that these are not meant for very large portions of code. Use the dedicated <a href=\"#root/_help_6f9hih2hXXZk\">Code</a> note type instead.</p><p>See the dedicated documentation for more information: <a href=\"#root/_help_QxEyIjRBizuC\">Code blocks</a></p><h3>Keyboard shortcuts</h3><p>This allows marking a portion of text as a shortcut key.</p><p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Developer-specific%20formatting_image.jpg\"></p><p>To apply this style, press the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/6_Developer-specific%20formatting_image.png\"> button in <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/1_Developer-specific%20formatting_image.png\"> group from the <a href=\"#root/_help_nRhnJkTT8cPs\">Formatting toolbar</a>. On the floating toolbar, the buttons appear when selecting a text.</p><p>Alternatively, press the <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>K</kbd> combination to apply keyboard shortcut formatting to the current text selection.</p><p>The formatting can be removed by pressing again the button (from the UI or from the keyboard), or by using the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/2_Developer-specific%20formatting_image.png\" width=\"17\" height=\"16\"> <em>Remove formatting</em> button.</p>",+ "_help_QxEyIjRBizuC": "<p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Developer-specific%20formatting/1_Code%20blocks_image.jpg\"></p><p>The code blocks feature allows entering pieces of code in text notes.</p><p>Note that this feature is meant for generally small snippets of code. For larger files such as an entire log, see the <a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a> note type instead.</p><h2>Inserting a code block</h2><ul><li>Via the <a class=\"reference-link\" href=\"#root/_help_nRhnJkTT8cPs\">Formatting toolbar</a>, look for the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Developer-specific%20formatting/Code%20blocks_image.png\"> button.<ul><li>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.</li><li>Pressing the arrow next to the icon, which will show a popup with the available languages.</li></ul></li><li>Type <code spellcheck=\"false\">```</code> (as in Markdown).<ul><li>Note that it's not possible to specify the language, as it will default to the last selected language.</li></ul></li></ul><h2>Exiting out of the code block</h2><ul><li>To exit out of a code block and enter a normal paragraph, move the cursor at the end of the code block and press <kbd>Enter</kbd> twice.</li><li>Similarly, to insert a paragraph above the note block, move the cursor at the beginning of the code block and press <kbd>Enter</kbd> twice.</li></ul><aside class=\"admonition note\"><p>If you've pasted a code block with a more complex HTML structure, exiting out of the code block by pressing <kbd>Enter</kbd> multiple times might not work. In that case the best approach is to delete the code block entirely and use <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>V</kbd> (paste as plain text).</p></aside><h2>Syntax highlighting & color schemes</h2><p>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 <a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a> notes as different technologies are involved.</p><p>Interaction:</p><ul><li>When the language is set to <em>Auto-detected</em> (by default), 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.</li><li>When the language is set to <em>Plain text</em>, there will be no syntax highlighting.</li></ul><p>Note that when editing a text note, syntax highlighting is automatically disabled if the code block is too big (somewhere around 500 lines). This value is currently not configurable. For <a class=\"reference-link\" href=\"#root/_help_CoFPLs3dRlXc\">Read-Only Notes</a>, this limitation is not applied.</p><p>In order to configure this new feature, a section has been added in Options → Appearance to control the syntax highlighting. There the color scheme can be chosen, from a builtin selection of themes from Highlight.js.</p><ul><li>It is possible to disable the syntax highlighting for all the notes by selecting “No syntax highlighting” in the “Color scheme” option.</li><li>Word wrapping is disabled by default, but can be configured from the same section.</li><li>The tab width can also be adjusted from Options.</li></ul><aside class=\"admonition note\"><p><strong>Context regarding syntax highlighting</strong></p><p>In order to achieve the syntax highlight, the Highlight.js library is being used. Do note that support for syntax highlighting in code blocks is not a supported feature of the text editor we are using CKEditor), but rather a hack which makes use of the highlights API (used for highlighting search results for example). Nevertheless, we haven't noticed any major issues during the development of the feature, but feel free to report any issues you might have.</p><p>Most of the work to achieve the syntax highlight itself was already done by <a href=\"https://github.com/antoniotejada\">antoniotejada</a> in <a href=\"https://github.com/antoniotejada/Trilium-SyntaxHighlightWidget\">https://github.com/antoniotejada/Trilium-SyntaxHighlightWidget</a>. On our side we added customization but also additional functionality.</p></aside><h3>Migrating from existing syntax highlight plugins</h3><p>If you are already using a syntax highlighting plugin such as the <a href=\"https://github.com/antoniotejada/Trilium-SyntaxHighlightWidget\">Trilium-SyntaxHighlightWidget</a> we are basing off of, it is important to disable that plugin before upgrading in order for it not to conflict with our implementation.</p><p>Should you encounter any issues after the migration, try running Trilium in safe mode.</p><h2>Changing the language of a code block</h2><p>Simply click anywhere inside the code block and press again the code block button in the <a class=\"reference-link\" href=\"#root/_help_nRhnJkTT8cPs\">Formatting toolbar</a>:<br><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Developer-specific%20formatting/2_Code%20blocks_image.png\"></p><h2>Adjusting the list of languages</h2><p>The code blocks feature shares the list of languages with the <a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a> note type.</p><p>The supported languages can be adjusted by going to <a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a>, then <em>Code Notes</em> and looking for the <em>Available MIME types in the dropdown</em> section. Simply check any of the items to add them to the list, or uncheck them to remove them from the list.</p><p>Note that the list of languages is not immediately refreshed, you'd have to manually <a href=\"#root/_help_s8alTXmpFR61\">refresh the application</a>.</p>","_help_AgjCISero73a": "<figure class=\"image image-style-align-right\"><img style=\"aspect-ratio:199/187;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/1_Footnotes_image.png\" width=\"199\" height=\"187\"></figure><p>Footnotes are a good place to insert references to a paragraph or details that are displayed at the bottom of the note.</p><h2>Interaction</h2><ul><li>To insert a new footnote, press <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Footnotes_image.png\" width=\"17\" height=\"12\"> (or press the right arrow and select <em>New footnote</em>).</li><li>To insert a reference to an existing footnote, press the right arrow and select <em>Insert footnote</em>, followed by the number of the footnote to insert.</li><li>Hovering over a reference (e.g. <code spellcheck=\"false\">[1]</code>) will display the content of the footnote in a tooltip for easy reference.</li><li>Clicking on a reference in the text (e.g. <code spellcheck=\"false\">[1]</code>) will navigate to the corresponding footnote.</li><li>Similarly, clicking on the <code spellcheck=\"false\">^</code> button of a footnote will navigate to the corresponding reference in the text.</li></ul>","_help_5wZallV2Qo1t": "<figure class=\"image image-style-align-right\"><img style=\"aspect-ratio:220/76;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Format%20Painter_image.png\" width=\"220\" height=\"76\"></figure><p>The Format Painter is a feature in text notes that allows users to copy the formatting of text (such as <strong>bold</strong>, <em>italic</em>, <del>Strikethrough</del>, etc.) and apply it to other parts of the document. It helps maintain consistent formatting and accelerates the creation of rich content.</p><h2>Usage Instructions</h2><p>Click the text that you want to copy the formatting from and use the paint formatting toolbar button (<img class=\"image_resized\" style=\"aspect-ratio:150/150;width:2.7%;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Format%20Painter_746436a2e1.svg\" alt=\"Format painter\" width=\"150\" height=\"150\">) to copy the style. Then select the target text with your mouse to apply the formatting.</p><ul><li><strong>To copy the formatting</strong>: Place the cursor inside text with some formatting and click the paint formatting toolbar button. The mouse cursor changes to indicate the painter is armed.</li><li><strong>To paint with the copied formatting</strong>: Select the target text with your mouse. The formatting is applied when you release the button, and the painter disarms — the cursor returns to normal.</li><li><strong>To cancel without painting</strong>: Click the toolbar button again or press <kbd>Escape</kbd>.</li></ul><h2>Limitations</h2><ol><li>Painting with block-level formatting (like headings or image styles) is not supported yet. This is because, in <a class=\"reference-link\" href=\"#root/_help_MI26XDLSAlCD\">CKEditor</a>, they are considered a part of the content rather than text formatting.</li><li>The painter applies to a selection, not to a word: clicking a single word does not format it. A click only primes the caret, so text you type there takes the copied formatting.</li><li>The painter is one-shot; each paint requires copying the formatting again.</li></ol>",- "_help_nRhnJkTT8cPs": "<p>Trilium allows two different editing experiences for text notes, based on your preference.</p><p>The type of formatting toolbar can be changed by going to <a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> and then looking for the <a class=\"reference-link\" href=\"#root/_options/_optionsTextNotes\">Text Notes</a> section. In it, look for the <em>Formatting toolbar</em> category.</p><h2>Floating</h2><p>The floating bar is a more minimalist option, in which the formatting is hidden behind two different popups.</p><h3>Block-level popup</h3><p>The first popup is the block-level popup. This will appear to the left of the current paragraph you are currently editing, as a sequence of dots:<br><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/1_Formatting%20toolbar_image.png\"></p><p>Clicking this popup will reveal the formatting options that are specific to the entire paragraph, such as setting a heading, lists, tables, etc.</p><p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/3_Formatting%20toolbar_image.png\"></p><h3>Inline popup</h3><p>The inline popup appears automatically when selecting a text:</p><p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Formatting%20toolbar_image.png\"></p><p>All the options here apply only to the selected portion of text, such as changing the font size, or making the text bold.</p><h2>Fixed</h2><p>The fixed formatting offers a more traditional editing paradigm, usually useful if a lot of formatting is needed.</p><p>All the options are combined into a single toolbar that will appear as part of the <a href=\"#root/_help_BlN9DFI679QC\">Ribbon</a>.</p><p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/2_Formatting%20toolbar_image.png\"></p><p>By default, if the toolbar does not fit on the screen, the rest of the options will be grouped into a single option at the end. It is possible to display items on multiple lines by checking the corresponding option in the <em>Formatting toolbar</em> section.</p>",+ "_help_nRhnJkTT8cPs": "<p>Trilium allows two different editing experiences for text notes, based on your preference.</p><p>The type of formatting toolbar can be changed by going to <a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> and then looking for the <a class=\"reference-link\" href=\"#root/_options/_optionsTextNotes\">Text Notes</a> section. In it, look for the <em>Formatting toolbar</em> category.</p><h2>Floating</h2><p>The floating bar is a more minimalist option, in which the formatting is hidden behind two different popups.</p><h3>Block-level popup</h3><p>The first popup is the block-level popup. This will appear to the left of the current paragraph you are currently editing, as a sequence of dots:<br><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/1_Formatting%20toolbar_image.jpg\"></p><p>Clicking this popup will reveal the formatting options that are specific to the entire paragraph, such as setting a heading, lists, tables, etc.</p><p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/3_Formatting%20toolbar_image.jpg\"></p><h3>Inline popup</h3><p>The inline popup appears automatically when selecting a text:</p><p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Formatting%20toolbar_image.jpg\"></p><p>All the options here apply only to the selected portion of text, such as changing the font size, or making the text bold.</p><h2>Fixed</h2><p>The fixed formatting offers a more traditional editing paradigm, usually useful if a lot of formatting is needed.</p><p>All the options are combined into a single toolbar that will appear as part of the <a href=\"#root/_help_BlN9DFI679QC\">Ribbon</a>.</p><p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/2_Formatting%20toolbar_image.jpg\"></p><p>By default, if the toolbar does not fit on the screen, the rest of the options will be grouped into a single option at the end. It is possible to display items on multiple lines by checking the corresponding option in the <em>Formatting toolbar</em> section.</p>","_help_Gr6xFaF6ioJ5": "<h2>Headings</h2><figure class=\"image image-style-align-right\"><img style=\"aspect-ratio:255/284;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/3_General%20formatting_image.png\" width=\"255\" height=\"284\"></figure><p>Trilium provides headings to define sections within text. Headings are numbered from 2 to 6.</p><p>The reason why Heading 1 is missing from the list is that it is being reserved for the title of note.</p><p>To turn a heading back into a normal text, select <em>Paragraph</em> from the list.</p><p>Apart from using the UI, it is also possible to quickly insert headings using the Markdown-like shortcuts:</p><ul><li><code spellcheck=\"false\">##</code> for Heading 2</li><li><code spellcheck=\"false\">###</code> for Heading 3</li><li><code spellcheck=\"false\">####</code> for Heading 4</li><li><code spellcheck=\"false\">#####</code> for Heading 5</li><li><code spellcheck=\"false\">######</code> for Heading 6</li></ul><h2>Font size</h2><figure class=\"image image-style-align-right\"><img style=\"aspect-ratio:363/249;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/General%20formatting_image.png\" width=\"363\" height=\"249\"></figure><p>One way to highlight a portion of text is to increase the size of the font.</p><p>To do so, select some text and choose an option from the <em>Font size</em> selector (as pictured to the right).</p><p>Unlike other text editors such as Microsoft Word, the font size is relative (i.e. “Tiny”, “Small” instead of a number like 12).</p><p>Avoid using this feature just to simply make all text bigger. In that case it's generally better to adjust the font size for all notes in <a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> or by zooming.</p><h2>Bold, italic, underline, strike-through</h2><figure class=\"image image-style-align-right\"><img style=\"aspect-ratio:215/71;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/4_General%20formatting_image.png\" width=\"215\" height=\"71\"></figure><p>Text can be formatted as <strong>Bold,</strong> <em>Italic,</em> Underline or <del>Strike-through</del> via the dedicated buttons in the formatting toolbar.</p><p>This formatting can be easily removed using the <em>Remove formatting</em> item.</p><p>The following keyboard shortcuts can be used here:</p><ul><li><kbd>Ctrl</kbd>+<kbd>B</kbd> for bold</li><li><kbd>Ctrl</kbd>+<kbd>I</kbd> for italic</li><li><kbd>Ctrl</kbd>+<kbd>U</kbd> for underline</li></ul><p>Alternatively, Markdown-like formatting can be used:</p><ul><li><strong>Bold</strong>: Type <code spellcheck=\"false\">**text**</code> or <code spellcheck=\"false\">__text__</code></li><li><em>Italic</em>: Type <code spellcheck=\"false\">*text*</code> or <code spellcheck=\"false\">_text_</code></li><li><del>Strikethrough</del>: Type <code spellcheck=\"false\">~~text~~</code></li></ul><h2>Superscript, subscript</h2><p>This allows writing superscript or subscript text.</p><p>This is mostly useful for units of measure (e.g. cm3 for cubic centimeters) and chemical notations (e.g. NaHCO3)</p><p>For mathematical formulas, prefer the <a class=\"reference-link\" href=\"#root/_help_YfYAtQBcfo5V\">Math Equations</a> feature instead.</p><h2>Font color and background color</h2><figure class=\"image image-style-align-right\"><img style=\"aspect-ratio:167/204;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/2_General%20formatting_image.png\" width=\"167\" height=\"204\"></figure><p>Selected text can be colored with one of the predefined colors from a palette or any color can be selected using the color picker.</p><p>Once there is at least one color defined in the document, it will appear in the list for easy reuse.</p><p>When selecting a foreground or a background color, consider the contrast if switching between a dark theme or a light <a href=\"#root/_help_Wy267RK4M69c\">theme</a>.</p><p>To remove either the background or foreground color of a text, select the corresponding formatting button and press <em>Remove color</em> or use the <em>Remove formatting</em> toolbar item.</p><h2>Remove formatting</h2><p>The <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/1_General%20formatting_image.png\" width=\"17\" height=\"16\"> <em>Remove formatting</em> button is a quick way to eliminate the general formatting styling of a particular text.</p><p>Simply select the text and press the button to remove the formatting (bold, italic, colors, sizes, etc.). If the text does not have any removable formatting, the button will appear disabled.</p><p>Note that heading styles are not taken into consideration, these must be manually changed back to a paragraph according to the <em>Headings</em> section.</p><p>When pasting content that comes with undesired formatting, an alternative to pasting and then removing formatting is pasting as plain text via <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>V</kbd>.</p><h2>Format painter</h2><p>The <a class=\"reference-link\" href=\"#root/_help_5wZallV2Qo1t\">Format Painter</a> 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.</p><h2>Support for Markdown</h2><p>When exported to <a class=\"reference-link\" href=\"#root/_help_Oau6X9rCuegd\">Markdown</a>, most of the general formatting is maintained such as headings, bold, italic, underline, etc.</p>","_help_AxshuNRegLAv": "<aside class=\"admonition note\"><p>This page has been relocated to <a class=\"reference-link\" href=\"#root/_help_2dcGDhp9WFKb\">Outline tab</a>.</p></aside>",- "_help_mT0HEkOsz6i1": "<p>Trilium supports storing and displaying images. Supported formats are PNG, JPEG, GIF, BMP, WebP, AVIF and SVG.</p><p>An image can be uploaded in the form of note's <a href=\"#root/_help_0vhv7lsOLy82\">attachment</a> or as a standalone <a href=\"#root/_help_kBrnXNG3Hplm\">note</a> placed into the <a href=\"#root/_help_kBrnXNG3Hplm\">note tree</a>. Its reference can be copied into a text note, in order to display it in the text itself.</p><h2>Uploading images</h2><p>To add an image to the note:</p><ul><li>Simply drag it from file explorer onto the note editor inside Trilium and the image will be uploaded.</li><li>Alternatively, from the <a class=\"reference-link\" href=\"#root/_help_nRhnJkTT8cPs\">Formatting toolbar</a> look for the <em>Insert image</em> icon.</li><li>You can also copy and paste an image from web (see section below).</li></ul><h2>Clipboard & automatic download of images</h2><p>Trilium has a special handling for images copied to and pasted from the clipboard.</p><ul><li><p>For a mix of text and images, the images are downloaded automatically by the server (or desktop app, depending on what is being used).</p><ul><li>This means that the image must be publicly accessible and reachable from wherever Trilium is running. Inaccessible images will end up as broken images.</li></ul></li><li><p>If a single image is pasted into Trilium, it will prefer the image that comes in the clipboard. This makes it possible to copy images that Trilium would not otherwise be able to reach, such as Google Chat, Slack, etc.</p></li><li><p>When a text with images is copied from Trilium and pasted in another app (such as Microsoft Word or LibreOffice Writer), the images will be preserved.</p></li></ul><p>The automatic download of images is enabled by default and can be toggled from <a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → <em>Media</em> → <em>Download images automatically.</em></p><h2>Configuring the images</h2><p>Clicking on an image will reveal a popup with multiple options:<br><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/7_Images_image.png\"></p><h3>Alignment</h3><p>The first set of options configure the alignment are, in order:</p><figure class=\"table\"><table>\n<thead>\n<tr>\n<th>Icon</th>\n<th>Option</th>\n<th>Preview</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/5_Images_image.png\"></td>\n<td>Inline</td>\n<td><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/1_Images_image.png\"></td>\n<td>As the name suggests, the name can be put inside a paragraph and moved around similarly as if it was a block of text. Use drag & drop or cut-paste to move it around.</td>\n</tr>\n<tr>\n<td><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/8_Images_image.png\"></td>\n<td>Centered image</td>\n<td><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/2_Images_image.png\"></td>\n<td>The image will be displayed as a block and centered, not allowing text in either the left or right of it.</td>\n</tr>\n<tr>\n<td><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/4_Images_image.png\"></td>\n<td>Wrap text</td>\n<td><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/6_Images_image.png\"></td>\n<td>The image will be displayed to the left or the right of the text.</td>\n</tr>\n<tr>\n<td><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Images_image.png\"></td>\n<td>Block align</td>\n<td><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/3_Images_image.png\"></td>\n<td>Similarly to <em>Centered image</em>, the image will be displayed as a block and aligned either to the left or to the right, but not allowing text to flow on either of its sides.</td>\n</tr>\n</tbody></table></figure><h2>Compression</h2><p>Since Trilium isn't really meant to be primary storage for image data, it attempts to compress and resize (with pretty aggressive settings) uploaded images before storing them to the database. You may then notice some quality degradation. Basic quality settings is available in <a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → <em>Media</em>.</p><p>If you want to save images in their original resolution, it is recommended to save them as attachment to note (look for the contextual menu in <a class=\"reference-link\" href=\"#root/_help_8YBEPzcpUgxw\">Note buttons</a> → <em>Import files</em>).</p><h2>Aligning images side-by-side</h2><p>There are generally two ways to display images side by side:</p><ul><li>If they are roughly the same size, simply make the two images in-line, according to the alignment section above. The images can be dragged & dropped onto the same line.</li><li>If they are on different size, create a <a href=\"#root/_help_NdowYOC1GFKS\">table</a> with invisible borders.</li></ul>",+ "_help_mT0HEkOsz6i1": "<p>Trilium supports storing and displaying images. Supported formats are PNG, JPEG, GIF, BMP, WebP, AVIF and SVG.</p><p>An image can be uploaded in the form of note's <a href=\"#root/_help_0vhv7lsOLy82\">attachment</a> or as a standalone <a href=\"#root/_help_kBrnXNG3Hplm\">note</a> placed into the <a href=\"#root/_help_kBrnXNG3Hplm\">note tree</a>. Its reference can be copied into a text note, in order to display it in the text itself.</p><h2>Uploading images</h2><p>To add an image to the note:</p><ul><li>Simply drag it from file explorer onto the note editor inside Trilium and the image will be uploaded.</li><li>Alternatively, from the <a class=\"reference-link\" href=\"#root/_help_nRhnJkTT8cPs\">Formatting toolbar</a> look for the <em>Insert image</em> icon.</li><li>You can also copy and paste an image from web (see section below).</li></ul><h2>Clipboard & automatic download of images</h2><p>Trilium has a special handling for images copied to and pasted from the clipboard.</p><ul><li><p>For a mix of text and images, the images are downloaded automatically by the server (or desktop app, depending on what is being used).</p><ul><li>This means that the image must be publicly accessible and reachable from wherever Trilium is running. Inaccessible images will end up as broken images.</li></ul></li><li><p>If a single image is pasted into Trilium, it will prefer the image that comes in the clipboard. This makes it possible to copy images that Trilium would not otherwise be able to reach, such as Google Chat, Slack, etc.</p></li><li><p>When a text with images is copied from Trilium and pasted in another app (such as Microsoft Word or LibreOffice Writer), the images will be preserved.</p></li></ul><p>The automatic download of images is enabled by default and can be toggled from <a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → <em>Media</em> → <em>Download images automatically.</em></p><h2>Configuring the images</h2><p>Clicking on an image will reveal a popup with multiple options:<br><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/7_Images_image.png\"></p><h3>Alignment</h3><p>The first set of options configure the alignment are, in order:</p><figure class=\"table\"><table>\n<thead>\n<tr>\n<th>Icon</th>\n<th>Option</th>\n<th>Preview</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/5_Images_image.png\"></td>\n<td>Inline</td>\n<td><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/1_Images_image.jpg\"></td>\n<td>As the name suggests, the name can be put inside a paragraph and moved around similarly as if it was a block of text. Use drag & drop or cut-paste to move it around.</td>\n</tr>\n<tr>\n<td><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/8_Images_image.png\"></td>\n<td>Centered image</td>\n<td><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/2_Images_image.jpg\"></td>\n<td>The image will be displayed as a block and centered, not allowing text in either the left or right of it.</td>\n</tr>\n<tr>\n<td><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/4_Images_image.png\"></td>\n<td>Wrap text</td>\n<td><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/6_Images_image.jpg\"></td>\n<td>The image will be displayed to the left or the right of the text.</td>\n</tr>\n<tr>\n<td><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Images_image.png\"></td>\n<td>Block align</td>\n<td><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/3_Images_image.jpg\"></td>\n<td>Similarly to <em>Centered image</em>, the image will be displayed as a block and aligned either to the left or to the right, but not allowing text to flow on either of its sides.</td>\n</tr>\n</tbody></table></figure><h2>Compression</h2><p>Since Trilium isn't really meant to be primary storage for image data, it attempts to compress and resize (with pretty aggressive settings) uploaded images before storing them to the database. You may then notice some quality degradation. Basic quality settings is available in <a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → <em>Media</em>.</p><p>If you want to save images in their original resolution, it is recommended to save them as attachment to note (look for the contextual menu in <a class=\"reference-link\" href=\"#root/_help_8YBEPzcpUgxw\">Note buttons</a> → <em>Import files</em>).</p><h2>Aligning images side-by-side</h2><p>There are generally two ways to display images side by side:</p><ul><li>If they are roughly the same size, simply make the two images in-line, according to the alignment section above. The images can be dragged & dropped onto the same line.</li><li>If they are on different size, create a <a href=\"#root/_help_NdowYOC1GFKS\">table</a> with invisible borders.</li></ul>","_help_0Ofbk1aSuVRu": "<figure class=\"image image-style-align-right image_resized\" style=\"width:50.47%;\"><img style=\"aspect-ratio:880/553;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Images/Image%20references_image.png\" width=\"880\" height=\"553\"></figure><p>Image references are an easy way to embed the preview of another note type into a <a class=\"reference-link\" href=\"#root/_help_iPIMuisry3hd\">Text</a> note.</p><h2>Supported note types</h2><ul><li><a class=\"reference-link\" href=\"#root/_help_grjYqerjn243\">Canvas</a></li><li><a class=\"reference-link\" href=\"#root/_help_s1aBHPd79XYj\">Mermaid Diagrams</a></li><li><a class=\"reference-link\" href=\"#root/_help_gBbsAeiuUxI5\">Mind Map</a></li></ul><h2>Steps</h2><ol><li>Go to one of the supported notes (listed above) and look for the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Images/1_Image%20references_image.png\"> button in the <a class=\"reference-link\" href=\"#root/_help_XpOYSgsLkTJy\">Floating buttons</a> area.</li><li>Go to a <a class=\"reference-link\" href=\"#root/_help_iPIMuisry3hd\">Text</a> note and use the Paste function to insert the reference to that note.</li></ol><h2>Interaction</h2><ul><li>Double-clicking an image reference from a text note will automatically open the target note.</li><li>Clicking an image reference while <kbd>Ctrl</kbd> is pressed will open the target note in a new tab.</li><li>Modifying the target note should also update the image reference. If that doesn't happen, consider <a class=\"reference-link\" href=\"#root/_help_s8alTXmpFR61\">Refreshing the application</a>.</li></ul>","_help_nBAXQFj20hS1": "<p>Text notes can \"include\" another note as a read-only widget or an interactive widget, depending on the type of note.</p><p>This can be useful for e.g. including a dynamically generated chart (from scripts & \"render HTML\" note) or other more advanced use cases.</p><h2>Including a note</h2><p>In the <a class=\"reference-link\" href=\"#root/_help_nRhnJkTT8cPs\">Formatting toolbar</a>, look for the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Include%20Note_image.png\"> button. There is also a keyboard shortcut defined for it but it is not allocated by default.</p><h2>Included notes in the share functionality</h2><p>If a <a href=\"#root/_help_R9pX4DGra2Vt\">shared note</a> contains one or more included notes, they will be displayed in the content of the note as if they were part of the note itself.</p><p>For this to work, the included notes must also be shared, otherwise they will not be shown. However, the included notes can still be hidden from the note tree via <code spellcheck=\"false\">#shareHiddenFromTree</code>.</p><h2>Interactive notes</h2><p>Since v0.104.0, included notes might become interactive depending on their note type:</p><ul><li><a class=\"reference-link\" href=\"#root/_help_GTwFsgaA0lCt\">Collections</a> (e.g. <a class=\"reference-link\" href=\"#root/_help_81SGnPGMk7Xc\">Geo Map</a>) will render fully interactive, including creating new notes.</li><li><a class=\"reference-link\" href=\"#root/_help_m523cpzocqaD\">Saved Search</a> will also display the results.</li><li><a class=\"reference-link\" href=\"#root/_help_1vHRoWCEjj0L\">Web View</a> provides an interactive preview of the website.</li></ul>","_help_CohkqWQC1iBv": "<p>Press the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/4_Insert%20buttons_image.png\" width=\"34\" height=\"16\"> button in the <a class=\"reference-link\" href=\"#root/_help_nRhnJkTT8cPs\">Formatting toolbar</a> to reveal special inserable items and blocks such as symbols, Math expressions and separators.</p><h2>Bookmarks</h2><p>See the dedicated <a class=\"reference-link\" href=\"#root/_help_oSuaNgyyKnhu\">Anchors</a> section.</p><h2>Emoji</h2><figure class=\"image image-style-align-right image_resized\" style=\"width:42.4%;\"><img style=\"aspect-ratio:366/410;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Insert%20buttons_plus.png\" width=\"366\" height=\"410\"></figure><p>This feature allows inserting Unicode emoji characters. Simply select a category and a desired emoji to insert it.</p><p>Emojis can also be searched by their English name and the skin tone can be selected via a combo box to the right.</p><p>There is also the possibility of inserting emojis directly by typing <code spellcheck=\"false\">:</code> followed by a name of an emoji, triggering the display of a list of emojis. Simply use the arrow keys to select one and press <kbd>Enter</kbd> to insert it.</p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/1_Insert%20buttons_plus.png\" width=\"272\" height=\"187\"><h2>Symbols</h2><figure class=\"image image-style-align-right\"><img style=\"aspect-ratio:346/322;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/1_Insert%20buttons_image.png\" width=\"346\" height=\"322\"></figure><p>Pressing the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/7_Insert%20buttons_image.png\" width=\"18\" height=\"15\"> button will reveal a popup window displaying a list of characters that are generally more difficult to insert directly from the keyboard, such as a subset of emojis, quotation characters, etc.</p><p>Interaction:</p><ul><li>Click on a character to insert it at the current cursor position.</li><li>The window can be dragged around by the top bar where the title is, to avoid it getting in the way of the text.</li><li>Click on the <em>Category</em> selector to filter the characters.</li></ul><h2>Math equations</h2><p>See the dedicated <a class=\"reference-link\" href=\"#root/_help_YfYAtQBcfo5V\">Math Equations</a> page.</p><h2>Mermaid diagram</h2><p>Press the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/2_Insert%20buttons_image.png\" width=\"16\" height=\"17\"> button to create an inline Mermaid diagram.</p><p>This feature is quite similar to the <a class=\"reference-link\" href=\"#root/_help_s1aBHPd79XYj\">Mermaid Diagrams</a> note types and is meant as an alternative to it for simple diagrams. For more complex diagrams, use the <a class=\"reference-link\" href=\"#root/_help_nBAXQFj20hS1\">Include Note</a> feature for a dedicated Mermaid note.</p><figure class=\"image\"><img style=\"aspect-ratio:1174/358;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/6_Insert%20buttons_image.png\" width=\"1174\" height=\"358\"></figure><h2>Horizontal ruler</h2><p>This feature will display a horizontal line, generally useful to separate different sections of the text. To do so, press the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/5_Insert%20buttons_image.png\" width=\"18\" height=\"16\"> button in the <a class=\"reference-link\" href=\"#root/_help_nRhnJkTT8cPs\">Formatting toolbar</a>.</p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/3_Insert%20buttons_image.png\" width=\"502\" height=\"95\"><p>Alternatively, it's possible to insert a horizontal ruler by typing <code spellcheck=\"false\">---</code>.</p><h2>Page break</h2><figure class=\"image image-style-align-right\"><img style=\"aspect-ratio:371/79;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/8_Insert%20buttons_image.png\" width=\"371\" height=\"79\"></figure><p>Page breaks provide a way to force the next paragraph or block (table, image, etc.) to be displayed onto the next page when printing (either to a real printer to <a href=\"#root/_help_NRnIZmSMc5sj\">when exporting to PDF</a>).</p><p>Page breaks are marked in the editor with the words <em>Page break</em>, but they will not actually be shown when printed.</p><ul><li>To insert a page break, press the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Insert%20buttons_image.png\" width=\"20\" height=\"19\"> in the formatting toolbar.</li><li>To insert many page breaks at once, insert a page break first, click on it and press <kbd>Ctrl</kbd>+<kbd>C</kbd>. Then use <kbd>Ctrl</kbd>+<kbd>V</kbd>, to paste as many times as needed.</li></ul>",@@ -130,7 +130,7 @@"_help_3IDVtesTQ8ds": "<p>An external link is a standard web link targeting for example a website. For example, <a href=\"https://en.wikipedia.org/wiki/South_China_Sea\">https://en.wikipedia.org/wiki/South_China_Sea</a> is an external link to a Wikipedia page.</p><p>To create a link without a custom text:</p><ul><li>Press <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Links/1_External%20links_image.png\" width=\"15\" height=\"16\"> in the <a class=\"reference-link\" href=\"#root/_help_nRhnJkTT8cPs\">Formatting toolbar</a>:<ul><li>A popup will appear, type or paste the URL in the box.</li><li>Press <kbd>Enter</kbd> or the check mark icon to confirm.</li></ul></li><li>Alternatively, press <kbd>Ctrl</kbd>+<kbd>K</kbd> to trigger the aforementioned popup.</li><li>A simpler way is to paste the raw link and press space to turn it automatically into a link.</li></ul><p>To create a link with a custom text:</p><ul><li>First, type and select the text which will be turned into a link.</li><li>Follow the previous steps to open the link interface (via the formatting toolbar, or <kbd>Ctrl</kbd>+<kbd>K</kbd>).</li><li>Alternatively, simply paste (<kbd>Ctrl</kbd>+<kbd>V</kbd>) over the selected text to turn it into a link.</li></ul><p>Once a link is inserted:</p><ul><li>The text inside the link can be changed if needed but the link itself will remain.</li><li>To modify the link, click on the link to display the popup and press the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Links/External%20links_image.png\" width=\"18\" height=\"18\"> <em>Edit link</em> button.</li><li>To remove a link, click on it and press the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Links/2_External%20links_image.png\" width=\"18\" height=\"18\"> <em>Unlink</em> button.</li></ul><p>You can follow external link by either double clicking (will open new tab/window) it or right clicking on them and choosing \"Open in new tab\".</p>","_help_hrZ1D00cLbal": "<p>Internal links are links to other notes within Trilium.</p><p>You can open an internal link by clicking it. You can also see a read-only preview of an internal link's contents by hovering over it.</p><h2>Inserting internal links</h2><p>Internal links can be created at the current position in a text note by:</p><ol><li>Pressing <kbd>Ctrl</kbd> + <kbd>L</kbd> or the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Links/Internal%20(reference)%20links_image.png\" width=\"20\" height=\"17\"> button underneath the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Links/1_Internal%20(reference)%20links_image.png\" width=\"34\" height=\"16\"> menu in the <a class=\"reference-link\" href=\"#root/_help_nRhnJkTT8cPs\">Formatting toolbar</a>.</li><li>Searching for the title of the desired note to link. It's also possible to create new notes from this dialog by typing a non-existing note title and selecting <em>Create and link child note</em>.</li></ol><p>There are two link types which you can select when creating the link to the note:</p><ol><li><em>Link title mirrors the note's current title</em><ol><li>This is sometimes also called \"reference link\".</li><li>The title of this link cannot be changed. Instead, it will always show the current title of the linked note.</li><li>The icon of the linked note will also be displayed.</li></ol></li><li><em>Link title can be changed arbitrarily</em><ol><li>This will create a traditional hyperlink, where the text of the link can be different from the note title.</li></ol></li></ol><h2>In-place linking</h2><p>You can also insert internal links “inline” by using the <code spellcheck=\"false\">@</code> symbol:</p><ol><li>Type <code spellcheck=\"false\">@</code> in a text note, which will open the note search menu.</li><li>Search for the desired note's title by typing a few characters. Use <kbd>Up</kbd> and <kbd>Down</kbd> to select the correct note, and press <kbd>Enter</kbd> or <kbd>Tab</kbd> to create the link. It's also possible to create new notes with this method by typing a non-existing note title and selecting <em>Create and link child note</em>.</li></ol><h2>Pasting internal links</h2><p>You can also insert internal links by copying a note from the note tree.</p><ol><li>In the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>, select a note and press <kbd>Ctrl</kbd> + <kbd>C</kbd>.</li><li>In a text note, paste the link by pressing <kbd>Ctrl</kbd> + <kbd>V</kbd>.</li></ol>","_help_wfGXLmm7x27z": "<p>A link points from one note to another; a <em>backlink</em> is that same connection seen from the other end: the list of notes that refer to the current one.</p><p>Backlinks are maintained automatically and are read-only from this side. A backlink disappears when the note that created it removes the link; it cannot be deleted from the note being pointed at.</p><h2>What counts as a backlink</h2><p>Any r<a class=\"reference-link\" href=\"#root/_help_hrZ1D00cLbal\">Internal (reference) links</a> pointing at the current note, which covers two rather different cases:</p><ul><li>Relations that Trilium maintains on your behalf.<ul><li>The most common is <code spellcheck=\"false\">internalLink</code>, created whenever a note refers to another one through <a class=\"reference-link\" href=\"#root/_help_hrZ1D00cLbal\">Internal (reference) links</a> in its text.</li><li>Embedded images (<code spellcheck=\"false\">imageLink</code>), relation map connections (<code spellcheck=\"false\">relationMapLink</code>) and note inclusions (<code spellcheck=\"false\">includeNoteLink</code>) work the same way.</li></ul></li><li>Relations you define yourself.<ul><li>If another note carries <code spellcheck=\"false\">~author</code> pointing at the current note, that note is listed here as well.</li></ul></li></ul><p>Relations coming from a <a class=\"reference-link\" href=\"#root/_help_m523cpzocqaD\">Saved Search</a> are excluded, since a search stores an <code spellcheck=\"false\">ancestor</code> relation that would otherwise list every one of its results as a backlink.</p><aside class=\"admonition note\"><p>Only some note types have their content scanned for links: <a class=\"reference-link\" href=\"#root/_help_iPIMuisry3hd\">Text</a>, <a class=\"reference-link\" href=\"#root/_help_6RM1Q7ppFVoj\">Markdown</a>, <a class=\"reference-link\" href=\"#root/_help_iRwzGnHPzonm\">Relation Map</a> and <a class=\"reference-link\" href=\"#root/_help_GBBMSlVSOIGP\">AI</a> chats. A link written inside a <a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a> note is not registered and will not appear as a backlink on the target note. A relation set manually on a code note does still count.</p></aside><h2>How entries are displayed</h2><p>Each entry names the note the reference comes from, followed by one of:</p><ul><li><strong>An excerpt</strong> of the surrounding content, with the link itself highlighted. This is available for <a class=\"reference-link\" href=\"#root/_help_iPIMuisry3hd\">Text</a> notes and for <a class=\"reference-link\" href=\"#root/_help_GBBMSlVSOIGP\">AI</a> chat notes. Roughly 200 characters of context are quoted around the link, trimmed with an ellipsis where the surrounding text is longer, and images are left out.</li><li><strong>The name of the relation</strong>, for every other note type where the source cannot be quoted. This is the case for <a class=\"reference-link\" href=\"#root/_help_iRwzGnHPzonm\">Relation Map</a> notes and for any note carrying a relation you defined yourself.</li></ul><p>A note is listed once per reference it makes, so a note that links to the current one three times occupies three rows.</p><p>Of note:</p><ul><li>For AI chat notes, only the assistant's own prose is quoted. A chat that reached the note purely through tool calls has nothing to quote and is listed by relation name instead.</li><li>Excerpts are only generated for roughly the first 50 sources. On a heavily referenced note, the remaining entries fall back to showing the relation name.</li></ul><h2>Where backlinks are shown</h2><ul><li>In the <a class=\"reference-link\" href=\"#root/_help_KRlZFoIH0j6p\">Connections tab</a> of the <a class=\"reference-link\" href=\"#root/_help_RnaPdbciOfeq\">Right Sidebar</a>, as a dedicated section.</li><li>As a badge in the <a class=\"reference-link\" href=\"#root/_help_AlJ73vBCjWDw\">Status bar</a> showing the number of backlinks. The badge only appears when the note is being read normally (not in a revision or attachment view) and when there is at least one backlink; pressing it opens the section above.</li><li>Incoming links are also drawn on the link map, see <a class=\"reference-link\" href=\"#root/_help_BCkXAVs63Ttv\">Note Map (Link map, Tree map)</a>.</li><li>On the old layout, backlinks are showed as a dedicated button in the <a class=\"reference-link\" href=\"#root/_help_XpOYSgsLkTJy\">Floating buttons</a> area.</li></ul>",- "_help_S6Xx8QIWTV66": "<p>There are three types of lists supported by text notes:</p><ul><li><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/4_Lists_image.png\" width=\"17\" height=\"13\"> Bulleted lists (also known as unordered lists).</li><li><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/1_Lists_image.png\" width=\"18\" height=\"16\"> Numbered lists (or ordered lists).</li><li><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Lists_image.png\" width=\"19\" height=\"13\"> To-do lists</li></ul><p>For bulleted and numbered lists, it's possible to configure an alternative marker such as squares or Roman numbering by pressing the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/2_Lists_image.png\" width=\"10\" height=\"6\"> icon. For numbered lists, it's also possible to specify the number to start at or whether to count in reverse order.</p><h2>Keyboard interaction</h2><ul><li>To create a new list:<ul><li>Bulleted list: Start a line with <code spellcheck=\"false\">*</code> or <code spellcheck=\"false\">-</code> followed by a space;</li><li>Numbered list: Start a line with <code spellcheck=\"false\">1.</code> or <code spellcheck=\"false\">1)</code> followed by a space;</li><li>To-do list: Start a line with <code spellcheck=\"false\">- [ ]</code> for an unchecked item or <code spellcheck=\"false\">[x]</code> for a checked item.</li></ul></li><li>To create a new item in the list, press <kbd>Enter</kbd>.</li><li>To create a blank line within a list item, press <kbd>Shift</kbd>+<kbd>Enter</kbd>.</li><li>To exit out of the list, press <kbd>Enter</kbd> twice.</li><li>To merge two lists, simply delete the gap between them.</li><li>To create nested lists, simply use the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/7_Lists_image.png\" width=\"17\" height=\"14\"> button (see <em>Indentation</em> in <a class=\"reference-link\" href=\"#root/_help_dEHYtoWWi8ct\">Other features</a>) or the <kbd>Tab</kbd> key. To decrease the nesting level for the current element, press <kbd>Shift</kbd>+<kbd>Tab</kbd>.</li></ul><h2>Headings, code blocks within lists</h2><p>It possible to add content-level blocks such as headings, code blocks, tables within lists, as follows:</p><figure class=\"table\"><table>\n<thead>\n<tr>\n<th></th>\n<th></th>\n<th></th>\n</tr>\n</thead>\n<tbody><tr>\n<td>1</td>\n<td><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/6_Lists_image.png\"></td>\n<td>First, create a list.</td>\n</tr>\n<tr>\n<td>2</td>\n<td><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/9_Lists_image.png\"></td>\n<td>Press Enter to create a new list item.</td>\n</tr>\n<tr>\n<td>3</td>\n<td><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/5_Lists_image.png\"></td>\n<td>Press Backspace to get rid of the bullet point. Notice the cursor position.</td>\n</tr>\n<tr>\n<td>4</td>\n<td><img class=\"image_resized\" style=\"aspect-ratio:676/112;width:98.29%;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/10_Lists_image.png\" width=\"676\" height=\"112\"></td>\n<td>At this point, insert any desired block-level item such as a code block.</td>\n</tr>\n<tr>\n<td>5</td>\n<td><img class=\"image_resized\" style=\"aspect-ratio:675/129;width:94.22%;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/8_Lists_image.png\" width=\"675\" height=\"129\"></td>\n<td>To continue with a new bullet point, press Enter until the cursor moves to a new blank position.</td>\n</tr>\n<tr>\n<td>6</td>\n<td><img class=\"image_resized\" style=\"aspect-ratio:675/129;width:100%;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/3_Lists_image.png\" width=\"675\" height=\"129\"></td>\n<td>Press Enter once more to create the new bullet.</td>\n</tr>\n</tbody></table></figure><p>The same principle applies to all three list types (bullet, numbered and to-do).</p><h2>To-do lists</h2><p>See <a class=\"reference-link\" href=\"#root/_help_fASfBrYnquKU\">To-do Lists</a>.</p><h2>Collapsible lists</h2><p>Starting with Trilium v0.104.0, it is possible to collapse nested list items. This applies to bullet lists, numbered lists as well as to-do lists.</p><p>To collapse or expand a list item that has nested sub-items:</p><ul><li>Using the mouse, move the cursor over the list item and an arrow will appear to its left. Clicking it will toggle between collapsed and expanded.</li><li>For bullet lists and numbered lists, it's also possible to click directly on the marker (e.g. the bullet or the number) instead of on the arrow to collapse or expand it. This won't work for to-do lists since this would toggle the to-do instead.</li><li>Press <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>Enter</kbd> which will toggle the collapse/expand state for the item at the cursor position.</li></ul><p>Of note:</p><ul><li>Collapsed items always show the arrow to indicate its state.</li><li>The collapsed state is saved at note level and synced across instances, which means that it will restore after a refresh or reopening of the application.</li><li>The collapsed state is also persisted in <a class=\"reference-link\" href=\"#root/_help_mHbBMPDPkVV5\">Import & Export</a>, but only for the HTML format. Markdown exports will not preserve the collapse state.</li><li>Collapsible bullets only exist in the context of editable text notes. Read-only lists will always be fully expanded.</li><li>The list items will auto-expand on edit to avoid typing in a hidden area.</li></ul>",+ "_help_S6Xx8QIWTV66": "<p>There are three types of lists supported by text notes:</p><ul><li><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/4_Lists_image.png\" width=\"17\" height=\"13\"> Bulleted lists (also known as unordered lists).</li><li><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/1_Lists_image.png\" width=\"18\" height=\"16\"> Numbered lists (or ordered lists).</li><li><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Lists_image.png\" width=\"19\" height=\"13\"> To-do lists</li></ul><p>For bulleted and numbered lists, it's possible to configure an alternative marker such as squares or Roman numbering by pressing the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/2_Lists_image.png\" width=\"10\" height=\"6\"> icon. For numbered lists, it's also possible to specify the number to start at or whether to count in reverse order.</p><h2>Keyboard interaction</h2><ul><li>To create a new list:<ul><li>Bulleted list: Start a line with <code spellcheck=\"false\">*</code> or <code spellcheck=\"false\">-</code> followed by a space;</li><li>Numbered list: Start a line with <code spellcheck=\"false\">1.</code> or <code spellcheck=\"false\">1)</code> followed by a space;</li><li>To-do list: Start a line with <code spellcheck=\"false\">- [ ]</code> for an unchecked item or <code spellcheck=\"false\">[x]</code> for a checked item.</li></ul></li><li>To create a new item in the list, press <kbd>Enter</kbd>.</li><li>To create a blank line within a list item, press <kbd>Shift</kbd>+<kbd>Enter</kbd>.</li><li>To exit out of the list, press <kbd>Enter</kbd> twice.</li><li>To merge two lists, simply delete the gap between them.</li><li>To create nested lists, simply use the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/7_Lists_image.png\" width=\"17\" height=\"14\"> button (see <em>Indentation</em> in <a class=\"reference-link\" href=\"#root/_help_dEHYtoWWi8ct\">Other features</a>) or the <kbd>Tab</kbd> key. To decrease the nesting level for the current element, press <kbd>Shift</kbd>+<kbd>Tab</kbd>.</li></ul><h2>Headings, code blocks within lists</h2><p>It possible to add content-level blocks such as headings, code blocks, tables within lists, as follows:</p><figure class=\"table\"><table>\n<thead>\n<tr>\n<th></th>\n<th></th>\n<th></th>\n</tr>\n</thead>\n<tbody><tr>\n<td>1</td>\n<td><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/6_Lists_image.jpg\"></td>\n<td>First, create a list.</td>\n</tr>\n<tr>\n<td>2</td>\n<td><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/9_Lists_image.jpg\"></td>\n<td>Press Enter to create a new list item.</td>\n</tr>\n<tr>\n<td>3</td>\n<td><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/5_Lists_image.jpg\"></td>\n<td>Press Backspace to get rid of the bullet point. Notice the cursor position.</td>\n</tr>\n<tr>\n<td>4</td>\n<td><img class=\"image_resized\" style=\"aspect-ratio:676/112;width:98.29%;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/10_Lists_image.jpg\" width=\"676\" height=\"112\"></td>\n<td>At this point, insert any desired block-level item such as a code block.</td>\n</tr>\n<tr>\n<td>5</td>\n<td><img class=\"image_resized\" style=\"aspect-ratio:675/129;width:94.22%;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/8_Lists_image.jpg\" width=\"675\" height=\"129\"></td>\n<td>To continue with a new bullet point, press Enter until the cursor moves to a new blank position.</td>\n</tr>\n<tr>\n<td>6</td>\n<td><img class=\"image_resized\" style=\"aspect-ratio:675/129;width:100%;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/3_Lists_image.jpg\" width=\"675\" height=\"129\"></td>\n<td>Press Enter once more to create the new bullet.</td>\n</tr>\n</tbody></table></figure><p>The same principle applies to all three list types (bullet, numbered and to-do).</p><h2>To-do lists</h2><p>See <a class=\"reference-link\" href=\"#root/_help_fASfBrYnquKU\">To-do Lists</a>.</p><h2>Collapsible lists</h2><p>Starting with Trilium v0.104.0, it is possible to collapse nested list items. This applies to bullet lists, numbered lists as well as to-do lists.</p><p>To collapse or expand a list item that has nested sub-items:</p><ul><li>Using the mouse, move the cursor over the list item and an arrow will appear to its left. Clicking it will toggle between collapsed and expanded.</li><li>For bullet lists and numbered lists, it's also possible to click directly on the marker (e.g. the bullet or the number) instead of on the arrow to collapse or expand it. This won't work for to-do lists since this would toggle the to-do instead.</li><li>Press <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>Enter</kbd> which will toggle the collapse/expand state for the item at the cursor position.</li></ul><p>Of note:</p><ul><li>Collapsed items always show the arrow to indicate its state.</li><li>The collapsed state is saved at note level and synced across instances, which means that it will restore after a refresh or reopening of the application.</li><li>The collapsed state is also persisted in <a class=\"reference-link\" href=\"#root/_help_mHbBMPDPkVV5\">Import & Export</a>, but only for the HTML format. Markdown exports will not preserve the collapse state.</li><li>Collapsible bullets only exist in the context of editable text notes. Read-only lists will always be fully expanded.</li><li>The list items will auto-expand on edit to avoid typing in a hidden area.</li></ul>","_help_QrtTYPmdd1qq": "<p>Markdown-like formatting allows inserting some basic formatting by typing the Markdown equivalent. Note that this does not mean that <a class=\"reference-link\" href=\"#root/_help_iPIMuisry3hd\">Text</a> notes supports Markdown, these are just some convenience shortcuts.</p><p>To import more complex formatting into text notes, consider using the <a href=\"#root/_help_dEHYtoWWi8ct\"><em>Import from Markdown</em></a> function. For fully-fleged Markdown notes imports, consider using the dedicated <a href=\"#root/_help_Oau6X9rCuegd\">import</a> function.</p><ul><li>For <a href=\"#root/_help_Gr6xFaF6ioJ5\">headings:</a><ul><li><code spellcheck=\"false\">##</code> for Heading 2 (the first-level heading is reserved for the note title).</li><li><code spellcheck=\"false\">###</code> for Heading 3</li><li><code spellcheck=\"false\">####</code> for Heading 4</li><li><code spellcheck=\"false\">#####</code> for Heading 5</li><li><code spellcheck=\"false\">######</code> for Heading 6</li></ul></li><li>For <a class=\"reference-link\" href=\"#root/_help_Gr6xFaF6ioJ5\">General formatting</a>:<ul><li><strong>Bold</strong>: Type <code spellcheck=\"false\">**text**</code> or <code spellcheck=\"false\">__text__</code></li><li><em>Italic</em>: Type <code spellcheck=\"false\">*text*</code> or <code spellcheck=\"false\">_text_</code></li><li><del>Strikethrough</del>: Type <code spellcheck=\"false\">~~text~~</code></li></ul></li><li>For <a class=\"reference-link\" href=\"#root/_help_S6Xx8QIWTV66\">Lists</a>:<ul><li>Bulleted list: Start a line with <code spellcheck=\"false\">*</code> or <code spellcheck=\"false\">-</code> followed by a space;</li><li>Numbered list: Start a line with <code spellcheck=\"false\">1.</code> or <code spellcheck=\"false\">1)</code> followed by a space;</li><li>To-do list: Start a line with <code spellcheck=\"false\">[ ]</code> for an unchecked item or <code spellcheck=\"false\">[x]</code> for a checked item.</li></ul></li><li>For <a href=\"#root/_help_NwBbFdNZ9h7O\">block quotes</a>, press <code spellcheck=\"false\">></code>, followed by a space.</li><li>For <a class=\"reference-link\" href=\"#root/_help_QxEyIjRBizuC\">Code blocks</a>, type <code spellcheck=\"false\">```</code>.</li><li>For a <a href=\"#root/_help_dEHYtoWWi8ct\">horizontal line</a>, type <code spellcheck=\"false\">---</code>.</li><li>For <a href=\"#root/_help_NwBbFdNZ9h7O\">admonitions</a>:<ul><li><code spellcheck=\"false\">!!! note</code></li><li><code spellcheck=\"false\">!!! tip</code></li><li><code spellcheck=\"false\">!!! important</code></li><li><code spellcheck=\"false\">!!! caution</code></li><li><code spellcheck=\"false\">!!! warning</code></li><li>Starting any other text with <code spellcheck=\"false\">!!!</code> will insert a note admonition with the text inside of it.</li></ul></li><li>For <a href=\"#root/_help_CohkqWQC1iBv\">emojis</a>, type <code spellcheck=\"false\">:</code> followed by an emoji name to trigger an auto-completion.</li></ul><p>If auto-formatting is not desirable, press <kbd>Ctrl</kbd> + <kbd>Z</kbd> to revert the text to its original form.</p>","_help_YfYAtQBcfo5V": "<figure class=\"image image-style-align-right\"><img style=\"aspect-ratio:350/193;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Math%20Equations_image.png\" width=\"350\" height=\"193\"></figure><p>Within text notes, it's possible to enter mathematical equations using the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/1_Math%20Equations_image.png\" width=\"20\" height=\"15\"> button from the <a class=\"reference-link\" href=\"#root/_help_nRhnJkTT8cPs\">Formatting toolbar</a> (generally found under the <a class=\"reference-link\" href=\"#root/_help_CohkqWQC1iBv\">Insert buttons</a>).</p><p>The mathematical expression must be written in the TeX format. There is no visual editor for the math equations, only a preview. </p><p>Enabling <em>Display mode</em> will render the equation slightly bigger (especially if using big operators such as summation, or fractions) and center it. Display mode equations will act as blocks (i.e. like paragraphs, or tables) and can be inserted for example in lists. Non-display equations can be part of the text.</p><h2>Keyboard shortcuts</h2><p>If inserting equations frequently, using the <kbd>Ctrl</kbd>+<kbd>M</kbd> keyboard shortcut can be more comfortable. Alternatively, type <code spellcheck=\"false\">$$</code> or <code spellcheck=\"false\">\\[</code> to trigger the popup directly.</p><p>There is currently no quick way to turn an already typed-out equation, such as surrounding it with <code spellcheck=\"false\">$</code> or pressing <kbd>Ctrl</kbd>+<kbd>M</kbd>.</p><h2>Supported math features</h2><p>Technically we are using the KaTeX library which allows for a subset of the TeX format. To see the full list of supported features, consult the <a href=\"https://katex.org/docs/supported\">Supported Functions</a> and the <a href=\"https://katex.org/docs/support_table\">Support Table</a> from the official documentation.</p><h2>Markdown support</h2><p>Math equations will be preserved when exporting to or importing from Markdown, surrounded by <code spellcheck=\"false\">$</code> characters for inline math expressions, and <code spellcheck=\"false\">$$</code> for display mode.</p><p>If you notice any issue with the Markdown import/export for equations, feel free to <a href=\"#root/_help_wy8So3yZZlH9\">report</a> it while providing the equation that causes issues.</p><h2>Formatting the equation</h2><p>It is possible to customize the font size and foreground color for both inline and display-mode equations, just like any other text. For inline equations, the background color/highlight can also be adjusted.</p>","_help_dEHYtoWWi8ct": "<h2>Indentation</h2><figure class=\"image image-style-align-right\"><img style=\"aspect-ratio:201/124;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/6_Other%20features_image.png\" width=\"201\" height=\"124\"></figure><p>Paragraphs can be indented to the right using the button from the <a class=\"reference-link\" href=\"#root/_help_nRhnJkTT8cPs\">Formatting toolbar</a>.</p><ul><li>Press <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/5_Other%20features_image.png\" width=\"17\" height=\"14\"> to increase the indentation of the current paragraph by one. Can be pressed multiple times if needed.</li><li>Press <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/1_Other%20features_image.png\" width=\"17\" height=\"14\"> to decrease the indentation of a current paragraph. The button will be disabled if it is already at the minimum indentation level.</li><li>For convenience, keyboard shortcuts are also available. Press <kbd>Tab</kbd> to indent or <kbd>Shift</kbd>+<kbd>Tab</kbd> to decrease the indentation. These shortcuts work even if the cursor is not at the beginning of a paragraph or a list.</li><li>Apart from paragraphs, the indent button is also enabled in <a class=\"reference-link\" href=\"#root/_help_S6Xx8QIWTV66\">Lists</a>, where it can be used to create nested lists.</li></ul><h2>Markdown import</h2><p>If the clipboard contains Markdown text, it can be easily imported into text notes. Simply copy a Markdown-formatted text and press the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/2_Other%20features_image.png\" width=\"20\" height=\"14\"> to insert its visual representation.</p><p>Note that this only works with raw Markdown (e.g. <code spellcheck=\"false\"># Heading 1</code> to generate a heading) and not the visual representation of the Markdown (e.g. as in the preview pane of an application). In that case, simply use the paste function which already accepts HTML-formatted content.</p><p>This is mostly useful for snippets of text, for entire Markdown documents use the dedicated <a class=\"reference-link\" href=\"#root/_help_Oau6X9rCuegd\">Markdown</a> import/export function.</p><p>If accessing Trilium with a web browser, the Markdown import action will ask for the content to be inserted into a dedicated screen since it does not have access to the clipboard.</p><h2>Cut to subnote</h2><p>The <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Other%20features_image.png\" width=\"16\" height=\"20\"> button will create a child note with the selected text. For more information, see <a class=\"reference-link\" href=\"#root/_help_2x0ZAX9ePtzV\">Cut to subnote</a>.</p><h2>Find and replace</h2><figure class=\"image image-style-align-right\"><img style=\"aspect-ratio:394/203;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/4_Other%20features_image.png\" width=\"394\" height=\"203\"></figure><p>The <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/3_Other%20features_image.png\" width=\"18\" height=\"17\"> button will open the editor's dedicated search and replace functionality.</p><p>Alternatively, the <kbd>Ctrl</kbd>+<kbd>F</kbd> combination can be pressed to show the dialog.</p>",@@ -141,7 +141,7 @@"_help_NdowYOC1GFKS": "<p>Tables are a powerful feature for <a class=\"reference-link\" href=\"#root/_help_iPIMuisry3hd\">Text</a> notes, since editing them is generally easy.</p><figure class=\"image image-style-align-right\"><img style=\"aspect-ratio:176/204;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/6_Tables_image.png\" width=\"176\" height=\"204\"></figure><p>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.</p><h2>Formatting toolbar</h2><p>When a table is selected, a special formatting toolbar will appear:</p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/10_Tables_image.png\" width=\"384\" height=\"100\"><h2>Navigating a table</h2><ul><li>Using the mouse:<ul><li>Click on a cell to focus it.</li><li>Click the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/11_Tables_image.png\" width=\"28\" height=\"27\"> button at the top or the bottom of a table to insert an empty paragraph near it.</li><li>Click the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/5_Tables_image.png\" width=\"24\" height=\"26\"> button at the top-left of the table to select it entirely (for easy copy-pasting or cutting) or drag and drop it to relocate the table.</li></ul></li><li>Using the keyboard:<ul><li>Use the arrow keys on the keyboard to easily navigate between cells.</li><li>It's also possible to use <kbd>Tab</kbd> to go to the next cell and Shift+Tab to go to the previous cell.</li><li>Unlike arrow keys, pressing <kbd>Tab</kbd> at the end of the table (last row, last column) will create a new row automatically.</li><li>To select multiple cells, hold <kbd>Shift</kbd> while using the arrow keys.</li></ul></li></ul><h2>Resizing cells</h2><ul><li>Columns can be resized by hovering the mouse over the border of two adjacent cells and dragging it.</li><li>By default, the row height is not adjustable using the mouse, but it can be configured from the cell settings (see below).</li><li>To adjust exactly the width (in pixels or percentages) of a cell, select the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/8_Tables_image.png\" width=\"19\" height=\"19\"> button.</li></ul><h2>Inserting new rows and new columns</h2><ul><li>To insert a new column, click on a desired location, then press the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Tables_image.png\" width=\"18\" height=\"20\"> button from the formatting toolbar and select <em>Insert column left or right.</em></li><li>To insert a new row, click on a desired location, then press the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/7_Tables_image.png\" width=\"20\" height=\"18\"> button and select <em>Insert row above</em> or <em>below</em>.<ul><li>A quicker alternative to creating a new row while at the end of the table is to press the <kbd>Tab</kbd> key.</li></ul></li></ul><h2>Merging cells</h2><p>To merge two or more cells together, simply select them via drag & drop and press the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/1_Tables_image.png\" width=\"19\" height=\"19\"> button from the formatting toolbar.</p><p>More options are available by pressing the arrow next to it:</p><ul><li>Click on a single cell and select Merge cell up/down/right/left to merge with an adjacent cell.</li><li>Select <em>Split cell vertically</em> or <em>horizontally</em>, to split a cell into multiple cells (can also be used to undo a merge).</li></ul><h2>Table properties</h2><figure class=\"image image-style-align-right\"><img style=\"aspect-ratio:312/311;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/2_Tables_image.png\" width=\"312\" height=\"311\"></figure><p>The table properties can be accessed via the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/13_Tables_image.png\" width=\"19\" height=\"19\"> button and allows for the following adjustments:</p><ul><li>Border (not the border of the cells, but the outer rim of the table), which includes the style (single, double), color and width.</li><li>The background color, with none set by default.</li><li>The width and height of the table in percentage (must end with <code spellcheck=\"false\">%</code>) or pixels (must end with <code spellcheck=\"false\">px</code>).</li><li>The alignment of the table.<ul><li>Left or right-aligned, case in which the text will flow next to it.</li><li>Centered, case in which text will avoid the table, regardless of the table width.</li></ul></li></ul><p>The table will immediately update to reflect the changes, but the <em>Save</em> button must be pressed for the changes to persist.</p><h2>Cell properties</h2><figure class=\"image image-style-align-right\"><img style=\"aspect-ratio:320/386;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/3_Tables_image.png\" width=\"320\" height=\"386\"></figure><p>Similarly to table properties, the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/12_Tables_image.png\" width=\"19\" height=\"19\"> button opens a popup which adjusts the styling of one or more cells (based on the user's selection).</p><p>The following options can be adjusted:</p><ul><li>The border style, color and width (same as table properties), but applying to the current cell only.</li><li>The background color, with none set by default.</li><li>The width and height of the cell in percentage (must end with <code spellcheck=\"false\">%</code>) or pixels (must end with <code spellcheck=\"false\">px</code>).</li><li>The padding (the distance of the text compared to the cell's borders).</li><li>The alignment of the text, both horizontally (left, centered, right, justified) and vertically (top, middle or bottom).</li></ul><p>The cell will immediately update to reflect the changes, but the <em>Save</em> button must be pressed for the changes to persist.</p><h2>Caption</h2><p>Press the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/4_Tables_image.png\" width=\"18\" height=\"17\"> button to insert a caption or a text description of the table, which is going to be displayed above the table.</p><h2>Table borders</h2><p>By default, tables will come with a predefined gray border.</p><p>To adjust the borders, follow these steps:</p><ol><li>Select the table.</li><li>In the floating panel, select the <em>Table properties</em> option (<img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/14_Tables_image.png\" width=\"21\" height=\"21\">).<ol><li>Look for the <em>Border</em> section at the top of the newly opened panel.</li><li>This will control the outer borders of the table.</li><li>Select a style for the border. Generally <em>Single</em> is the desirable option.</li><li>Select a color for the border.</li><li>Select a width for the border, expressed in pixels.</li></ol></li><li>Select all the cells of the table and then press the <em>Cell properties</em> option (<img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/9_Tables_image.png\" width=\"21\" height=\"21\">).<ol><li>This will control the inner borders of the table, at cell level.</li><li>Note that it's possible to change the borders individually by selecting one or more cells, case in which it will only change the borders that intersect these cells.</li><li>Repeat the same steps as from step (2).</li></ol></li></ol><h3>Tables with invisible borders</h3><p>Tables can be set to have invisible borders in order to allow for basic layouts (columns, grids) of text or <a href=\"#root/_help_mT0HEkOsz6i1\">images</a> without the distraction of their border:</p><ol><li>First insert a table with the desired number of columns and rows.</li><li>Select the entire table.</li><li>In <em>Table properties</em>, set:<ol><li><em>Style</em> to <em>Single</em></li><li><em>Color</em> to <code spellcheck=\"false\">transparent</code></li><li>Width to <code spellcheck=\"false\">1px</code>.</li></ol></li><li>In Cell Properties, set the same as on the previous step.</li></ol><h2>Table indentation</h2><p>Since v0.104.1, tables can be indented as a block (the whole table moves, rather than just the content of a cell).</p><ol><li>Click the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/5_Tables_image.png\" width=\"24\" height=\"26\"> button to select the entire table. Otherwise, the indentation applies only to the current cell's content.</li><li>Press <kbd>Tab</kbd> to increase the indent, or <kbd>Shift</kbd>+<kbd>Tab</kbd> to decrease it. Alternatively, use the indentation buttons in the formatting toolbar.</li></ol><p>Markdown does not support indented tables, so the indentation is lost when converting to Markdown.</p><h2>Markdown import/export</h2><p>Simple tables are exported in GitHub-flavored Markdown format (e.g. a series of <code spellcheck=\"false\">|</code> items). If the table is found to be more complex (it contains HTML elements, has custom sizes or images), the table is converted to a HTML one instead.</p><p>Generally formatting loss should be minimal when exported to Markdown due to the fallback to HTML formatting.</p>","_help_pwc194wlRzcH": "<figure class=\"image image-style-align-right\"><img style=\"aspect-ratio:265/108;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/Text%20Snippets_image.png\" width=\"265\" height=\"108\"></figure><p>Text Snippets are closely related to <a class=\"reference-link\" href=\"#root/_help_KC1HB96bqqHX\">Templates</a>, 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.</p><h2>Creating a text snippet</h2><p>In the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>: </p><ol><li>Right click a note where to place the text snippet.</li><li>Select <em>Insert child note</em>.</li><li>Select <em>Text snippet</em>.</li></ol><p>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.</p><p>The title of the note will become the title of the template. Optionally, a description can be added in the <a class=\"reference-link\" href=\"#root/_help_OFXdgB2nNk1F\">Promoted Attributes</a> section.</p><h2>Inserting a snippet</h2><p>Once a snippet is created, there are two options to insert it:</p><ol><li>From the <a class=\"reference-link\" href=\"#root/_help_nRhnJkTT8cPs\">Formatting toolbar</a>, by looking for the <img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/1_Text%20Snippets_image.png\" width=\"19\" height=\"19\">button.</li><li>Using <a class=\"reference-link\" href=\"#root/_help_ZlN4nump6EbW\">Slash Commands</a>: <ol><li>To look for a specific template, start typing the name of the template (its title).</li><li>To look for all the templates, type <code spellcheck=\"false\">template</code>.</li></ol></li></ol><aside class=\"admonition tip\"><p>A newly created snippet doesn't appear? Generally it takes up to a few seconds to refresh the list of templates once you make a change.</p><p>If this doesn't happen, <a href=\"#root/_help_s8alTXmpFR61\">reload the application</a> and <a href=\"#root/_help_wy8So3yZZlH9\">report the issue</a>to us. </p></aside><h2>Limitations</h2><ul><li>Whenever a snippet is created, deleted or its title/description are modified, all the open text notes will need to be refreshed. This causes a slight flash for usually under a second, but it can cause some discomfort.</li><li>Unlike <a class=\"reference-link\" href=\"#root/_help_KC1HB96bqqHX\">Templates</a>, the snippets cannot be limited to a particular <a href=\"#root/_help_9sRHySam5fXb\">workspace</a>.</li></ul>","_help_fASfBrYnquKU": "<h2>Extended task states</h2><figure class=\"image image-style-align-left\"><img style=\"aspect-ratio:303/264;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Text/To-do%20Lists_image.png\" width=\"303\" height=\"264\"></figure><p>In Trilium, to-do items aren't limited to a simple \"done\" or \"not done.\" Tasks can also be marked as <em>in progress</em> (\"doing\"), <em>under consideration</em> (\"maybe\"), or <em>cancelled</em> (\"won't do\"), thus giving a more accurate picture of where things actually stand.</p><p>Right-click the checkbox and select the desired state. Alternatively, press <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>Enter </kbd> to cycle through the task states. Tapping or left-clicking the checkbox will always toggle between \"None\" and \"Done\".</p><p>Task states are fully preserved when converting between <a class=\"reference-link\" href=\"#root/_help_iPIMuisry3hd\">Text</a> and <a class=\"reference-link\" href=\"#root/_help_6RM1Q7ppFVoj\">Markdown</a> notes, in both directions.</p><h3>Customizing the extended task states</h3><p>Task states are customizable: you can reorder them, create new ones with different colors and symbols, or delete the ones you don't need. See <a class=\"reference-link\" href=\"#root/_help_i16PM6A7GXdU\">Customizing to-do task states</a> for more details.</p><h2>Keyboard shortcuts</h2><p>When at the beginning on an empty paragraph, type the following to insert a to-do list:</p><ul><li><code spellcheck=\"false\">[ ]</code> for an unchecked item</li><li><code spellcheck=\"false\">[x]</code> for a checked item</li></ul><p>Extended task states are supported as well, using its corresponding <em>Markdown symbol</em>. These are the defaults but they can be changed if needed (see <a class=\"reference-link\" href=\"#root/_help_i16PM6A7GXdU\">Customizing to-do task states</a>):</p><ul><li><code spellcheck=\"false\">[/]</code> for “Doing”.</li><li><code spellcheck=\"false\">[?]</code> for “Maybe”.</li><li><code spellcheck=\"false\">[-]</code> for “Cancelled”.</li></ul><p>To reorder the item under the cursor, press <kbd>Alt</kbd>+<kbd>Up</kbd> or <kbd>Alt</kbd>+<kbd>Down</kbd>. To reorder multiple items, select them first.</p><h2>See also</h2><ul><li>To-do lists are meant for small task lists. For more complicated, day-to-day task tracking consider using a <a class=\"reference-link\" href=\"#root/_help_CtBQqbwXDx1w\">Kanban Board</a> collection instead.</li></ul>",- "_help_6f9hih2hXXZk": "<p>Trilium supports creating \"code\" notes, i.e. notes which contain some sort of formal code - be it programming language (C++, JavaScript), structured data (JSON, XML) or other types of codes (CSS etc.).</p><p>This can be useful for a few things:</p><ul><li>computer programmers can store code snippets as notes with syntax highlighting</li><li>JavaScript code notes can be executed inside Trilium for some extra functionality<ul><li>we call such JavaScript code notes \"scripts\" - see <a class=\"reference-link\" href=\"#root/_help_CdNpE2pqjmI6\">Scripting</a></li></ul></li><li>JSON, XML etc. can be used as storage for structured data (typically used in conjunction with scripting)</li></ul><p>For shorter snippets of code that can be embedded in <a href=\"#root/_help_iPIMuisry3hd\">Text</a> notes, see <a href=\"#root/_help_QxEyIjRBizuC\">Code blocks</a>.</p><p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Code_image.png\"></p><h2>Adjusting the language of a code note</h2><p>In the <a href=\"#root/_help_BlN9DFI679QC\">Ribbon</a>, look for the <em>Note type</em> selector and click it to reveal the possible note types. Inside of it there will be a section called <em>Code</em>, select any one of the languages.</p><p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/1_Code_image.png\"></p><h2>Adjusting the list of languages</h2><p>Trilium supports syntax highlighting for many languages, but by default displays only some of them. The supported languages can be adjusted by going to <a href=\"#root/_help_4TIF1oA4VQRO\">Options</a>, then <em>Code Notes</em> and looking for the <em>Available MIME types in the dropdown</em> section. Simply check any of the items to add them to the list, or un-check them to remove them from the list.</p><p>Note that the list of languages is not immediately refreshed, you'd have to manually <a href=\"#root/_help_s8alTXmpFR61\">refresh the application</a>.</p><p>The list of languages is also shared with the <a href=\"#root/_help_QxEyIjRBizuC\">Code blocks</a> feature of <a href=\"#root/_help_iPIMuisry3hd\">Text</a> notes.</p><h2>Word wrap</h2><p>Long lines can be displayed on multiple lines:</p><ul><li>Globally for all code notes, from <a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → <em>Code Notes.</em></li><li>For a particular note, by going to the menu in <a class=\"reference-link\" href=\"#root/_help_8YBEPzcpUgxw\">Note buttons</a> and selecting <em>Word wrap</em> and selecting the appropriate option:<ul><li><em>Auto</em>, to respect the global word wrap for code notes.</li><li><em>On</em> or <em>Off</em>, to change the state of the word wrap for this note regardless of the global option.</li></ul></li></ul><aside class=\"admonition note\"><p>Word wrapping can also be adjusted at note level through the <code spellcheck=\"false\">#wrapLines</code> <a href=\"#root/_help_HI6GBBIduIgv\">label</a>, which can also be inherited.</p></aside><h2>Adjusting options using the status bar</h2><aside class=\"admonition note\"><p>This feature is only available for the <a class=\"reference-link\" href=\"#root/_help_IjZS7iK5EXtb\">New Layout</a>. For the old layout, the tab width can be adjusted at note level using the <code spellcheck=\"false\">#tabWidth</code> attribute, but re-indentation is not available.</p></aside><p>The status bar at the bottom of the editor shows the current indentation settings and language. Clicking on the indentation indicator opens a menu with three sections:</p><ol><li><strong>Indent Using</strong> — switch between Spaces and Tabs (<code spellcheck=\"false\">#indentWithTabs</code>). If a per-note override is active, a \"Reset to default\" option appears.</li><li><strong>Display Width</strong> — choose from preset widths (1, 2, 3, 4, 6, 8). Changes are saved as a per-note <code spellcheck=\"false\">#tabWidth</code> label.</li><li><strong>Re-indent Content To</strong> — convert existing indentation to a different style. For example, re-indent a file from 4 spaces to 2 spaces, or from spaces to tabs. This rewrites the leading whitespace on every line while preserving alignment remainders.</li></ol><p>Clicking the language indicator lets you change the note's MIME type.</p><h3>Re-indentation</h3><p>When you re-indent content, the editor:</p><ul><li>Measures the visual column width of each line's leading whitespace using the current style</li><li>Calculates indent levels and any alignment remainder</li><li>Rebuilds the leading whitespace in the target style</li><li>Preserves non-leading whitespace, blank lines, and content without indentation</li></ul><h2>Color schemes</h2><p>Since Trilium 0.94.0 the colors of code notes can be customized by going <a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → Code Notes and looking for the <em>Appearance</em> section.</p><aside class=\"admonition note\"><p><strong>Why are there only a few themes whereas the code block themes for text notes have a lot?</strong><br>The reason is that Code notes use a different technology than the one used in Text notes, and as such there is a more limited selection of themes. If you find a CodeMirror 6 (not 5) theme that you would like to use, let us know and we might consider adding it to the set of default themes. There is no possibility of adding new themes (at least for now), since the themes are defined in JavaScript and not at CSS level.</p></aside>",+ "_help_6f9hih2hXXZk": "<p>Trilium supports creating \"code\" notes, i.e. notes which contain some sort of formal code - be it programming language (C++, JavaScript), structured data (JSON, XML) or other types of codes (CSS etc.).</p><p>This can be useful for a few things:</p><ul><li>computer programmers can store code snippets as notes with syntax highlighting</li><li>JavaScript code notes can be executed inside Trilium for some extra functionality<ul><li>we call such JavaScript code notes \"scripts\" - see <a class=\"reference-link\" href=\"#root/_help_CdNpE2pqjmI6\">Scripting</a></li></ul></li><li>JSON, XML etc. can be used as storage for structured data (typically used in conjunction with scripting)</li></ul><p>For shorter snippets of code that can be embedded in <a href=\"#root/_help_iPIMuisry3hd\">Text</a> notes, see <a href=\"#root/_help_QxEyIjRBizuC\">Code blocks</a>.</p><p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Code_image.jpg\"></p><h2>Adjusting the language of a code note</h2><p>In the <a href=\"#root/_help_BlN9DFI679QC\">Ribbon</a>, look for the <em>Note type</em> selector and click it to reveal the possible note types. Inside of it there will be a section called <em>Code</em>, select any one of the languages.</p><p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/1_Code_image.jpg\"></p><h2>Adjusting the list of languages</h2><p>Trilium supports syntax highlighting for many languages, but by default displays only some of them. The supported languages can be adjusted by going to <a href=\"#root/_help_4TIF1oA4VQRO\">Options</a>, then <em>Code Notes</em> and looking for the <em>Available MIME types in the dropdown</em> section. Simply check any of the items to add them to the list, or un-check them to remove them from the list.</p><p>Note that the list of languages is not immediately refreshed, you'd have to manually <a href=\"#root/_help_s8alTXmpFR61\">refresh the application</a>.</p><p>The list of languages is also shared with the <a href=\"#root/_help_QxEyIjRBizuC\">Code blocks</a> feature of <a href=\"#root/_help_iPIMuisry3hd\">Text</a> notes.</p><h2>Word wrap</h2><p>Long lines can be displayed on multiple lines:</p><ul><li>Globally for all code notes, from <a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → <em>Code Notes.</em></li><li>For a particular note, by going to the menu in <a class=\"reference-link\" href=\"#root/_help_8YBEPzcpUgxw\">Note buttons</a> and selecting <em>Word wrap</em> and selecting the appropriate option:<ul><li><em>Auto</em>, to respect the global word wrap for code notes.</li><li><em>On</em> or <em>Off</em>, to change the state of the word wrap for this note regardless of the global option.</li></ul></li></ul><aside class=\"admonition note\"><p>Word wrapping can also be adjusted at note level through the <code spellcheck=\"false\">#wrapLines</code> <a href=\"#root/_help_HI6GBBIduIgv\">label</a>, which can also be inherited.</p></aside><h2>Adjusting options using the status bar</h2><aside class=\"admonition note\"><p>This feature is only available for the <a class=\"reference-link\" href=\"#root/_help_IjZS7iK5EXtb\">New Layout</a>. For the old layout, the tab width can be adjusted at note level using the <code spellcheck=\"false\">#tabWidth</code> attribute, but re-indentation is not available.</p></aside><p>The status bar at the bottom of the editor shows the current indentation settings and language. Clicking on the indentation indicator opens a menu with three sections:</p><ol><li><strong>Indent Using</strong> — switch between Spaces and Tabs (<code spellcheck=\"false\">#indentWithTabs</code>). If a per-note override is active, a \"Reset to default\" option appears.</li><li><strong>Display Width</strong> — choose from preset widths (1, 2, 3, 4, 6, 8). Changes are saved as a per-note <code spellcheck=\"false\">#tabWidth</code> label.</li><li><strong>Re-indent Content To</strong> — convert existing indentation to a different style. For example, re-indent a file from 4 spaces to 2 spaces, or from spaces to tabs. This rewrites the leading whitespace on every line while preserving alignment remainders.</li></ol><p>Clicking the language indicator lets you change the note's MIME type.</p><h3>Re-indentation</h3><p>When you re-indent content, the editor:</p><ul><li>Measures the visual column width of each line's leading whitespace using the current style</li><li>Calculates indent levels and any alignment remainder</li><li>Rebuilds the leading whitespace in the target style</li><li>Preserves non-leading whitespace, blank lines, and content without indentation</li></ul><h2>Color schemes</h2><p>Since Trilium 0.94.0 the colors of code notes can be customized by going <a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → Code Notes and looking for the <em>Appearance</em> section.</p><aside class=\"admonition note\"><p><strong>Why are there only a few themes whereas the code block themes for text notes have a lot?</strong><br>The reason is that Code notes use a different technology than the one used in Text notes, and as such there is a more limited selection of themes. If you find a CodeMirror 6 (not 5) theme that you would like to use, let us know and we might consider adding it to the set of default themes. There is no possibility of adding new themes (at least for now), since the themes are defined in JavaScript and not at CSS level.</p></aside>","_help_m523cpzocqaD": "<p>Trilium allows you to save common searches as notes within the note tree. The search results will appear as sub-notes under these \"saved search\" notes. Here is an example of how it works:</p><figure class=\"image image_resized image-style-align-center\" style=\"width:50%;\"><img style=\"aspect-ratio:812/585;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Saved%20Search_saved-search.gif\" width=\"812\" height=\"585\"></figure><h2>Location</h2><p>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 <code spellcheck=\"false\">#searchHome</code> label. Additionally, for <a href=\"#root/_help_9sRHySam5fXb\">workspaces</a>, you can use the <code spellcheck=\"false\">#workspaceSearchHome</code> label to specify a storage location for saved searches within that workspace.</p>","_help_iRwzGnHPzonm": "<p>Relation map is a type of note which visualizes notes and their <a href=\"#root/_help_zEY4DaJG4YT5\">relations</a>.</p><h2>Interaction</h2><ul><li>To create a new note and add it to the board, press the plus button in the <a class=\"reference-link\" href=\"#root/_help_XpOYSgsLkTJy\">Floating buttons</a>.<ul><li>Afterwards, click anywhere on the map to place it there.</li><li>The note will be placed as a sub-child of the map.</li></ul></li><li>An existing note can also be dragged from the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>. It will be placed at the position it's dragged on.<ul><li>Multiple notes can also be dragged via <a class=\"reference-link\" href=\"#root/_help_yTjUdsOi4CIE\">Multiple selection</a>. The notes will be positioned near the dragged position without overlapping.</li><li>The dragged note can be a sub-child of the map, or it can be at any arbitrary position.</li></ul></li><li>To create a relationship, hold the mouse on the box on the right of a note and then:<ul><li>Drag it over another note to create a relationship pointing from the first note to the second one.</li><li>Drag over the same note to create a self-referencing relationship (represented as a loop).</li><li>Once dragged, enter the name of the relationship to create. To cancel, simply dismiss the dialog or press <kbd>Esc</kbd>.</li></ul></li><li>To open a note, either click on the note (opening it in the current view) or use the right click menu to open in a new tab.</li><li>To edit the title of a note or to delete it (either from the map, or delete it completely), right click the note.</li><li>To delete a relationship, right click it and select the corresponding option.</li></ul><h2>Development process demo</h2><p>This is a basic example how you can create simple diagram using relation maps:</p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Relation%20Map_relation-map-dev-process.png\" width=\"934\" height=\"667\"><p>And this is how you can create it:</p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Relation%20Map_relation-map-dev-process-demo.gif\" width=\"812\" height=\"585\"><p>We start completely from scratch by first creating new note called \"Development process\" and changing its type to \"Relation map\". After that we create new notes one by one and place them by clicking into the map. We also drag <a href=\"#root/_help_zEY4DaJG4YT5\">relations</a>between notes and name them. That's all!</p><p>Items on the map - \"Specification\", \"Development\", \"Testing\" and \"Demo\" are actually notes which have been created under \"Development process\" note - you can click on them and write some content. Connections between notes are called \"<a href=\"#root/_help_zEY4DaJG4YT5\">relations</a>\".</p><h2>Family demo</h2><p>This is more complicated demo using some advanced concepts. Resulting diagram is here:</p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Relation%20Map_relation-map-family.png\" width=\"941\" height=\"758\"><p>This is how you get to it:</p><img src=\"{{helpAssets}}/User%20Guide/Note%20Types/Relation%20Map_relation-map-family-demo.gif\" width=\"812\" height=\"585\"><p>There are several steps here:</p><ul><li>we start with empty relation map and two existing notes representing Prince Philip and Queen Elizabeth II. These two notes already have <code spellcheck=\"false\">isPartnerOf</code> <a href=\"#root/_help_zEY4DaJG4YT5\">relations</a>defined.<ul><li>There are actually two \"inverse\" relations (one from Philip to Elizabeth and one from Elizabeth to Philip)</li></ul></li><li>we drag both notes to relation map and place to suitable position. Notice how the existing <code spellcheck=\"false\">isPartnerOf</code> relations are displayed.</li><li>now we create new note - we name it \"Prince Charles\" and place it on the relation map by clicking on the desired position. The note is by default created under the relation map note (visible in the note tree on the left).</li><li>we create two new relations <code spellcheck=\"false\">isChildOf</code> targeting both Philip and Elizabeth<ul><li>now there's something unexpected - we can also see the relation to display another <code spellcheck=\"false\">hasChild</code> relation. This is because there's a <a href=\"#root/_help_OFXdgB2nNk1F\">relation definition</a> which puts <code spellcheck=\"false\">isChildOf</code> as an \"<a href=\"#root/_help_OFXdgB2nNk1F\">inverse</a>\" relation of <code spellcheck=\"false\">hasChildOf</code> (and vice versa) and thus it is created automatically.</li></ul></li><li>we create another note for Princess Diana and create <code spellcheck=\"false\">isPartnerOf</code> relation from Charles. Again notice how the relation has arrows both ways - this is because <code spellcheck=\"false\">isPartnerOf</code> definition specifies its inverse relation as again \"isPartnerOf\" so the opposite relation is created automatically.</li><li>as the last step we pan & zoom the map to fit better to window dimensions.</li></ul><p>Relation definitions mentioned above come from \"Person template\" note which is assigned to any child of \"My Family Tree\" relation note. You can play with the whole thing in the <a href=\"#root/_help_wX4HbRucYSDD\">demo notes</a>.</p><h2>Details</h2><p>You can specify which relations should be displayed with comma delimited names of relations in <code spellcheck=\"false\">displayRelations</code> label.</p><p>Alternatively, you can specify comma delimited list of relation names in <code spellcheck=\"false\">hideRelations</code> which will display all relations, except for the ones defined in the label.</p><h2>See also</h2><ul><li><a class=\"reference-link\" href=\"#root/_help_bdUJEHsAPYQR\">Note Map</a> is a similar concept.</li></ul>","_help_bdUJEHsAPYQR": "<figure class=\"image image_resized\" style=\"width:72.68%;\"><img style=\"aspect-ratio:1311/1271;\" src=\"{{helpAssets}}/User%20Guide/Note%20Types/Note%20Map_image.png\" width=\"1311\" height=\"1271\"></figure><p>A Note map is a note type which displays a standalone version of the feature of the same name: <a class=\"reference-link\" href=\"#root/_help_BCkXAVs63Ttv\">Note Map (Link map, Tree map)</a>. Consult that page for more information on how the note map works and what it displays.</p><p>Once created, the note map will display the relations between notes. Only the notes that are part of the parent of the note map will be displayed (including their children).</p><h2>Root note</h2><p>The root note defines the starting point of the graph, from which the relations and the hierarchy are derived from.</p><p>There are three possible root notes:</p><ul><li>The default root note is the parent note of the note map.</li><li>To use the currently <a href=\"#root/_help_OR8WJ7Iz9K4U\">hoisted note</a> instead, set the <code spellcheck=\"false\">mapRootNoteId</code> label to <code spellcheck=\"false\">hoisted</code>.</li><li>To use a specific note instead, set <code spellcheck=\"false\">mapRootNoteId</code> to the <a class=\"reference-link\" href=\"#root/_help_m1lbrzyKDaRB\">Note ID</a> of the desired note.</li></ul><h2>Customization</h2><p>The note map can be customized using the following <a class=\"reference-link\" href=\"#root/_help_HI6GBBIduIgv\">Labels</a>:</p><figure class=\"table\"><table>\n<thead>\n<tr>\n<th>Label</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code spellcheck=\"false\">#mapIncludeRelation</code></td>\n<td>Comma-delimited relation names to include from the note map.</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">#mapExcludeRelation</code></td>\n<td>Comma-delimited relation names to exclude from the note map.</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">#mapRootNoteId</code></td>\n<td>The ID of the note the map roots from, or <code spellcheck=\"false\">hoisted</code>. See the root note section above for more information.</td>\n</tr>\n</tbody></table></figure>",@@ -170,13 +170,13 @@"_help_IF7Q6I9x7zuw": "<figure class=\"image\"><img style=\"aspect-ratio:1406/1030;\" src=\"{{helpAssets}}/User%20Guide/Collections/Dashboard_image.png\" width=\"1406\" height=\"1030\"></figure><aside class=\"admonition note\"><p>The dashboard is currently considered beta. This means that it might face some changes in behavior until it is stabilized.</p></aside><p>The dashboard is a collection introduced in Trilium v0.104.0. It is similar to the <a class=\"reference-link\" href=\"#root/_help_8QqnMzx393bx\">Grid View</a> collection, but with some key differences:</p><ul><li>The grid layout is not fixed, allowing for tiles of varying widths and heights. The grid has 12 columns and an unlimited number of rows.</li><li>Each widget represents a child note of the collection and can be reordered or resized.</li><li>The grid will distribute the columns evenly to fill the entire screen.<ul><li>If the available space is too low (e.g. in a split or in mobile), the columns are collapsed so that all widgets are displayed one under the other.</li><li>While the columns are collapsed, the widgets cannot be reordered or resized.</li></ul></li><li>Unlike the <a class=\"reference-link\" href=\"#root/_help_8QqnMzx393bx\">Grid View</a>, the widgets are not clickable which allows them to be interactive.</li></ul><h2>Types of widgets</h2><p>The dashboard uses the same rendering mechanism as the <a class=\"reference-link\" href=\"#root/_help_8QqnMzx393bx\">Grid View</a> or the <a class=\"reference-link\" href=\"#root/_help_0ESUbbAxVnoK\">Note List</a>, which means every note can be rendered, such as:</p><ul><li>Static content, via <a class=\"reference-link\" href=\"#root/_help_iPIMuisry3hd\">Text</a> or <a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a>.</li><li>Images via <a class=\"reference-link\" href=\"#root/_help_W8vYD3Q1zjCR\">File</a>, <a class=\"reference-link\" href=\"#root/_help_s1aBHPd79XYj\">Mermaid Diagrams</a>, <a class=\"reference-link\" href=\"#root/_help_gBbsAeiuUxI5\">Mind Map</a>.</li><li>Interactive widgets via <a class=\"reference-link\" href=\"#root/_help_HcABDtFCkbFN\">Render Note</a>.</li><li>Web pages can be displayed via <a class=\"reference-link\" href=\"#root/_help_1vHRoWCEjj0L\">Web View</a> and refreshed via the context menu.</li><li><a class=\"reference-link\" href=\"#root/_help_GTwFsgaA0lCt\">Collections</a> render interactively inside the dashboard</li></ul><aside class=\"admonition tip\"><p>Interactive widgets through the use of <a class=\"reference-link\" href=\"#root/_help_HcABDtFCkbFN\">Render Note</a> is the highlighted use case of the dashboard. Using the <a class=\"reference-link\" href=\"#root/_help_GBBMSlVSOIGP\">AI</a> chat, these widgets can be easily created as the AI is instructed in how to write them.</p></aside><h2>Adding new widgets</h2><p>There are two ways to add widgets to a dashboard:</p><ul><li>Create a child note of any type, the dashboard will automatically pick it up and add it onto the grid.</li><li>From the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>, drag an existing note onto the dashboard and it will be placed there. This will <a href=\"#root/_help_IakOLONlIfGI\">clone</a> the note into the collection.</li></ul>","_help_BgmBlOIl72jZ": "<p>While Trilium is actively maintained and stable, encountering bugs is possible.</p><h2>General Quick Fix</h2><p>The first step in troubleshooting is often a restart.</p><p>If you experience an UI issue, the frontend may have entered an inconsistent state. Reload the application by pressing <kbd>Ctrl</kbd> + <kbd>R</kbd>. This will reload the frontend.</p><p>If the issue persists or appears to be a backend problem, restart the entire application. For the desktop (Electron) build, simply close and reopen the window. If you're using a Docker build, restart the container.</p><h2>Broken Note Crashes Trilium</h2><p>Certain problems, such as rendering a note with a faulty script, can cause Trilium to crash. If Trilium attempts to reload the problematic note upon restart, it will continue to crash.</p><p>To resolve this, use the <code spellcheck=\"false\">TRILIUM_START_NOTE_ID</code> environment variable to reset the open tabs to a single specified note ID (e.g., <code spellcheck=\"false\">root</code>). In Linux, you can set it as follows:</p><pre><code class=\"language-text-x-trilium-auto\">TRILIUM_START_NOTE_ID=root ./trilium</code></pre><h2>Broken Script Prevents Application Startup</h2><p>If a custom script causes Trilium to crash, and it is set as a startup script or in an active <a href=\"#root/_help_MgibgPcfeuGz\">custom widget</a>, start Triliumin \"safe mode\" to prevent any custom scripts from executing:</p><pre><code class=\"language-text-x-trilium-auto\">TRILIUM_SAFE_MODE=true ./trilium</code></pre><p>Depending on your Trilium distribution, you may have pre-made scripts available: <code spellcheck=\"false\">trilium-safe-mode.bat</code> and <code spellcheck=\"false\">trilium-safe-mode.sh</code>.</p><p>Once Trilium starts, locate and fix or delete the problematic note.</p><h2>Sync and Consistency Checks</h2><p>Trilium periodically verifies the logical consistency of the database (e.g., ensuring every note has a parent). If inconsistencies are detected, you will be notified via the UI.</p><p>In such cases, file a bug report and attach an <a href=\"#root/_help_x59R8J8KV5Bp\">anonymized database</a> if necessary.</p><h2>Restoring Backup</h2><p>Trilium makes regular automatic backups. If issues become severe, you can <a href=\"#root/_help_ODY7qQn5m2FT\">restore from a backup</a>.</p><h2>Forgotten Password</h2><p>See <a class=\"reference-link\" href=\"#root/_help_lwAX5SvbrK2g\">Resetting your password</a>.</p><h2>Reporting Bugs</h2><p>Reporting bugs is highly valuable. Here are some tips:</p><ul><li>Use GitHub issues for reporting: <a href=\"https://github.com/TriliumNext/Trilium/issues\">https://github.com/TriliumNext/Trilium/issues</a></li><li>Refer to the <a href=\"#root/_help_qzNzp9LYQyPT\">error logs</a> page for information on providing necessary details.</li></ul>","_help_wy8So3yZZlH9": "<p>Go to <a href=\"https://github.com/TriliumNext/Trilium/issues\">Issues · TriliumNext/Trilium</a> and press “New issue”.</p><p>If you are reporting a bug, select “Bug Report” and fill in the details.</p>",- "_help_x59R8J8KV5Bp": "<p><img src=\"{{helpAssets}}/User%20Guide/Troubleshooting/Anonymized%20Database_image.png\"></p><p>In certain scenarios, understanding the structure of a database is crucial for troubleshooting issues. However, sharing your actual <a href=\"#root/_help_wX4HbRucYSDD\">database</a> file with personal notes is not advisable. To address this, Trilium offers a feature to anonymize the database. This feature can be accessed via Menu -> Options -> Advanced tab.</p><p>This feature creates a copy of your database with all sensitive data removed. Specifically, it strips out note titles, contents, revisions, history, and some non-system attributes while retaining the overall structure and metadata, such as modification dates. After anonymization, the database undergoes a <a href=\"https://sqlite.org/lang_vacuum.html\">vacuuming process</a> to ensure no sensitive data remnants remain in the file. The anonymized database is saved in the <code spellcheck=\"false\">anonymized</code> directory within the <a href=\"#root/_help_tAassRL4RSQL\">data directory</a>, making it safe to share with bug reports.</p><p>This will create a copy of your document and remove all sensitive data (currently note titles, contents, revisions, history and some of the options, and non-system attributes) while leaving all structure and metadata (e.g. date of last change). After this is done, the database is <a href=\"https://sqlite.org/lang_vacuum.html\">VACUUMed</a> to make sure there's no stale sensitive data in the document file. The resulting file is stored in <code spellcheck=\"false\">anonymized</code> directory (placed in the <a href=\"#root/_help_tAassRL4RSQL\">data directory</a>). You can safely attach it to a bug report.</p><h2>Command Line Anonymization</h2><p>If your <a href=\"#root/_help_wX4HbRucYSDD\">database</a> is corrupted to the point where Trilium cannot start, the anonymization process can still be executed via the command line:</p><pre><code class=\"language-text-x-trilium-auto\">node src/anonymize.js</code></pre><p>Run this command from the directory containing Trilium's source files, typically found in the <code spellcheck=\"false\">resources/app</code> directory for desktop builds.</p>",+ "_help_x59R8J8KV5Bp": "<p><img src=\"{{helpAssets}}/User%20Guide/Troubleshooting/Anonymized%20Database_image.jpg\"></p><p>In certain scenarios, understanding the structure of a database is crucial for troubleshooting issues. However, sharing your actual <a href=\"#root/_help_wX4HbRucYSDD\">database</a> file with personal notes is not advisable. To address this, Trilium offers a feature to anonymize the database. This feature can be accessed via Menu -> Options -> Advanced tab.</p><p>This feature creates a copy of your database with all sensitive data removed. Specifically, it strips out note titles, contents, revisions, history, and some non-system attributes while retaining the overall structure and metadata, such as modification dates. After anonymization, the database undergoes a <a href=\"https://sqlite.org/lang_vacuum.html\">vacuuming process</a> to ensure no sensitive data remnants remain in the file. The anonymized database is saved in the <code spellcheck=\"false\">anonymized</code> directory within the <a href=\"#root/_help_tAassRL4RSQL\">data directory</a>, making it safe to share with bug reports.</p><p>This will create a copy of your document and remove all sensitive data (currently note titles, contents, revisions, history and some of the options, and non-system attributes) while leaving all structure and metadata (e.g. date of last change). After this is done, the database is <a href=\"https://sqlite.org/lang_vacuum.html\">VACUUMed</a> to make sure there's no stale sensitive data in the document file. The resulting file is stored in <code spellcheck=\"false\">anonymized</code> directory (placed in the <a href=\"#root/_help_tAassRL4RSQL\">data directory</a>). You can safely attach it to a bug report.</p><h2>Command Line Anonymization</h2><p>If your <a href=\"#root/_help_wX4HbRucYSDD\">database</a> is corrupted to the point where Trilium cannot start, the anonymization process can still be executed via the command line:</p><pre><code class=\"language-text-x-trilium-auto\">node src/anonymize.js</code></pre><p>Run this command from the directory containing Trilium's source files, typically found in the <code spellcheck=\"false\">resources/app</code> directory for desktop builds.</p>","_help_qzNzp9LYQyPT": "<p>It's important to provide all available error logs together with bug reports.</p><p>There are two types of error logs, both of which are useful when reporting bugs.</p><ul><li><a class=\"reference-link\" href=\"#root/_help_bnyigUA2UK7s\">Backend (server) logs</a></li><li><a class=\"reference-link\" href=\"#root/_help_9yEHzMyFirZR\">Frontend logs</a></li></ul><h2>Providing sensitive data</h2><p>If you don't feel comfortable attaching the logs or anything sensitive to the public GitHub issues, feel free to contact the devs in our Matrix <a href=\"https://github.com/TriliumNext/Trilium#-discuss-with-us\">support channel</a>.</p><p>Use this email to also provide anything which could assist in analysing the bug - e.g. files/images/ZIPs being imported or <a href=\"#root/_help_x59R8J8KV5Bp\">anonymized database</a>.</p><h3>Exporting note subtree for reproduction</h3><p>Often times, bugs manifest themselves in specific notes and having them would greatly ease reproduction and fixing.</p><p>In such case, please export the relevant note subtree by right-clicking it on the left tree, choosing Export - HTML as ZIP:</p><p><img src=\"{{helpAssets}}/User%20Guide/Troubleshooting/Error%20logs_error-logs-export-subtree.png\"></p>","_help_bnyigUA2UK7s": "<h2>Accessing via the backend log</h2><p>In the <a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>, go to <em>Advanced</em> → <em>Show backend log</em>. This will display the current backend log (i.e. today's), with the historical information available only on disk (see below).</p><p>Interaction since v0.104.0:</p><ul><li>The file can be downloaded as a text file using the dedicated button in the <a class=\"reference-link\" href=\"#root/_help_8YBEPzcpUgxw\">Note buttons</a> area (<a class=\"reference-link\" href=\"#root/_help_IjZS7iK5EXtb\">New Layout</a> only).</li><li>The file can also be searched just like a normal <a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a> note.</li></ul><h2>Location on the disk</h2><p>Backend logs are stored on the file system. To find them, open the <a class=\"reference-link\" href=\"#root/_help_tAassRL4RSQL\">Data directory</a>, go to the <code spellcheck=\"false\">log</code> subdirectory and find the latest log file, e.g. <code spellcheck=\"false\">trilium-2022-12-14.log</code>. </p><h2>Reporting backend bugs</h2><p>You can attach the whole file to the bug report (preferable) or open it and copy-paste only the last lines / lines you believe are relevant.</p><h2>Customizing the retention of logs</h2><p>The backend logs are fully managed by the Trilium server. By default the last 90 days worth of logs are kept; the logs older than that are deleted in order to reduce the space consumption.</p><p>It's possible to change the retention period by modifying the <a class=\"reference-link\" href=\"#root/_help_Gzjqa934BdH4\">Configuration (config.ini or environment variables)</a> via the <code spellcheck=\"false\">.ini</code> file:</p><pre><code class=\"language-text-x-trilium-auto\">[Logging]\nretentionDays=7</code></pre><p>Or via the environment variable <code spellcheck=\"false\">TRILIUM_LOGGING_RETENTION_DAYS</code>.</p><p>Special cases:</p><ul><li>Positive values indicate the number of days worth of logs to keep</li><li>A value of 0 results with the default value (90 days) to be used</li><li>Negative values (e.g. <code spellcheck=\"false\">-1</code>) result with all logs to be kept, irrespective how ancient and numerous (and</li></ul><aside class=\"admonition note\"><p>If you set the retention days to a low number, you might notice that not all the log files are being deleted. This is because a minimum number of logs (7 at the time of writing) is maintained at all times.</p></aside>",- "_help_9yEHzMyFirZR": "<p>To provide frontend logs, we need to open the Developer Console. Often the easiest way is to press <kbd>Ctrl</kbd>-<kbd>Shift</kbd>-<kbd>I</kbd> which should work in most browsers (and desktop app). Make sure that the error producing action happened right before you copy&paste the errors, the console is cleared on app restart.</p><p>If that doesn't work, then:</p><ul><li>in Trilium desktop app, go to top-left menu button -> Advanced -> Open Dev Tools</li><li>In Firefox/Chrome right-click anywhere in the page and click Inspect:</li></ul><p><img src=\"{{helpAssets}}/User%20Guide/Troubleshooting/Error%20logs/Frontend%20logs_error-logs-firefox-context-men.png\"></p><p>Once you have Dev Tools open, click on \"Console\" tab:</p><p><img src=\"{{helpAssets}}/User%20Guide/Troubleshooting/Error%20logs/Frontend%20logs_image.png\"></p><p>Copy-paste (or screenshot) the logs. It's better to provide not just errors, but the whole log, which might provide context while analyzing the bug.</p>",+ "_help_9yEHzMyFirZR": "<p>To provide frontend logs, we need to open the Developer Console. Often the easiest way is to press <kbd>Ctrl</kbd>-<kbd>Shift</kbd>-<kbd>I</kbd> which should work in most browsers (and desktop app). Make sure that the error producing action happened right before you copy&paste the errors, the console is cleared on app restart.</p><p>If that doesn't work, then:</p><ul><li>in Trilium desktop app, go to top-left menu button -> Advanced -> Open Dev Tools</li><li>In Firefox/Chrome right-click anywhere in the page and click Inspect:</li></ul><p><img src=\"{{helpAssets}}/User%20Guide/Troubleshooting/Error%20logs/Frontend%20logs_error-logs-firefox-context-men.png\"></p><p>Once you have Dev Tools open, click on \"Console\" tab:</p><p><img src=\"{{helpAssets}}/User%20Guide/Troubleshooting/Error%20logs/Frontend%20logs_image.jpg\"></p><p>Copy-paste (or screenshot) the logs. It's better to provide not just errors, but the whole log, which might provide context while analyzing the bug.</p>","_help_vdlYGAcpXAgc": "<p>Synchronization can sometimes take a long amount of time in order to compute the items that require update. When running behind a reverse proxy, the request can time out.</p><p>The solution is to increase the timeout at proxy level.</p><h2>Nginx</h2><p>Add the following to the configuration file:</p><pre><code class=\"language-text-x-nginx-conf\">proxy_connect_timeout 300;\nproxy_send_timeout 300;\nproxy_read_timeout 300;\nsend_timeout 300;</code></pre><p>And restart the server.</p><p>See <a href=\"#root/_help_ud6MShXL4WpO\">Nginx Proxy Setup</a> for more information about the Nginx setup.</p><p>If it still doesn't work, try increasing the timeout.</p>","_help_s8alTXmpFR61": "<p>Some changes to the application will not take effect immediately and as such it might require to manually reload or refresh the application.</p><p>To do so, simply press <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>R</kbd>.</p>",- "_help_7NfNr5pZpVKV": "<h2>Step 1. Find a place to place the themes</h2><p>Organization is an important aspect of managing a knowledge base. When developing a new theme or importing an existing one it's a good idea to keep them into one place.</p><p>As such, the first step is to create a new note to gather all the themes.</p><p><img src=\"{{helpAssets}}/User%20Guide/Theme%20development/Creating%20a%20custom%20theme_5_Creating%20a%20custom%20theme_im.png\"></p><h2>Step 2. Create the theme</h2><figure class=\"table\"><table>\n<thead>\n<tr>\n<th></th>\n<th></th>\n</tr>\n</thead>\n<tbody><tr>\n<td><img src=\"{{helpAssets}}/User%20Guide/Theme%20development/Creating%20a%20custom%20theme_3_Creating%20a%20custom%20theme_im.png\"></td>\n<td>Themes are code notes with a special attribute. Start by creating a new code note.</td>\n</tr>\n<tr>\n<td><img src=\"{{helpAssets}}/User%20Guide/Theme%20development/Creating%20a%20custom%20theme_1_Creating%20a%20custom%20theme_im.png\"></td>\n<td>Then change the note type to a CSS code.</td>\n</tr>\n<tr>\n<td><img src=\"{{helpAssets}}/User%20Guide/Theme%20development/Creating%20a%20custom%20theme_Creating%20a%20custom%20theme_im.png\"></td>\n<td>In the <em>Owned Attributes</em> section define the <code spellcheck=\"false\">#appTheme</code> attribute to point to any desired name. This is the name that will show up in the appearance section in settings.</td>\n</tr>\n</tbody></table></figure><h2>Step 3. Define the theme's CSS</h2><p>As a very simple example we will change the background color of the launcher pane to a shade of blue.</p><p>To alter the different variables of the theme:</p><pre><code class=\"language-text-css\">:root {\n\t--launcher-pane-background-color: #0d6efd;\n}</code></pre><h2>Step 4. Activating the theme</h2><p>Refresh the application (Ctrl+Shift+R is a good way to do so) and go to settings. You should see the newly created theme:</p><p><img src=\"{{helpAssets}}/User%20Guide/Theme%20development/Creating%20a%20custom%20theme_2_Creating%20a%20custom%20theme_im.png\"></p><p>Afterwards the application will refresh itself with the new theme:</p><p><img src=\"{{helpAssets}}/User%20Guide/Theme%20development/Creating%20a%20custom%20theme_4_Creating%20a%20custom%20theme_im.png\"></p><p>Do note that the theme will be based off of the legacy theme. To override that and base the theme on the new TriliumNext theme, see: <a href=\"#root/_help_WFGzWeUK6arS\">Theme base (legacy vs. next)</a></p><h2>Step 5. Making changes</h2><p>Simply go back to the note and change according to needs. To apply the changes to the current window, press <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>R</kbd> to refresh.</p><p>It's a good idea to keep two windows, one for editing and the other one for previewing the changes.</p>",+ "_help_7NfNr5pZpVKV": "<h2>Step 1. Find a place to place the themes</h2><p>Organization is an important aspect of managing a knowledge base. When developing a new theme or importing an existing one it's a good idea to keep them into one place.</p><p>As such, the first step is to create a new note to gather all the themes.</p><p><img src=\"{{helpAssets}}/User%20Guide/Theme%20development/Creating%20a%20custom%20theme_5_Creating%20a%20custom%20theme_im.jpg\"></p><h2>Step 2. Create the theme</h2><figure class=\"table\"><table>\n<thead>\n<tr>\n<th></th>\n<th></th>\n</tr>\n</thead>\n<tbody><tr>\n<td><img src=\"{{helpAssets}}/User%20Guide/Theme%20development/Creating%20a%20custom%20theme_3_Creating%20a%20custom%20theme_im.jpg\"></td>\n<td>Themes are code notes with a special attribute. Start by creating a new code note.</td>\n</tr>\n<tr>\n<td><img src=\"{{helpAssets}}/User%20Guide/Theme%20development/Creating%20a%20custom%20theme_1_Creating%20a%20custom%20theme_im.jpg\"></td>\n<td>Then change the note type to a CSS code.</td>\n</tr>\n<tr>\n<td><img src=\"{{helpAssets}}/User%20Guide/Theme%20development/Creating%20a%20custom%20theme_Creating%20a%20custom%20theme_im.jpg\"></td>\n<td>In the <em>Owned Attributes</em> section define the <code spellcheck=\"false\">#appTheme</code> attribute to point to any desired name. This is the name that will show up in the appearance section in settings.</td>\n</tr>\n</tbody></table></figure><h2>Step 3. Define the theme's CSS</h2><p>As a very simple example we will change the background color of the launcher pane to a shade of blue.</p><p>To alter the different variables of the theme:</p><pre><code class=\"language-text-css\">:root {\n\t--launcher-pane-background-color: #0d6efd;\n}</code></pre><h2>Step 4. Activating the theme</h2><p>Refresh the application (Ctrl+Shift+R is a good way to do so) and go to settings. You should see the newly created theme:</p><p><img src=\"{{helpAssets}}/User%20Guide/Theme%20development/Creating%20a%20custom%20theme_2_Creating%20a%20custom%20theme_im.jpg\"></p><p>Afterwards the application will refresh itself with the new theme:</p><p><img src=\"{{helpAssets}}/User%20Guide/Theme%20development/Creating%20a%20custom%20theme_4_Creating%20a%20custom%20theme_im.jpg\"></p><p>Do note that the theme will be based off of the legacy theme. To override that and base the theme on the new TriliumNext theme, see: <a href=\"#root/_help_WFGzWeUK6arS\">Theme base (legacy vs. next)</a></p><h2>Step 5. Making changes</h2><p>Simply go back to the note and change according to needs. To apply the changes to the current window, press <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>R</kbd> to refresh.</p><p>It's a good idea to keep two windows, one for editing and the other one for previewing the changes.</p>","_help_WFGzWeUK6arS": "<p>By default, any custom theme will be based on the legacy light theme. To use the TriliumNext theme instead, add the <code spellcheck=\"false\">#appThemeBase=next</code> attribute onto the existing theme. The <code spellcheck=\"false\">appTheme</code> attribute must also be present.</p><p><img src=\"{{helpAssets}}/User%20Guide/Theme%20development/Customize%20the%20Next%20theme_image.png\"></p><p>The <code spellcheck=\"false\">appThemeBase</code> label can be set to one of the following values:</p><ul><li><code spellcheck=\"false\">next</code>, for the TriliumNext (auto light or dark mode).</li><li><code spellcheck=\"false\">next-light</code>, for the always light mode of the TriliumNext.</li><li><code spellcheck=\"false\">next-dark</code>, for the always dark mode of the TriliumNext.</li><li>Any other value is ignored and will use the legacy white theme instead.</li></ul><h2>Overrides</h2><p>Do note that the TriliumNext theme has a few more overrides than the legacy theme. Due to that, it is recommended to use <code spellcheck=\"false\">#trilium-app</code> with a next theme instead of the <code spellcheck=\"false\">:root</code> of a legacy theme.</p><pre><code class=\"language-text-css\">#trilium-app {\n\t--launcher-pane-background-color: #0d6efd;\n}</code></pre>","_help_WN5z4M8ASACJ": "<h2>Detecting mobile vs. desktop</h2><p>The mobile layout is different than the one on the desktop. Use <code spellcheck=\"false\">body.mobile</code> and <code spellcheck=\"false\">body.desktop</code> to differentiate between them.</p><pre><code class=\"language-text-css\">body.mobile #root-widget {\n\t/* Do something on mobile */\n}\n\nbody.desktop #root-widget {\n\t/* Do something on desktop */\n}</code></pre><p>Do note that there is also a “tablet mode” in the mobile layout. For that particular case media queries are required:</p><pre><code class=\"language-text-css\">@media (max-width: 991px) {\n\n #launcher-pane {\n\n /* Do something on mobile layout */\n\n }\n\n}\n\n\n\n@media (min-width: 992px) {\n\n #launcher-pane {\n\n /* Do something on mobile tablet + desktop layout */\n\n }\n\n}</code></pre><h2>Detecting horizontal vs. vertical layout</h2><p>The user can select between vertical layout (the classical one, where the launcher bar is on the left) and a horizontal layout (where the launcher bar is on the top and tabs are full-width).</p><p>Different styles can be applied by using classes at <code spellcheck=\"false\">body</code> level:</p><pre><code class=\"language-text-x-trilium-auto\">body.layout-vertical #left-pane {\n\t/* Do something */\n}\n\nbody.layout-horizontal #center-pane {\n\t/* Do something else */\t\n}</code></pre><p>The two different layouts use different containers (but they are present in the DOM regardless of the user's choice), for example <code spellcheck=\"false\">#horizontal-main-container</code> and <code spellcheck=\"false\">#vertical-main-container</code> can be used to customize the background of the content section.</p><h2>Detecting platform (Windows, macOS) or Electron</h2><p>It is possible to add particular styles that only apply to a given platform by using the classes in <code spellcheck=\"false\">body</code>:</p><figure class=\"table\"><table>\n<thead>\n<tr>\n<th>Windows</th>\n<th>macOS</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code spellcheck=\"false\"><br>body.platform-win32 {<br> background: red;<br>}<br></code></td>\n<td><code spellcheck=\"false\"><br>body.platform-darwin {<br> background: red;<br>}<br></code></td>\n</tr>\n</tbody></table></figure><p>It is also possible to only apply a style if running under Electron (desktop application):</p><pre><code class=\"language-text-x-trilium-auto\">body.electron {\n\tbackground: blue;\n}</code></pre><h3>Native title bar</h3><p>It's possible to detect if the user has selected the native title bar or the custom title bar by querying against <code spellcheck=\"false\">body</code>:</p><pre><code class=\"language-text-x-trilium-auto\">body.electron.native-titlebar {\n\t/* Do something */\n}\n\nbody.electron:not(.native-titlebar) {\n\t/* Do something else */\n}</code></pre><h3>Native window buttons</h3><p>When running under Electron with native title bar off, a feature was introduced to use the platform-specific window buttons such as the semaphore on macOS.</p><p>See <a href=\"https://github.com/TriliumNext/Notes/pull/702\">Native title bar buttons by eliandoran · Pull Request #702 · TriliumNext/Notes</a> for the original implementation of this feature, including screenshots.</p><h4>On Windows</h4><p>The colors of the native window button area can be adjusted using a RGB hex color:</p><pre><code class=\"language-text-x-trilium-auto\">body {\n\t--native-titlebar-foreground: #ffffff;\n\t--native-titlebar-background: #ff0000;\n}</code></pre><p>It is also possible to use transparency at the cost of reduced hover colors using a RGBA hex color:</p><pre><code class=\"language-text-x-trilium-auto\">body {\n\t--native-titlebar-background: #ff0000aa;\n}</code></pre><p>Note that the value is read when the window is initialized and then it is refreshed only when the user changes their light/dark mode preference.</p><h4>On macOS</h4><p>On macOS the semaphore window buttons are enabled by default when the native title bar is disabled. The offset of the buttons can be adjusted using:</p><pre><code class=\"language-text-css\">body {\n --native-titlebar-darwin-x-offset: 12;\n --native-titlebar-darwin-y-offset: 14 !important;\n}</code></pre><h3>Background/transparency effects on Windows (Mica)</h3><p>Windows 11 offers a special background/transparency effect called Mica, which can be enabled by themes by setting the <code spellcheck=\"false\">--background-material</code> variable at <code spellcheck=\"false\">body</code> level:</p><pre><code class=\"language-text-css\">body.electron.platform-win32 {\n\t--background-material: tabbed; \n}</code></pre><p>The value can be either <code spellcheck=\"false\">tabbed</code> (especially useful for the horizontal layout) or <code spellcheck=\"false\">mica</code> (ideal for the vertical layout).</p><p>Do note that the Mica effect is applied at <code spellcheck=\"false\">body</code> level and the theme needs to make the entire hierarchy (semi-)transparent in order for it to be visible. Use the TrilumNext theme as an inspiration.</p><h2>Note icons, tab workspace accent color</h2><p>Theme capabilities are small adjustments done through CSS variables that can affect the layout or the visual aspect of the application.</p><p>In the tab bar, to display the icons of notes instead of the icon of the workspace:</p><pre><code class=\"language-text-css\">:root {\n\t--tab-note-icons: true;\n}</code></pre><p>When a workspace is hoisted for a given tab, it is possible to get the background color of that workspace, for example to apply a small strip on the tab instead of the whole background color:</p><pre><code class=\"language-text-css\">.note-tab .note-tab-wrapper {\n --tab-background-color: initial !important;\n}\n\n.note-tab .note-tab-wrapper::after {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 3px;\n background-color: var(--workspace-tab-background-color);\n}</code></pre><h2>Custom fonts</h2><p>Currently the only way to include a custom font is to use <a href=\"#root/_help_d3fAXQ2diepH\">Custom resource providers</a>. Basically import a font into Trilium and assign it <code spellcheck=\"false\">#customResourceProvider=fonts/myfont.ttf</code> and then import the font in CSS via <code spellcheck=\"false\">/custom/fonts/myfont.ttf</code>. Use <code spellcheck=\"false\">../../../custom/fonts/myfont.ttf</code> if you run your Trilium server on a different path than <code spellcheck=\"false\">/</code>.</p><h2>Dark and light themes</h2><p>A light theme needs to have the following CSS:</p><pre><code class=\"language-text-css\">:root {\n\t--theme-style: light;\n}</code></pre><p>if the theme is dark, then <code spellcheck=\"false\">--theme-style</code> needs to be <code spellcheck=\"false\">dark</code>.</p><p>If the theme is auto (e.g. supports both light or dark based on <code spellcheck=\"false\">prefers-color-scheme</code>) it must also declare (in addition to setting <code spellcheck=\"false\">--theme-style</code> to either <code spellcheck=\"false\">light</code> or <code spellcheck=\"false\">dark</code>):</p><pre><code class=\"language-text-css\">:root {\n\n --theme-style-auto: true;\n\n}</code></pre><p>This will affect the behavior of the Electron application by informing the operating system of the color preference (e.g. background effects will appear correct on Windows).</p>","_help_AlhDUqhENtH7": "<p>It is possible to provide a CSS file to be used regardless of the theme set by the user.</p><figure class=\"table\"><table>\n<thead>\n<tr>\n<th></th>\n<th></th>\n</tr>\n</thead>\n<tbody><tr>\n<td><img src=\"{{helpAssets}}/User%20Guide/Theme%20development/Custom%20app-wide%20CSS_image.png\"></td>\n<td>Start by creating a new note and changing the note type to CSS</td>\n</tr>\n<tr>\n<td><img src=\"{{helpAssets}}/User%20Guide/Theme%20development/2_Custom%20app-wide%20CSS_image.png\"></td>\n<td>In the ribbon, press the “Owned Attributes” section and type <code spellcheck=\"false\">#appCss</code>.</td>\n</tr>\n<tr>\n<td><img src=\"{{helpAssets}}/User%20Guide/Theme%20development/3_Custom%20app-wide%20CSS_image.png\"></td>\n<td>Type the desired CSS. <br> <br>Generally it's a good idea to append <code spellcheck=\"false\">!important</code> for the styles that are being changed, in order to prevent other</td>\n</tr>\n</tbody></table></figure><h2>Seeing the changes</h2><p>Adding a new <em>app CSS note</em> or modifying an existing one does not immediately apply changes. To see the changes, press Ctrl+Shift+R to refresh the page first.</p><h2>Sample use cases</h2><h3>Customizing the printing stylesheet</h3><aside class=\"admonition tip\"><p>Since v0.99.2, it's no longer possible to use <code spellcheck=\"false\">#appCss</code> to customize the printing CSS, since the printing is now done in an isolated environment.</p><p>However, it's still possible to customize the CSS via <code spellcheck=\"false\">~printCss</code>; see <a class=\"reference-link\" href=\"#root/_help_NRnIZmSMc5sj\">Printing & Exporting as PDF</a> for more information.</p></aside><h3>Per-workspace styles</h3><p>When using <a class=\"reference-link\" href=\"#root/_help_9sRHySam5fXb\">Workspaces</a>, it can be helpful to create a visual distinction between notes in different workspaces.</p><p>To do so:</p><ol><li>In the note with <code spellcheck=\"false\">#workspace</code>, add an inheritable attribute <code spellcheck=\"false\">#cssClass(inheritable)</code> with a value that uniquely identifies the workspace (say <code spellcheck=\"false\">my-workspace</code>).</li><li>Anywhere in the note structure, create a CSS note with <code spellcheck=\"false\">#appCss</code>.</li></ol><h4>Change the color of the icons in the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a></h4><pre><code class=\"language-text-x-trilium-auto\">.fancytree-node.my-workspace.fancytree-custom-icon {\n color: #ff0000;\n}</code></pre><h4>Change the color of the note title and the icon</h4><p>To change the color of the note title and the icon (above the content):</p><pre><code class=\"language-text-x-trilium-auto\">.note-split.my-workspace .note-icon-widget button.note-icon,\n.note-split.my-workspace .note-title-widget input.note-title {\n color: #ff0000;\n}</code></pre><h4>Add a watermark to the note content</h4><figure class=\"image image-style-align-right image_resized\" style=\"width:39.97%;\"><img style=\"aspect-ratio:641/630;\" src=\"{{helpAssets}}/User%20Guide/Theme%20development/1_Custom%20app-wide%20CSS_image.png\" width=\"641\" height=\"630\"></figure><ol><li>Insert an image in any note and take the URL of the image.</li><li>Use the following CSS, adjusting the <code spellcheck=\"false\">background-image</code> and <code spellcheck=\"false\">width</code> and <code spellcheck=\"false\">height</code> to the desired values.</li></ol><pre><code class=\"language-text-x-trilium-auto\">.note-split.my-workspace .scrolling-container:after {\n position: fixed;\n content: \"\";\n background-image: url(\"/api/attachments/Rvm3zJNITQI1/image/logo.png\");\n background-size: contain;\n background-position: center;\n background-repeat: no-repeat;\n width: 237px;\n height: 44px;\n bottom: 1em;\n right: 1em;\n opacity: 0.5;\n z-index: 0;\n}</code></pre><h2>Limitations</h2><p>Some parts of the application can't be styled directly via custom CSS because they are rendered in an isolated mode (shadow DOM), more specifically:</p><ul><li>The slides in a <a class=\"reference-link\" href=\"#root/_help_zP3PMqaG71Ct\">Presentation</a>.</li></ul>",@@ -192,13 +192,13 @@"_help_IEgsWp5hHH35": "<p>Code Snippets are closely related to <a class=\"reference-link\" href=\"#root/_help_KC1HB96bqqHX\">Templates</a>, but instead of defining the content of an entire note, a snippet is a reusable piece of code that can easily be inserted into a <a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a> note.</p><h2>Creating a Code snippet</h2><p>In the <a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>: </p><ol><li>Right-click the note where you want to place the snippet.</li><li>Select <strong>Insert child</strong> <em>note</em>.</li><li>Select <em><strong>Code snippet</strong></em>.</li></ol><p>Then simply type the desired code into the note and set the correct language mode.</p><p>The note's title becomes the title of the snippet. Optionally, you can add a description in the <a class=\"reference-link\" href=\"#root/_help_OFXdgB2nNk1F\">Promoted Attributes</a> section.</p><h2>Inserting a snippet</h2><p>To insert a snippet, type <code spellcheck=\"false\">/snippet</code> and select its title from the dropdown.</p><aside class=\"admonition important\"><p>Only code snippets whose language mode matches the current code note are listed. For example, a CSS code note shows only CSS snippets, not JavaScript ones. The exception is snippets set to \"Plain text\", which are available in <a class=\"reference-link\" href=\"#root/_help_6RM1Q7ppFVoj\">Markdown</a> notes and any code note regardless of its language mode.</p></aside><h2>Limitations</h2><ul><li>Unlike <a class=\"reference-link\" href=\"#root/_help_KC1HB96bqqHX\">Templates</a>, snippets cannot be limited to a particular <a href=\"#root/_help_9sRHySam5fXb\">workspace</a>.</li></ul>","_help_BCkXAVs63Ttv": "<p>Note map is a visualization of connections between notes. This provides an insight into a structure (\"web\") of notes.</p><p>There are two types of note map:</p><ul><li>Link Map, which shows relations between notes.</li><li>Note Map, which shows the hierarchical tree structure.</li></ul><h2>Accessing the note map</h2><p>The note map comes into multiple flavors:</p><ul><li>To access the note map for the current note:<ul><li>On the <a class=\"reference-link\" href=\"#root/_help_IjZS7iK5EXtb\">New Layout</a>, the note map is available in the <a class=\"reference-link\" href=\"#root/_help_KRlZFoIH0j6p\">Connections tab</a> in the <a class=\"reference-link\" href=\"#root/_help_RnaPdbciOfeq\">Right Sidebar</a>.</li><li>On the old layout, the note map is a tab in the <a class=\"reference-link\" href=\"#root/_help_BlN9DFI679QC\">Ribbon</a>.</li></ul></li><li>To display a full-screen note map, there is a <a href=\"#root/_help_bdUJEHsAPYQR\">dedicated note type</a> with the same name.</li><li>To view the global note map (of all the notes in the knowledge base), there is a dedicated <em>Note map</em> button in the <a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>.</li></ul><h2>Terminology and structure</h2><ul><li>Each note is represented as a <em>node</em> in the graph, with the title displayed underneath.<ul><li>When the map is zoomed out, the title can still be viewed by hovering over the node.</li><li>The <a href=\"#root/_help_p9kXRFAkwN4o\">icon and color</a> of the note are respected.</li></ul></li><li>The root node is the reference point for which the relations and hierarchical structure are displayed.<ul><li>When accessing the note map through the <a class=\"reference-link\" href=\"#root/_help_BlN9DFI679QC\">Ribbon</a> or the <a class=\"reference-link\" href=\"#root/_help_RnaPdbciOfeq\">Right Sidebar</a> (new layout), the root node is the current note.</li><li>When using a dedicated <a class=\"reference-link\" href=\"#root/_help_bdUJEHsAPYQR\">Note Map</a> note, the root note can be either the parent note, the currently <a href=\"#root/_help_OR8WJ7Iz9K4U\">hoisted</a> note or a specific note. See the note type documentation for more information.</li></ul></li></ul><h2>Interaction</h2><ul><li>Nodes can be dragged around, but they will return to their original position once released.<ul><li>To have the notes remain in the same position as they were dragged, press the <em>Fix nodes</em> button. The position of the notes is not saved, so it will return to normal once you navigate to another note or restart the application.</li></ul></li><li>When hovering over a node, the adjacent relations and nodes are highlighted.</li><li>The distance between nodes can be adjusted via the slider in the bottom-left. Similarly, this value is not saved.</li><li><a class=\"reference-link\" href=\"#root/_help_MKmLg5x6xkor\">Archived Notes</a> are generally ignored by the note map in order to reduce clutter. There is one exception: if the root note is also archived, then all archived notes are displayed too.</li></ul><h2>Link Map</h2><img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Note%20Map%20(Link%20map%2C%20Tree%20map)_image.png\" width=\"1425\" height=\"1093\"><p>The link map is a visualization of links and <a class=\"reference-link\" href=\"#root/_help_Cq5X6iKQop6R\">Relations</a> incoming to and outgoing from a particular note.</p><p>The map indicates the following types of relations:</p><ul><li><a class=\"reference-link\" href=\"#root/_help_hrZ1D00cLbal\">Internal (reference) links</a> between notes.</li><li><a class=\"reference-link\" href=\"#root/_help_Cq5X6iKQop6R\">Relations</a></li></ul><p>The link map will also show unlinked notes that are part of the hierarchy as a cloud of unconnected dots. On the <a class=\"reference-link\" href=\"#root/_help_IjZS7iK5EXtb\">New Layout</a>, the sidebar deliberately omits this in order to save some space, but they will be revealed once the map is maximized.</p><h2>Tree Map</h2><p>Shows hierarchical map of notes:</p><figure class=\"image\"><img style=\"aspect-ratio:1420/1490;\" src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/1_Note%20Map%20(Link%20map%2C%20Tree%20map)_image.png\" width=\"1420\" height=\"1490\"></figure><h2>See also</h2><ul><li>Apart from the note map feature which can be accessed from any note, it is also possible to create a dedicated note which will display the relations in full screen. See <a class=\"reference-link\" href=\"#root/_help_bdUJEHsAPYQR\">Note Map</a> for more information.</li><li><a class=\"reference-link\" href=\"#root/_help_iRwzGnHPzonm\">Relation Map</a> is a similar concept, with some differences:<ul><li>note map is automatically generated while relation map must be created manually</li><li>relation map is a type of note while a link map is just virtual visualization</li></ul></li></ul>","_help_R9pX4DGra2Vt": "<p>Trilium allows you to share selected notes as <strong>publicly accessible</strong> read-only documents. This feature is particularly useful for publishing content directly from your Trilium notes, making it accessible to others online.</p><figure class=\"image\"><img style=\"aspect-ratio:1144/660;\" src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Sharing_image.png\" width=\"1144\" height=\"660\"></figure><h2>Features, interaction and limitations</h2><ul><li>Searching by note title.</li><li>Automatic dark/light mode based on the user's browser settings.</li><li>Mobile-friendly layout, with sidebar.</li><li>Collapsible tree with the same note icons as the application.</li><li>Customizable logo.</li><li>Toggle button for dark/light mode, which also stores the user preferences.</li><li>Quick navigation buttons (previous and next note).</li><li>Displaying the date of the last update of the note.</li></ul><h3>By note type</h3><table class=\"ck-table-resized\">\n <colgroup>\n <col style=\"width:19.92%;\">\n <col style=\"width:41.66%;\">\n <col style=\"width:38.42%;\">\n </colgroup>\n <thead>\n <tr>\n <th> </th>\n <th>Supported features</th>\n <th>Limitations</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th><a class=\"reference-link\" href=\"#root/_help_iPIMuisry3hd\">Text</a></th>\n <td><ul><li>Table of contents.</li><li>Syntax highlight of code blocks, provided a language is selected (does not work if “Auto-detected” is enabled).</li><li>Rendering for math equations.</li><li><a href=\"#root/_help_nBAXQFj20hS1\">Including notes</a> (only if the included notes are also shared).</li></ul></td>\n <td><ul><li>Inline Mermaid diagrams are not rendered.</li></ul></td>\n </tr>\n <tr>\n <th><a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a></th>\n <td><ul><li>Basic support (displaying the contents of the note in a monospace font).</li></ul></td>\n <td><ul><li>No syntax highlight.</li></ul></td>\n </tr>\n <tr>\n <th><a class=\"reference-link\" href=\"#root/_help_m523cpzocqaD\">Saved Search</a></th>\n <td>Not supported.</td>\n <td> </td>\n </tr>\n <tr>\n <th><a class=\"reference-link\" href=\"#root/_help_iRwzGnHPzonm\">Relation Map</a></th>\n <td>Not supported.</td>\n <td> </td>\n </tr>\n <tr>\n <th><a class=\"reference-link\" href=\"#root/_help_bdUJEHsAPYQR\">Note Map</a></th>\n <td>Not supported.</td>\n <td> </td>\n </tr>\n <tr>\n <th><a class=\"reference-link\" href=\"#root/_help_HcABDtFCkbFN\">Render Note</a></th>\n <td>Not supported.</td>\n <td> </td>\n </tr>\n <tr>\n <th><a class=\"reference-link\" href=\"#root/_help_GTwFsgaA0lCt\">Collections</a></th>\n <td><ul><li>The child notes are displayed in a fixed format. </li></ul></td>\n <td><ul><li>More advanced view types such as the calendar view are not supported.</li></ul></td>\n </tr>\n <tr>\n <th><a class=\"reference-link\" href=\"#root/_help_s1aBHPd79XYj\">Mermaid Diagrams</a></th>\n <td><ul><li>The diagram is displayed as a vector image.</li></ul></td>\n <td><ul><li>No further interaction supported.</li></ul></td>\n </tr>\n <tr>\n <th><a class=\"reference-link\" href=\"#root/_help_grjYqerjn243\">Canvas</a></th>\n <td><ul><li>The diagram is displayed as a vector image.</li></ul></td>\n <td><ul><li>No further interaction supported.</li></ul></td>\n </tr>\n <tr>\n <th><a class=\"reference-link\" href=\"#root/_help_1vHRoWCEjj0L\">Web View</a></th>\n <td>Not supported.</td>\n <td> </td>\n </tr>\n <tr>\n <th><a class=\"reference-link\" href=\"#root/_help_gBbsAeiuUxI5\">Mind Map</a></th>\n <td>The diagram is displayed as a vector image.</td>\n <td><ul><li>No further interaction supported.</li></ul></td>\n </tr>\n <tr>\n <th><a class=\"reference-link\" href=\"#root/_help_81SGnPGMk7Xc\">Geo Map</a></th>\n <td>Not supported.</td>\n <td> </td>\n </tr>\n <tr>\n <th><a class=\"reference-link\" href=\"#root/_help_W8vYD3Q1zjCR\">File</a></th>\n <td>Basic interaction (downloading the file).</td>\n <td><ul><li>No further interaction supported.</li></ul></td>\n </tr>\n </tbody>\n</table><p>While the sharing feature is powerful, it has some limitations:</p><ul><li><strong>Code Notes</strong>: No syntax highlighting.</li><li><strong>Static Note Tree</strong></li><li><strong>Protected Notes</strong>: Cannot be shared.</li><li><strong>Include Notes</strong>: Not supported.</li></ul><p>Some of these limitations may be addressed in future updates.</p><h2>Prerequisites</h2><p>To use the sharing feature, you must have a <a class=\"reference-link\" href=\"#root/_help_WOcw2SLH6tbX\">Server Installation</a> of Trilium. This is necessary because the notes will be hosted from the server.</p><h2>Sharing a note</h2><ol><li><p><strong>Enable Sharing</strong>: To share a note, toggle the <code spellcheck=\"false\">Shared</code> switch within the note's interface. Once sharing is enabled, an URL will appear, which you can click to access the shared note.</p><p><img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Sharing_share-single-note.png\" alt=\"Share Note\"></p></li><li><p><strong>Access the Shared Note</strong>: The link provided will open the note in your browser. If your server is not configured with a public IP, the URL will refer to <code spellcheck=\"false\">localhost (127.0.0.1)</code>.</p></li></ol><h2>Sharing a note subtree</h2><p>When you share a note, you actually share the entire subtree of notes beneath it. If the note has child notes, they will also be included in the shared content. For example, sharing the \"Formatting\" subtree will display a page with basic navigation for exploring all the notes within that subtree.</p><h2>Viewing and managing shared notes</h2><p>You can view a list of all shared notes by clicking on \"Show Shared Notes Subtree\" in the <a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>. This allows you to manage and navigate through all the notes you have made public.</p><h2>Security considerations</h2><ul><li>Shared notes are published on the open internet and can be accessed by anyone with the URL unless the notes are password-protected.</li><li>The URL's randomness does not provide security, so it is crucial not to share sensitive information through this feature.</li><li>Trilium takes precautions to protect your publicly shared instance from leaking information for non-shared notes, including opening a separate read-only connection to the <a class=\"reference-link\" href=\"#root/_help_wX4HbRucYSDD\">Database</a>. Depending on your threat model, it might make more sense to use <a class=\"reference-link\" href=\"#root/_help_ycBFjKrrwE9p\">Exporting static HTML for web publishing</a> and use battle-tested web servers such as Nginx or Apache to serve static content.</li></ul><h3>Password protection</h3><p>To protect shared notes with a username and password, you can use the <code spellcheck=\"false\">#shareCredentials</code> attribute. Add this label to the note with the format <code spellcheck=\"false\">#shareCredentials=\"username:password\"</code>. To protect an entire subtree, make sure the label is <a href=\"#root/_help_bwZpz2ajCEwO\">inheritable</a>.</p><h2>Advanced sharing options</h2><h3>Customizing the appearance of shared notes</h3><p>The default design should be a good starting point, but you can customize it using your own CSS:</p><ul><li><strong>Custom CSS</strong>: Link a CSS <a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a> note to the shared page by adding a <code spellcheck=\"false\">~shareCss</code> 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 <code spellcheck=\"false\">#shareHiddenFromTree</code> label.</li><li><strong>Omitting Default CSS</strong>: For extensive styling changes, use the <code spellcheck=\"false\">#shareOmitDefaultCss</code> label to avoid conflicts with Trilium's <a href=\"#root/_help_Wy267RK4M69c\">default stylesheet</a>.</li></ul><h3>Adding JavaScript</h3><p>You can inject custom JavaScript into the shared note using the <code spellcheck=\"false\">~shareJs</code> relation. This allows you to access note attributes or traverse the note tree using the <code spellcheck=\"false\">fetchNote()</code> API, which retrieves note data based on its ID.</p><h3>Adding custom HTML</h3><p>You can inject custom HTML snippets into specific locations of the shared page using the <code spellcheck=\"false\">~shareHtml</code> relation. The HTML note should contain the raw HTML content you want to inject, and you can control where it appears by adding the <code spellcheck=\"false\">#shareHtmlLocation</code> label to the HTML snippet note itself.</p><p>The <code spellcheck=\"false\">#shareHtmlLocation</code> label accepts values in the format <code spellcheck=\"false\">location:position</code>:</p><ul><li><strong>Locations</strong>: <code spellcheck=\"false\">head</code>, <code spellcheck=\"false\">body</code>, <code spellcheck=\"false\">content</code></li><li><strong>Positions</strong>: <code spellcheck=\"false\">start</code>, <code spellcheck=\"false\">end</code></li></ul><p>For example:</p><ul><li><code spellcheck=\"false\">#shareHtmlLocation=head:start</code> - Injects HTML at the beginning of the <code spellcheck=\"false\"><head></code> section</li><li><code spellcheck=\"false\">#shareHtmlLocation=head:end</code> - Injects HTML at the end of the <code spellcheck=\"false\"><head></code> section (default)</li><li><code spellcheck=\"false\">#shareHtmlLocation=body:start</code> - Injects HTML at the beginning of the <code spellcheck=\"false\"><body></code> section</li><li><code spellcheck=\"false\">#shareHtmlLocation=content:start</code> - Injects HTML at the beginning of the content area</li><li><code spellcheck=\"false\">#shareHtmlLocation=content:end</code> - Injects HTML at the end of the content area</li></ul><p>If no location is specified, the HTML will be injected at <code spellcheck=\"false\">content:end</code> by default.</p><p>Example:</p><pre><code class=\"language-text-javascript\">const currentNote = await fetchNote();\nconst parentNote = await fetchNote(currentNote.parentNoteIds[0]);\n\nfor (const attr of parentNote.attributes) {\n console.log(attr.type, attr.name, attr.value);\n}</code></pre><h3>Custom share templates</h3><p>To completely redesign the share, it is possible to create or use an existing <a href=\"#root/_help_Ad7Ku5gOHrDU\">custom share template</a>.</p><h3>Creating human-readable URL aliases</h3><p>Shared notes typically have URLs like <code spellcheck=\"false\">http://domain.tld/share/knvU8aJy4dJ7</code>, where the last part is the note's ID. You can make these URLs more user-friendly by adding the <code spellcheck=\"false\">#shareAlias</code> label to individual notes (e.g., <code spellcheck=\"false\">#shareAlias=highlighting</code>). This will change the URL to <code spellcheck=\"false\">http://domain.tld/share/highlighting</code>.</p><p><strong>Important</strong>:</p><ol><li>Ensure that aliases are unique.</li><li>Using slashes (<code spellcheck=\"false\">/</code>) within aliases to create subpaths is not supported.</li></ol><aside class=\"admonition tip\"><ul><li>To easily identify pages that don't have a share alias, run a <a class=\"reference-link\" href=\"#root/_help_eIg8jdvaoNNd\">Search</a> with <code spellcheck=\"false\">#!shareAlias</code>.</li><li>To be able to enter the share alias faster, consider using <a class=\"reference-link\" href=\"#root/_help_OFXdgB2nNk1F\">Promoted Attributes</a> (for example <code spellcheck=\"false\">#label:shareAlias(inheritable)=\"promoted,alias=Slug,single,text\"</code>).</li></ul></aside><h3>Setting a custom favicon</h3><p>To customize the favicon for your shared pages, create a relation <code spellcheck=\"false\">~shareFavicon</code> pointing to a file note containing the favicon (e.g., in <code spellcheck=\"false\">.ico</code> format).</p><h3>Sharing a note as the root</h3><p>You can designate a specific note or folder as the root of your shared content by adding the <code spellcheck=\"false\">#shareRoot</code> label. This note will be linked when visiting <code spellcheck=\"false\">[http://domain.tld/share](http://domain/share)</code>, making it easier to use Trilium as a fully-fledged website.</p><aside class=\"admonition tip\"><p>Consider combining this with the <code spellcheck=\"false\">#shareIndex</code> label, which will display a list of all shared notes.</p></aside><h3>Displaying an index of shared notes</h3><p>When accessing a share, the sub-notes will be displayed in a tree on the left. But since multiple note trees can be shared, it might be useful to display a list of all the different share trees.</p><p>To do so, create a shared text note and apply the <code spellcheck=\"false\">shareIndex</code> label. When viewed, the list of shared roots will be displayed at the bottom of the note.</p><h3>Linking to an external website</h3><p>Sometimes it's useful to include a link to an external website alongside your shared notes — for example in the shared navigation or in an index. To do so, add the <code spellcheck=\"false\">#shareExternalLink</code> label to a note, with the target URL as its value (e.g. <code spellcheck=\"false\">#shareExternalLink=\"https://example.com\"</code>).</p><p>Any link pointing to this note will then redirect to the external website and open in a new browser tab, instead of opening the note's own shared page. This applies to:</p><ul><li>the listing produced by the <code spellcheck=\"false\">#shareIndex</code> label;</li><li>the \"Subpages\" list shown under a parent note;</li><li>inline links to this note from within other shared notes.</li></ul><p>The URL must be absolute and include the scheme (e.g. <code spellcheck=\"false\">https://</code>).</p><aside class=\"admonition note\"><p>The note still exists in the share tree and its own page remains reachable by its direct URL — the label only changes how links to it behave.</p></aside><h2>Attribute reference</h2><table class=\"ck-table-resized\">\n <colgroup>\n <col style=\"width:18.38%;\">\n <col style=\"width:81.62%;\">\n </colgroup>\n <thead>\n <tr>\n <th>Attribute</th>\n <th>Description</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td><code spellcheck=\"false\">#shareHiddenFromTree</code></td>\n <td>this note is hidden from left navigation tree, but still accessible with its URL</td>\n </tr>\n <tr>\n <td><code spellcheck=\"false\">#shareExternalLink</code></td>\n <td>when a link points to this note (from the share index, a subpage list, or an inline link in another shared note), it redirects to the given external URL in a new tab instead of the note's shared page. Value is the absolute URL, e.g. <code spellcheck=\"false\">https://example.com</code>.</td>\n </tr>\n <tr>\n <td><code spellcheck=\"false\">#shareAlias</code></td>\n <td>define an alias using which the note will be available under <code spellcheck=\"false\">https://your_trilium_host/share/[your_alias]</code></td>\n </tr>\n <tr>\n <td><code spellcheck=\"false\">#shareOmitDefaultCss</code></td>\n <td>default share page CSS will be omitted. Use when you make extensive styling changes.</td>\n </tr>\n <tr>\n <td><code spellcheck=\"false\">#shareRoot</code></td>\n <td>marks note which is served on /share root.</td>\n </tr>\n <tr>\n <td><code spellcheck=\"false\">#shareDescription</code></td>\n <td>define text to be added to the HTML meta tag for description</td>\n </tr>\n <tr>\n <td><code spellcheck=\"false\">#shareRaw</code></td>\n <td>Note will be served in its raw format, without HTML wrapper. See also <a class=\"reference-link\" href=\"#root/_help_Qjt68inQ2bRj\">Serving directly the content of a note</a> for an alternative method without setting an attribute.</td>\n </tr>\n <tr>\n <td><code spellcheck=\"false\">#shareDisallowRobotIndexing</code></td>\n <td><p>Indicates to web crawlers that the page should not be indexed of this note by:</p><ul><li>Setting the <code spellcheck=\"false\">X-Robots-Tag: noindex</code> HTTP header.</li><li>Setting the <code spellcheck=\"false\">noindex, follow</code> meta tag.</li></ul></td>\n </tr>\n <tr>\n <td><code spellcheck=\"false\">#shareCredentials</code></td>\n <td>require credentials to access this shared note. Value is expected to be in format <code spellcheck=\"false\">username:password</code>. Don't forget to make this inheritable to apply to child-notes/images.</td>\n </tr>\n <tr>\n <td><code spellcheck=\"false\">#shareIndex</code></td>\n <td>Note with this label will list all roots of shared notes.</td>\n </tr>\n <tr>\n <td><code spellcheck=\"false\">#shareHtmlLocation</code></td>\n <td>defines where custom HTML injected via <code spellcheck=\"false\">~shareHtml</code> relation should be placed. Applied to the HTML snippet note itself. Format: <code spellcheck=\"false\">location:position</code> where location is <code spellcheck=\"false\">head</code>, <code spellcheck=\"false\">body</code>, or <code spellcheck=\"false\">content</code> and position is <code spellcheck=\"false\">start</code> or <code spellcheck=\"false\">end</code>. Defaults to <code spellcheck=\"false\">content:end</code>.</td>\n </tr>\n </tbody>\n</table><h3>Customizing logo</h3><p>It's possible to adjust the logo which is displayed on the top-left of the left pane.</p><figure class=\"table\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code spellcheck=\"false\">~shareLogo</code></td>\n<td>Relation set to an image to use as logo. The image must be part of the share tree (it can be hidden if needed).</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">#shareLogoWidth</code></td>\n<td>The width (in pixels, without unit) to set for the logo. Default is <code spellcheck=\"false\">53</code>.</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">#shareLogoHeight</code></td>\n<td>The height (in pixels, without unit) to set for the logo. Default is <code spellcheck=\"false\">40</code>.</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">#shareRootLink</code></td>\n<td>URL to navigate to when the logo is pressed.</td>\n</tr>\n</tbody></table></figure><h3>Customizing OpenGraph</h3><figure class=\"table\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code spellcheck=\"false\">#shareOpenGraphColor</code></td>\n<td>This adjusts the <code spellcheck=\"false\">theme-color</code> meta-property.</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">#shareOpenGraphURL</code></td>\n<td>This adjusts the <code spellcheck=\"false\">og:url</code> and <code spellcheck=\"false\">twitter:url</code> meta-properties.</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">#shareOpenGraphDomain</code></td>\n<td>Adjusts the <code spellcheck=\"false\">twitter:domain</code> meta-property.</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">#shareOpenGraphImage</code> <br><code spellcheck=\"false\">~shareOpenGraphImage</code></td>\n<td>Can be either a label, case in which the value is passed on as-is, or it can be a relation to an image <a class=\"reference-link\" href=\"#root/_help_W8vYD3Q1zjCR\">File</a>. This controls the <code spellcheck=\"false\">og:image</code> meta-property.</td>\n</tr>\n</tbody></table></figure><h2>Credits</h2><p>Since v0.95.0, a new theme was introduced (and enabled by default) which greatly improves the visual aspect of the Share feature, as well as its functionality (such as mobile support, dark/light mode, collapsible tree, etc.). This theme is an adaptation of the <a href=\"https://github.com/zerebos/trilium.rocks\">Trilium Rocks!</a> by <a href=\"https://github.com/zerebos\">zerebos</a>.</p>",- "_help_Qjt68inQ2bRj": "<p>When accessing a shared note, Trilium will render it as a web page. Sometimes it's desirable to serve the content directly so that it can be used in a script or downloaded by the user.</p><figure class=\"table\"><table>\n<thead>\n<tr>\n<th>A note displayed as a web page (HTML)</th>\n<th>A note displayed as a raw format</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><figure class=\"image\"><img style=\"aspect-ratio:738/275;\" src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Sharing/1_Serving%20directly%20the%20content%20of%20a%20note_image.png\" width=\"738\" height=\"275\"></figure></td>\n<td><img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Sharing/Serving%20directly%20the%20content%20of%20a%20note_image.png\"></td>\n</tr>\n</tbody></table></figure><h2>By adding an attribute to the note</h2><p>Simply add the <code spellcheck=\"false\">#shareRaw</code> attribute and the note will always be rendered <em>raw</em> when accessed from the share URL.</p><h2>By altering the URL</h2><p>Append <code spellcheck=\"false\">?raw</code> to the URL to display a note in its raw format regardless of whether the <code spellcheck=\"false\">#shareRaw</code> attribute is added on the note.</p><p><img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Sharing/Serving%20directly%20the%20content%20of%20a%20note_image.png\"></p>",+ "_help_Qjt68inQ2bRj": "<p>When accessing a shared note, Trilium will render it as a web page. Sometimes it's desirable to serve the content directly so that it can be used in a script or downloaded by the user.</p><figure class=\"table\"><table>\n<thead>\n<tr>\n<th>A note displayed as a web page (HTML)</th>\n<th>A note displayed as a raw format</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><figure class=\"image\"><img style=\"aspect-ratio:738/275;\" src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Sharing/1_Serving%20directly%20the%20content%20of%20a%20note_image.png\" width=\"738\" height=\"275\"></figure></td>\n<td><img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Sharing/Serving%20directly%20the%20content%20of%20a%20note_image.jpg\"></td>\n</tr>\n</tbody></table></figure><h2>By adding an attribute to the note</h2><p>Simply add the <code spellcheck=\"false\">#shareRaw</code> attribute and the note will always be rendered <em>raw</em> when accessed from the share URL.</p><h2>By altering the URL</h2><p>Append <code spellcheck=\"false\">?raw</code> to the URL to display a note in its raw format regardless of whether the <code spellcheck=\"false\">#shareRaw</code> attribute is added on the note.</p><p><img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Sharing/Serving%20directly%20the%20content%20of%20a%20note_image.jpg\"></p>","_help_ycBFjKrrwE9p": "<p>As described in <a class=\"reference-link\" href=\"#root/_help_R9pX4DGra2Vt\">Sharing</a>, Trilium can act as a public server in which the shared notes are displayed in read-only mode. While this can work in most cases, it's generally not meant for high-traffic websites and since it's running on a Node.js server it can be potentially exploited.</p><p>Another alternative is to generate static HTML files (just like other static site generators such as <a href=\"https://www.mkdocs.org/\">MkDocs</a>). Since the normal HTML ZIP export does not contain any styling or additional functionality, Trilium provides a way to export the same layout and style as the <a class=\"reference-link\" href=\"#root/_help_R9pX4DGra2Vt\">Sharing</a> function into static HTML files.</p><p>Apart from the enhanced security, these HTML files are also easy to deploy on “serverless” deployments such as GitHub Pages or CloudFlare Pages and cache very easily.</p><aside class=\"admonition tip\"><p>Trilium's documentation, available at <a href=\"https://docs.triliumnotes.org/\">docs.triliumnotes.org</a> is built using this function of exporting to static HTML files which are then deployed automatically to CloudFlare Pages.</p><p>The process is <a href=\"https://github.com/TriliumNext/Trilium/blob/main/apps/edit-docs/src/build-docs.ts\">automated</a> by importing the Markdown documentation and exporting it via a script to the static web format.</p></aside><h2>Differences from normal sharing</h2><p>Apart from normal <a class=\"reference-link\" href=\"#root/_help_R9pX4DGra2Vt\">Sharing</a>, exporting to static HTML files comes with a few subtle differences:</p><ul><li>The URL structure is different. Where in normal sharing it's something along the way of <code spellcheck=\"false\">example.com/share/noteid</code>, the notes follow an hierarchical structure, such as <code spellcheck=\"false\">docs.triliumnotes.org/user-guide/concepts/navigation/tree-concepts</code>.</li><li>The <code spellcheck=\"false\">favicon.ico</code> is not handled automatically, it needs to be manually added on the server after the export is generated.</li><li>The “Last updated” for notes is not available.</li><li>The search functionality works slightly different since the normal one requires an active API to work. In the static export, search still works but uses a different mechanism so results might be different.</li></ul><h2>Differences from normal .zip export</h2><ul><li>The name of the files/URLs will prefer <code spellcheck=\"false\">shareAlias</code> to allow for clean URLs.</li><li>The export requires a functional web server as the pages will not render properly if accessed locally via a web browser due to the use of module scripts.</li><li>The directory structure is also slightly different:<ul><li>A normal HTML export results in an index file and a single directory.</li><li>Instead, for static exporting the top-root level becomes the index file and the child directories are on the root instead.</li><li>This makes it possible to easily publish to a website, without forcing everything but the root note to be in a sub-directory.</li></ul></li></ul><h2>Testing locally</h2><p>As mentioned previously, the exported static pages require a website to function. In order to test locally, a web server needs to be used.</p><p>One example is to use the Node.js-based <a href=\"https://www.npmjs.com/package/http-server\"><code spellcheck=\"false\">http-server</code></a> which can be installed via:</p><pre><code class=\"language-text-x-trilium-auto\">npm i -g http-server</code></pre><p>Once installed simply:</p><ol><li>Extract the exported .zip file.</li><li>Inside the extracted directory, run <code spellcheck=\"false\">http-server</code>.</li><li>Access the indicated address (e.g. <a href=\"http://localhost:8080\">http://localhost:8080</a>).</li></ol><h2>Automation</h2><p><a class=\"reference-link\" href=\"#root/_help_pgxEVkzLl1OP\">ETAPI (REST API)</a> could potentially be used to automate an export on a scheduled task.</p>","_help_sLIJ6f1dkJYW": "<p>It might be desirable to only expose the share functionality of Trilium to the Internet, and keep the application accessible only within a local network or via VPN.</p><p>To do so, a reverse proxy is required.</p><h2>Caddy</h2><pre><code class=\"language-text-x-trilium-auto\">http://domain.com {\n reverse_proxy /share http://localhost:8080/share\n}</code></pre><p>This is for newer versions where the share functionality is isolated, for older versions it's required to also include <code spellcheck=\"false\">/assets</code>.<a href=\"#fn2b8mg20aol8\"><sup>[1]</sup></a></p><ol><li><p><a href=\"#fnref2b8mg20aol8\"><strong><sup>^</sup></strong></a></p><p><a href=\"https://github.com/orgs/TriliumNext/discussions/7341#discussioncomment-14679897\">https://github.com/orgs/TriliumNext/discussions/7341#discussioncomment-14679897</a></p></li></ol>","_help_Ad7Ku5gOHrDU": "<aside class=\"admonition note\"><p>This topic of creating share templates is considered advanced and requires JavaScript/EJS knowledge.</p><p>The default share template should cover most normal uses.</p></aside><p>For full control over the HTML structure of a shared page — beyond what custom CSS, JS, or HTML snippets allow — you can replace the page template entirely using the <code spellcheck=\"false\">~shareTemplate</code> relation.</p><p>To do so:</p><ol><li>Create a <a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a> note with the language <em>Embedded JavaScript</em> (EJS).</li><li>For a shared note to apply the newly created template, apply the <code spellcheck=\"false\">~shareTemplate</code> relation pointing to the note created at step (1). Make use of <a class=\"reference-link\" href=\"#root/_help_bwZpz2ajCEwO\">Attribute Inheritance</a> to apply it to multiple shared notes.</li></ol><p>There are two important constraints to be aware of:</p><ul><li>Because EJS templates execute arbitrary server-side JavaScript, <code spellcheck=\"false\">~shareTemplate</code> only takes effect when backend scripting is enabled. If it is disabled (see <a class=\"reference-link\" href=\"#root/_help_fiHicjpHjIRJ\">Security</a>), the relation is ignored and the default template is used. For the same reason, <strong>only apply templates from notes you trust</strong>.</li><li>The template note must be part of the shared subtree (just like <code spellcheck=\"false\">~shareCss</code>, <code spellcheck=\"false\">~shareJs</code>) in order for it to be loaded. To prevent it from being shown in the navigation, apply <code spellcheck=\"false\">#shareHiddenFromTree</code> to it.</li></ul><h2>Content of the share template</h2><p>Use the <a href=\"https://github.com/TriliumNext/Notes/blob/develop/packages/share-theme/src/templates/page.ejs\">original template</a> as reference when creating a new share template.</p><h2>Available variables</h2><p>Your template is rendered with a context object exposing the note and its rendering environment. The most useful values are:</p><figure class=\"table\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code spellcheck=\"false\">note</code></td>\n<td>The note being rendered. Use it to read attributes (<code spellcheck=\"false\">note.getLabelValue(...)</code>), <code spellcheck=\"false\">note.title</code>, child notes, etc.</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">content</code></td>\n<td>The note's already-rendered HTML content, as a string.</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">header</code></td>\n<td>Extra HTML to place in the document head for this note (used by some note types).</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">isEmpty</code></td>\n<td><code spellcheck=\"false\">true</code> when the note has no content of its own.</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">subRoot</code></td>\n<td>The root of the shared subtree as <code spellcheck=\"false\">{ note, branch }</code> — handy for a site-wide title or logo.</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">cssToLoad</code> / <code spellcheck=\"false\">jsToLoad</code></td>\n<td>Arrays of stylesheet / script URLs the default theme would inject (includes anything added via <code spellcheck=\"false\">~shareCss</code> / <code spellcheck=\"false\">~shareJs</code>).</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">faviconUrl</code> / <code spellcheck=\"false\">logoUrl</code></td>\n<td>Resolved favicon and logo URLs.</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">isStatic</code></td>\n<td><code spellcheck=\"false\">true</code> during a static HTML export, <code spellcheck=\"false\">false</code> for a live server render.</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">t</code></td>\n<td>The <code spellcheck=\"false\">i18next</code> translation function.</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">utils</code></td>\n<td>Helper utilities such as <code spellcheck=\"false\">slugify()</code> and <code spellcheck=\"false\">stripTags()</code>.</td>\n</tr>\n</tbody></table></figure><h2>Error handling</h2><p>If your template throws an error while rendering, Trilium logs the error and quietly falls back to the default template, so a broken template never takes the shared page down.</p><h2>Splitting a template into partials</h2><p>A template can pull in other EJS notes as partials. Create them as <strong>child notes</strong> of the template note (each also a <code spellcheck=\"false\">code</code> / <code spellcheck=\"false\">application/x-ejs</code> note) and reference them by title:</p><pre><code class=\"language-text-x-trilium-auto\"><%- include(\"header\") %>\n\n<main>\n <h1><%= note.title %></h1>\n <%- content %>\n</main>\n\n<%- include(\"footer\") %>\n</code></pre><p>Here <code spellcheck=\"false\">header</code> and <code spellcheck=\"false\">footer</code> are the titles of child notes of the template. Only direct children are resolvable, and they must be EJS code notes.</p>","_help_5668rwcirq1t": "<p>Trilium offers advanced functionality through <a href=\"#root/_help_CdNpE2pqjmI6\">Scripts</a> and <a href=\"#root/_help_OFXdgB2nNk1F\">Promoted Attributes</a>. To illustrate these features, we've prepared several showcases available in the <a href=\"#root/_help_wX4HbRucYSDD\">demo notes</a>:</p><ul><li><a href=\"#root/_help_iRwzGnHPzonm\">Relation Map</a></li><li><a href=\"#root/_help_l0tKav7yLHGF\">Day Notes</a></li><li><a href=\"#root/_help_R7abl2fc6Mxi\">Weight Tracker</a></li><li><a href=\"#root/_help_xYjQUYhpbUEW\">Task Manager</a></li></ul><p>It's important to note that these examples are not natively supported by Trilium out of the box; instead, they demonstrate what you can build within Trilium.</p>",- "_help_l0tKav7yLHGF": "<p>A common pattern in note-taking is that a lot of notes will be centered around a certain date - e.g. you have some tasks which needs to be done on a certain date, you have meeting minutes from a certain date, you have your thoughts etc. and it all revolves around a date on which they occurred. For this reason, it makes sense to create a certain \"day workspace\" which will centralize all those notes relevant for a certain date.</p><p>For this, Trilium provides a concept of \"day note\". Trilium semi-automatically generates a single note for each day. Under this note you can save all those relevant notes.</p><p>Select an existing day note, and the menubar contains a calendar widget. Select any day to create a note for that day. </p><p><img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Advanced%20Showcases/1_Day%20Notes_image.png\"></p><p>This pattern works well also because of <a href=\"#root/_help_IakOLONlIfGI\">Cloning Notes</a> 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.</p><h2>Demo</h2><p><img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Advanced%20Showcases/Day%20Notes_image.png\"></p><p>You can see the structure of day notes appearing under \"Journal\" note - there's a note for the whole year 2025, under it, you have \"03 - March\" which then contains \"09 - Monday\". This is our \"day note\" which contains some text in its content and also has some child notes (some of them are from <a href=\"#root/_help_xYjQUYhpbUEW\">Task manager</a>).</p><p>You can also notice how this day note has <a href=\"#root/_help_OFXdgB2nNk1F\">promoted attribute</a> \"weight\" where you can track your daily weight. This data is then used in <a href=\"#root/_help_R7abl2fc6Mxi\">Weight tracker</a>.</p><h2>Week Note and Quarter Note</h2><p>Week and quarter notes are disabled by default, since it might be too much for some people. To enable them, you need to set <code spellcheck=\"false\">#enableWeekNote</code> and <code spellcheck=\"false\">#enableQuarterNote</code> attributes on the root calendar note, which is identified by <code spellcheck=\"false\">#calendarRoot</code> label. Week note is affected by the first week of year option. Be careful when you already have some week notes created, it will not automatically change the existing week notes and might lead to some duplicates.</p><h2>Templates</h2><p>Trilium provides <a href=\"#root/_help_KC1HB96bqqHX\">template</a> functionality, and it could be used together with day notes.</p><p>You can define one of the following relations on the root of the journal (identified by <code spellcheck=\"false\">#calendarRoot</code> label):</p><ul><li>yearTemplate</li><li>quarterTemplate (if <code spellcheck=\"false\">#enableQuarterNote</code> is set)</li><li>monthTemplate</li><li>weekTemplate (if <code spellcheck=\"false\">#enableWeekNote</code> is set)</li><li>dateTemplate</li></ul><p>All of these are relations. When Trilium creates a new note for year or month or date, it will take a look at the root and attach a corresponding <code spellcheck=\"false\">~template</code> relation to the newly created role. Using this, you can e.g. create your daily template with e.g. checkboxes for daily routine etc.</p><h3>Migrate from old template usage</h3><p>If you have been using Journal prior to version v0.93.0, the previous template pattern likely used was <code spellcheck=\"false\">~child:template=</code>.<br>To transition to the new system:</p><ol><li>Set up the new template pattern in the Calendar root note.</li><li>Use <a href=\"#root/_help_ivYnonVFBxbQ\">Bulk Actions</a> to remove <code spellcheck=\"false\">child:template</code> and <code spellcheck=\"false\">child:child:template</code> from all notes under the Journal (calendar root).</li><li>Ensure that all old template patterns are fully removed to prevent conflicts with the new setup.</li></ol><h2>Naming pattern</h2><p>You can customize the title of generated journal notes by defining a <code spellcheck=\"false\">#datePattern</code>, <code spellcheck=\"false\">#weekPattern</code>, <code spellcheck=\"false\">#monthPattern</code>, <code spellcheck=\"false\">#quarterPattern</code> and <code spellcheck=\"false\">#yearPattern</code> attribute on a root calendar note (identified by <code spellcheck=\"false\">#calendarRoot</code> label). The naming pattern replacements follow a level-up compatibility - each level can use replacements from itself and all levels above it. For example, <code spellcheck=\"false\">#monthPattern</code> can use month, quarter and year replacements, while <code spellcheck=\"false\">#weekPattern</code> can use week, month, quarter and year replacements. But it is not possible to use week replacements in <code spellcheck=\"false\">#monthPattern</code>.</p><h3>Date pattern</h3><p>It's possible to customize the title of generated date notes by defining a <code spellcheck=\"false\">#datePattern</code> attribute on a root calendar note (identified by <code spellcheck=\"false\">#calendarRoot</code> label). Following are possible values:</p><ul><li><code spellcheck=\"false\">{isoDate}</code> results in an ISO 8061 formatted date (e.g. \"2025-03-09\" for March 9, 2025)</li><li><code spellcheck=\"false\">{dateNumber}</code> results in a number like <code spellcheck=\"false\">9</code> for the 9th day of the month, <code spellcheck=\"false\">11</code> for the 11th day of the month</li><li><code spellcheck=\"false\">{dateNumberPadded}</code> results in a number like <code spellcheck=\"false\">09</code> for the 9th day of the month, <code spellcheck=\"false\">11</code> for the 11th day of the month</li><li><code spellcheck=\"false\">{ordinal}</code> is replaced with the ordinal date (e.g. 1st, 2nd, 3rd) etc.</li><li><code spellcheck=\"false\">{weekDay}</code> results in the full day name (e.g. <code spellcheck=\"false\">Monday</code>)</li><li><code spellcheck=\"false\">{weekDay3}</code> is replaced with the first 3 letters of the day, e.g. Mon, Tue, etc.</li><li><code spellcheck=\"false\">{weekDay2}</code> is replaced with the first 2 letters of the day, e.g. Mo, Tu, etc.</li></ul><p>The default is <code spellcheck=\"false\">{dateNumberPadded} - {weekDay}</code></p><h3>Week pattern</h3><p>It is also possible to customize the title of generated week notes through the <code spellcheck=\"false\">#weekPattern</code> attribute on the root calendar note. The options are:</p><ul><li><code spellcheck=\"false\">{weekNumber}</code> results in a number like <code spellcheck=\"false\">9</code> for the 9th week of the year, <code spellcheck=\"false\">11</code> for the 11th week of the year</li><li><code spellcheck=\"false\">{weekNumberPadded}</code> results in a number like <code spellcheck=\"false\">09</code> for the 9th week of the year, <code spellcheck=\"false\">11</code> for the 11th week of the year</li><li><code spellcheck=\"false\">{shortWeek}</code> results in a short week string like <code spellcheck=\"false\">W9</code> for the 9th week of the year, <code spellcheck=\"false\">W11</code> for the 11th week of the year</li><li><code spellcheck=\"false\">{shortWeek3}</code> results in a short week string like <code spellcheck=\"false\">W09</code> for the 9th week of the year, <code spellcheck=\"false\">W11</code> for the 11th week of the year</li></ul><p>The default is <code spellcheck=\"false\">Week {weekNumber}</code></p><h3>Month pattern</h3><p>It is also possible to customize the title of generated month notes through the <code spellcheck=\"false\">#monthPattern</code> attribute on the root calendar note. The options are:</p><ul><li><code spellcheck=\"false\">{isoMonth}</code> results in an ISO 8061 formatted month (e.g. \"2025-03\" for March 2025)</li><li><code spellcheck=\"false\">{monthNumber}</code> results in a number like <code spellcheck=\"false\">9</code> for September, and <code spellcheck=\"false\">11</code> for November</li><li><code spellcheck=\"false\">{monthNumberPadded}</code> results in a number like <code spellcheck=\"false\">09</code> for September, and <code spellcheck=\"false\">11</code> for November</li><li><code spellcheck=\"false\">{month}</code> results in the full month name (e.g. <code spellcheck=\"false\">September</code> or <code spellcheck=\"false\">October</code>)</li><li><code spellcheck=\"false\">{shortMonth3}</code> is replaced with the first 3 letters of the month, e.g. Jan, Feb, etc.</li><li><code spellcheck=\"false\">{shortMonth4}</code> is replaced with the first 4 letters of the month, e.g. Sept, Octo, etc.</li></ul><p>The default is <code spellcheck=\"false\">{monthNumberPadded} - {month}</code></p><h3>Quarter pattern</h3><p>It is also possible to customize the title of generated quarter notes through the <code spellcheck=\"false\">#quarterPattern</code> attribute on the root calendar note. The options are:</p><ul><li><code spellcheck=\"false\">{quarterNumber}</code> results in a number like <code spellcheck=\"false\">1</code> for the 1st quarter of the year</li><li><code spellcheck=\"false\">{shortQuarter}</code> results in a short quarter string like <code spellcheck=\"false\">Q1</code> for the 1st quarter of the year</li></ul><p>The default is <code spellcheck=\"false\">Quarter {quarterNumber}</code></p><h3>Year pattern</h3><p>It is also possible to customize the title of generated year notes through the <code spellcheck=\"false\">#yearPattern</code> attribute on the root calendar note. The options are:</p><ul><li><code spellcheck=\"false\">{year}</code> results in the full year (e.g. <code spellcheck=\"false\">2025</code>)</li></ul><p>The default is <code spellcheck=\"false\">{year}</code></p><h2>Implementation</h2><p>Trilium has some special support for day notes in the form of <a href=\"https://triliumnext.github.io/Notes/backend_api/BackendScriptApi.html\">backend Script API</a> - see e.g. getDayNote() function.</p><p>Day (and year, month) notes are created with a label - e.g. <code spellcheck=\"false\">#dateNote=\"2025-03-09\"</code> this can then be used by other scripts to add new notes to day note etc.</p>",- "_help_R7abl2fc6Mxi": "<p><img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Advanced%20Showcases/Weight%20Tracker_image.png\"></p><p>The <code spellcheck=\"false\">Weight Tracker</code> is a <a href=\"#root/_help_GLks18SNjxmC\">Script API</a> showcase present in the <a href=\"#root/_help_wX4HbRucYSDD\">demo notes</a>.</p><p>By adding <code spellcheck=\"false\">weight</code> as a <a href=\"#root/_help_OFXdgB2nNk1F\">promoted attribute</a> in the <a href=\"#root/_help_KC1HB96bqqHX\">template</a> from which <a href=\"#root/_help_l0tKav7yLHGF\">day notes</a> are created, you can aggregate the data and plot weight change over time.</p><h2>Implementation</h2><p>The <code spellcheck=\"false\">Weight Tracker</code> note in the screenshot above is of the type <code spellcheck=\"false\">Render Note</code>. That type of note doesn't have any useful content itself. Instead it is a placeholder where a <a href=\"#root/_help_CdNpE2pqjmI6\">script</a> can render its output.</p><p>Scripts for <code spellcheck=\"false\">Render Notes</code> are defined in a <a href=\"#root/_help_zEY4DaJG4YT5\">relation</a> called <code spellcheck=\"false\">~renderNote</code>. In this example, it's the <code spellcheck=\"false\">Weight Tracker</code>'s child <code spellcheck=\"false\">Implementation</code>. The Implementation consists of two <a href=\"#root/_help_6f9hih2hXXZk\">code notes</a> that contain some HTML and JavaScript respectively, which load all the notes with a <code spellcheck=\"false\">weight</code> attribute and display their values in a chart.</p><p>To actually render the chart, we're using a third party library called <a href=\"https://www.chartjs.org/\">chart.js</a>which is imported as an attachment, since it's not built into Trilium.</p><h3>Code</h3><p>Here's the content of the script which is placed in a <a href=\"#root/_help_6f9hih2hXXZk\">code note</a> of type <code spellcheck=\"false\">JS Frontend</code>:</p><pre><code class=\"language-text-x-trilium-auto\">async function getChartData() {\n const days = await api.runOnBackend(async () => {\n const notes = api.getNotesWithLabel('weight');\n const days = [];\n\n for (const note of notes) {\n const date = note.getLabelValue('dateNote');\n const weight = parseFloat(note.getLabelValue('weight'));\n\n if (date && weight) {\n days.push({ date, weight });\n }\n }\n\n days.sort((a, b) => a.date > b.date ? 1 : -1);\n\n return days;\n });\n\n const datasets = [\n {\n label: \"Weight (kg)\",\n backgroundColor: 'red',\n borderColor: 'red',\n data: days.map(day => day.weight),\n fill: false,\n spanGaps: true,\n datalabels: {\n display: false\n }\n }\n ];\n\n return {\n datasets: datasets,\n labels: days.map(day => day.date)\n };\n}\n\nconst ctx = $(\"#canvas\")[0].getContext(\"2d\");\n\nnew chartjs.Chart(ctx, {\n type: 'line',\n data: await getChartData()\n});</code></pre><h2>How to remove the Weight Tracker button from the top bar</h2><p>In the link map of the <code spellcheck=\"false\">Weight Tracker</code>, there is a note called <code spellcheck=\"false\">Button</code>. Open it and delete or comment out its contents. The <code spellcheck=\"false\">Weight Tracker</code> button will disappear after you restart Trilium.</p>",+ "_help_l0tKav7yLHGF": "<p>A common pattern in note-taking is that a lot of notes will be centered around a certain date - e.g. you have some tasks which needs to be done on a certain date, you have meeting minutes from a certain date, you have your thoughts etc. and it all revolves around a date on which they occurred. For this reason, it makes sense to create a certain \"day workspace\" which will centralize all those notes relevant for a certain date.</p><p>For this, Trilium provides a concept of \"day note\". Trilium semi-automatically generates a single note for each day. Under this note you can save all those relevant notes.</p><p>Select an existing day note, and the menubar contains a calendar widget. Select any day to create a note for that day. </p><p><img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Advanced%20Showcases/1_Day%20Notes_image.jpg\"></p><p>This pattern works well also because of <a href=\"#root/_help_IakOLONlIfGI\">Cloning Notes</a> 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.</p><h2>Demo</h2><p><img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Advanced%20Showcases/Day%20Notes_image.png\"></p><p>You can see the structure of day notes appearing under \"Journal\" note - there's a note for the whole year 2025, under it, you have \"03 - March\" which then contains \"09 - Monday\". This is our \"day note\" which contains some text in its content and also has some child notes (some of them are from <a href=\"#root/_help_xYjQUYhpbUEW\">Task manager</a>).</p><p>You can also notice how this day note has <a href=\"#root/_help_OFXdgB2nNk1F\">promoted attribute</a> \"weight\" where you can track your daily weight. This data is then used in <a href=\"#root/_help_R7abl2fc6Mxi\">Weight tracker</a>.</p><h2>Week Note and Quarter Note</h2><p>Week and quarter notes are disabled by default, since it might be too much for some people. To enable them, you need to set <code spellcheck=\"false\">#enableWeekNote</code> and <code spellcheck=\"false\">#enableQuarterNote</code> attributes on the root calendar note, which is identified by <code spellcheck=\"false\">#calendarRoot</code> label. Week note is affected by the first week of year option. Be careful when you already have some week notes created, it will not automatically change the existing week notes and might lead to some duplicates.</p><h2>Templates</h2><p>Trilium provides <a href=\"#root/_help_KC1HB96bqqHX\">template</a> functionality, and it could be used together with day notes.</p><p>You can define one of the following relations on the root of the journal (identified by <code spellcheck=\"false\">#calendarRoot</code> label):</p><ul><li>yearTemplate</li><li>quarterTemplate (if <code spellcheck=\"false\">#enableQuarterNote</code> is set)</li><li>monthTemplate</li><li>weekTemplate (if <code spellcheck=\"false\">#enableWeekNote</code> is set)</li><li>dateTemplate</li></ul><p>All of these are relations. When Trilium creates a new note for year or month or date, it will take a look at the root and attach a corresponding <code spellcheck=\"false\">~template</code> relation to the newly created role. Using this, you can e.g. create your daily template with e.g. checkboxes for daily routine etc.</p><h3>Migrate from old template usage</h3><p>If you have been using Journal prior to version v0.93.0, the previous template pattern likely used was <code spellcheck=\"false\">~child:template=</code>.<br>To transition to the new system:</p><ol><li>Set up the new template pattern in the Calendar root note.</li><li>Use <a href=\"#root/_help_ivYnonVFBxbQ\">Bulk Actions</a> to remove <code spellcheck=\"false\">child:template</code> and <code spellcheck=\"false\">child:child:template</code> from all notes under the Journal (calendar root).</li><li>Ensure that all old template patterns are fully removed to prevent conflicts with the new setup.</li></ol><h2>Naming pattern</h2><p>You can customize the title of generated journal notes by defining a <code spellcheck=\"false\">#datePattern</code>, <code spellcheck=\"false\">#weekPattern</code>, <code spellcheck=\"false\">#monthPattern</code>, <code spellcheck=\"false\">#quarterPattern</code> and <code spellcheck=\"false\">#yearPattern</code> attribute on a root calendar note (identified by <code spellcheck=\"false\">#calendarRoot</code> label). The naming pattern replacements follow a level-up compatibility - each level can use replacements from itself and all levels above it. For example, <code spellcheck=\"false\">#monthPattern</code> can use month, quarter and year replacements, while <code spellcheck=\"false\">#weekPattern</code> can use week, month, quarter and year replacements. But it is not possible to use week replacements in <code spellcheck=\"false\">#monthPattern</code>.</p><h3>Date pattern</h3><p>It's possible to customize the title of generated date notes by defining a <code spellcheck=\"false\">#datePattern</code> attribute on a root calendar note (identified by <code spellcheck=\"false\">#calendarRoot</code> label). Following are possible values:</p><ul><li><code spellcheck=\"false\">{isoDate}</code> results in an ISO 8061 formatted date (e.g. \"2025-03-09\" for March 9, 2025)</li><li><code spellcheck=\"false\">{dateNumber}</code> results in a number like <code spellcheck=\"false\">9</code> for the 9th day of the month, <code spellcheck=\"false\">11</code> for the 11th day of the month</li><li><code spellcheck=\"false\">{dateNumberPadded}</code> results in a number like <code spellcheck=\"false\">09</code> for the 9th day of the month, <code spellcheck=\"false\">11</code> for the 11th day of the month</li><li><code spellcheck=\"false\">{ordinal}</code> is replaced with the ordinal date (e.g. 1st, 2nd, 3rd) etc.</li><li><code spellcheck=\"false\">{weekDay}</code> results in the full day name (e.g. <code spellcheck=\"false\">Monday</code>)</li><li><code spellcheck=\"false\">{weekDay3}</code> is replaced with the first 3 letters of the day, e.g. Mon, Tue, etc.</li><li><code spellcheck=\"false\">{weekDay2}</code> is replaced with the first 2 letters of the day, e.g. Mo, Tu, etc.</li></ul><p>The default is <code spellcheck=\"false\">{dateNumberPadded} - {weekDay}</code></p><h3>Week pattern</h3><p>It is also possible to customize the title of generated week notes through the <code spellcheck=\"false\">#weekPattern</code> attribute on the root calendar note. The options are:</p><ul><li><code spellcheck=\"false\">{weekNumber}</code> results in a number like <code spellcheck=\"false\">9</code> for the 9th week of the year, <code spellcheck=\"false\">11</code> for the 11th week of the year</li><li><code spellcheck=\"false\">{weekNumberPadded}</code> results in a number like <code spellcheck=\"false\">09</code> for the 9th week of the year, <code spellcheck=\"false\">11</code> for the 11th week of the year</li><li><code spellcheck=\"false\">{shortWeek}</code> results in a short week string like <code spellcheck=\"false\">W9</code> for the 9th week of the year, <code spellcheck=\"false\">W11</code> for the 11th week of the year</li><li><code spellcheck=\"false\">{shortWeek3}</code> results in a short week string like <code spellcheck=\"false\">W09</code> for the 9th week of the year, <code spellcheck=\"false\">W11</code> for the 11th week of the year</li></ul><p>The default is <code spellcheck=\"false\">Week {weekNumber}</code></p><h3>Month pattern</h3><p>It is also possible to customize the title of generated month notes through the <code spellcheck=\"false\">#monthPattern</code> attribute on the root calendar note. The options are:</p><ul><li><code spellcheck=\"false\">{isoMonth}</code> results in an ISO 8061 formatted month (e.g. \"2025-03\" for March 2025)</li><li><code spellcheck=\"false\">{monthNumber}</code> results in a number like <code spellcheck=\"false\">9</code> for September, and <code spellcheck=\"false\">11</code> for November</li><li><code spellcheck=\"false\">{monthNumberPadded}</code> results in a number like <code spellcheck=\"false\">09</code> for September, and <code spellcheck=\"false\">11</code> for November</li><li><code spellcheck=\"false\">{month}</code> results in the full month name (e.g. <code spellcheck=\"false\">September</code> or <code spellcheck=\"false\">October</code>)</li><li><code spellcheck=\"false\">{shortMonth3}</code> is replaced with the first 3 letters of the month, e.g. Jan, Feb, etc.</li><li><code spellcheck=\"false\">{shortMonth4}</code> is replaced with the first 4 letters of the month, e.g. Sept, Octo, etc.</li></ul><p>The default is <code spellcheck=\"false\">{monthNumberPadded} - {month}</code></p><h3>Quarter pattern</h3><p>It is also possible to customize the title of generated quarter notes through the <code spellcheck=\"false\">#quarterPattern</code> attribute on the root calendar note. The options are:</p><ul><li><code spellcheck=\"false\">{quarterNumber}</code> results in a number like <code spellcheck=\"false\">1</code> for the 1st quarter of the year</li><li><code spellcheck=\"false\">{shortQuarter}</code> results in a short quarter string like <code spellcheck=\"false\">Q1</code> for the 1st quarter of the year</li></ul><p>The default is <code spellcheck=\"false\">Quarter {quarterNumber}</code></p><h3>Year pattern</h3><p>It is also possible to customize the title of generated year notes through the <code spellcheck=\"false\">#yearPattern</code> attribute on the root calendar note. The options are:</p><ul><li><code spellcheck=\"false\">{year}</code> results in the full year (e.g. <code spellcheck=\"false\">2025</code>)</li></ul><p>The default is <code spellcheck=\"false\">{year}</code></p><h2>Implementation</h2><p>Trilium has some special support for day notes in the form of <a href=\"https://triliumnext.github.io/Notes/backend_api/BackendScriptApi.html\">backend Script API</a> - see e.g. getDayNote() function.</p><p>Day (and year, month) notes are created with a label - e.g. <code spellcheck=\"false\">#dateNote=\"2025-03-09\"</code> this can then be used by other scripts to add new notes to day note etc.</p>",+ "_help_R7abl2fc6Mxi": "<p><img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Advanced%20Showcases/Weight%20Tracker_image.jpg\"></p><p>The <code spellcheck=\"false\">Weight Tracker</code> is a <a href=\"#root/_help_GLks18SNjxmC\">Script API</a> showcase present in the <a href=\"#root/_help_wX4HbRucYSDD\">demo notes</a>.</p><p>By adding <code spellcheck=\"false\">weight</code> as a <a href=\"#root/_help_OFXdgB2nNk1F\">promoted attribute</a> in the <a href=\"#root/_help_KC1HB96bqqHX\">template</a> from which <a href=\"#root/_help_l0tKav7yLHGF\">day notes</a> are created, you can aggregate the data and plot weight change over time.</p><h2>Implementation</h2><p>The <code spellcheck=\"false\">Weight Tracker</code> note in the screenshot above is of the type <code spellcheck=\"false\">Render Note</code>. That type of note doesn't have any useful content itself. Instead it is a placeholder where a <a href=\"#root/_help_CdNpE2pqjmI6\">script</a> can render its output.</p><p>Scripts for <code spellcheck=\"false\">Render Notes</code> are defined in a <a href=\"#root/_help_zEY4DaJG4YT5\">relation</a> called <code spellcheck=\"false\">~renderNote</code>. In this example, it's the <code spellcheck=\"false\">Weight Tracker</code>'s child <code spellcheck=\"false\">Implementation</code>. The Implementation consists of two <a href=\"#root/_help_6f9hih2hXXZk\">code notes</a> that contain some HTML and JavaScript respectively, which load all the notes with a <code spellcheck=\"false\">weight</code> attribute and display their values in a chart.</p><p>To actually render the chart, we're using a third party library called <a href=\"https://www.chartjs.org/\">chart.js</a>which is imported as an attachment, since it's not built into Trilium.</p><h3>Code</h3><p>Here's the content of the script which is placed in a <a href=\"#root/_help_6f9hih2hXXZk\">code note</a> of type <code spellcheck=\"false\">JS Frontend</code>:</p><pre><code class=\"language-text-x-trilium-auto\">async function getChartData() {\n const days = await api.runOnBackend(async () => {\n const notes = api.getNotesWithLabel('weight');\n const days = [];\n\n for (const note of notes) {\n const date = note.getLabelValue('dateNote');\n const weight = parseFloat(note.getLabelValue('weight'));\n\n if (date && weight) {\n days.push({ date, weight });\n }\n }\n\n days.sort((a, b) => a.date > b.date ? 1 : -1);\n\n return days;\n });\n\n const datasets = [\n {\n label: \"Weight (kg)\",\n backgroundColor: 'red',\n borderColor: 'red',\n data: days.map(day => day.weight),\n fill: false,\n spanGaps: true,\n datalabels: {\n display: false\n }\n }\n ];\n\n return {\n datasets: datasets,\n labels: days.map(day => day.date)\n };\n}\n\nconst ctx = $(\"#canvas\")[0].getContext(\"2d\");\n\nnew chartjs.Chart(ctx, {\n type: 'line',\n data: await getChartData()\n});</code></pre><h2>How to remove the Weight Tracker button from the top bar</h2><p>In the link map of the <code spellcheck=\"false\">Weight Tracker</code>, there is a note called <code spellcheck=\"false\">Button</code>. Open it and delete or comment out its contents. The <code spellcheck=\"false\">Weight Tracker</code> button will disappear after you restart Trilium.</p>","_help_xYjQUYhpbUEW": "<p>Task Manager is a <a href=\"#root/_help_OFXdgB2nNk1F\">promoted attributes</a> and <a href=\"#root/_help_CdNpE2pqjmI6\">scripts</a>showcase present in the <a href=\"#root/_help_wX4HbRucYSDD\">demo notes</a>.</p><h2>Demo</h2><p><img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Advanced%20Showcases/Task%20Manager_task-manager.png\"></p><p>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.</p><p>Task Manager also integrates with <a href=\"#root/_help_l0tKav7yLHGF\">day notes</a> - notes are <a href=\"#root/_help_IakOLONlIfGI\">cloned</a> into day note to both todoDate note and doneDate note (with <a href=\"#root/_help_kBrnXNG3Hplm\">prefix</a> of either \"TODO\" or \"DONE\").</p><h2>Implementation</h2><p>New tasks are created in the TODO note which has <code spellcheck=\"false\">~child:template</code> <a href=\"#root/_help_zEY4DaJG4YT5\">relation</a>(see <a href=\"#root/_help_bwZpz2ajCEwO\">attribute inheritance</a>) pointing to the task template.</p><h3>Attributes</h3><p>Task template defines several <a href=\"#root/_help_OFXdgB2nNk1F\">promoted attributes</a> - todoDate, doneDate, tags, location. Importantly it also defines <code spellcheck=\"false\">~runOnAttributeChange</code> relation - <a href=\"#root/_help_GPERMystNGTB\">event</a> handler which is run on attribute change. This <a href=\"#root/_help_CdNpE2pqjmI6\">script</a> handles when e.g. we fill out the doneDate attribute - meaning the task is done and should be moved to \"Done\" note and removed from TODO, locations and tags.</p><h3>New task button</h3><p>There's also \"button\" note which contains simple script which adds a button to create new note (task) in the TODO note.</p><pre><code class=\"language-text-x-trilium-auto\">api.addButtonToToolbar({\n title: 'New task',\n icon: 'check',\n shortcut: 'alt+n',\n action: async () => {\n // creating notes is backend (server) responsibility so we need to pass\n // the control there\n const taskNoteId = await api.runOnBackend(async () => {\n const todoRootNote = await api.getNoteWithLabel('taskTodoRoot');\n const {note} = await api.createNote(todoRootNote.noteId, 'new task', '');\n\n return note.noteId;\n });\n\n // we got an ID of newly created note and we want to immediatelly display it\n await api.activateNewNote(taskNoteId);\n }\n});</code></pre><h3>CSS</h3><p>In the demo screenshot above you may notice that TODO tasks are in red color and DONE tasks are green.</p><p>This is done by having this CSS <a href=\"#root/_help_6f9hih2hXXZk\">code note</a> which defines extra CSS classes:</p><pre><code class=\"language-text-x-trilium-auto\">span.fancytree-node.todo .fancytree-title {\n color: red !important;\n}\n\nspan.fancytree-node.done .fancytree-title {\n color: green !important;\n}</code></pre><p>This <a href=\"#root/_help_6f9hih2hXXZk\">code note</a> has <code spellcheck=\"false\">#appCss</code> <a href=\"#root/_help_zEY4DaJG4YT5\">label</a>which is recognized by Trilium on startup and loaded as CSS into the application.</p><p>Second part of this functionality is based in event handler described above which assigns <code spellcheck=\"false\">#cssClass</code> label to the task to either \"done\" or \"todo\" based on the task status.</p>","_help_i16PM6A7GXdU": "<p>Trilium features customizable to-do list task states. To customize them, go to <strong>\"Options\"</strong> → <strong>\"Text Notes\"</strong> → <strong>\"Related Settings\"</strong> → <strong>\"Custom checkbox states for to-do lists\"</strong>. Alternatively, right-click a checkbox in an editable text note and click the pencil icon.</p><aside class=\"admonition warning\"><p>Changes take effect only after restarting the application.</p></aside><h2>Creating a new task state</h2><p>Click the plus icon next to Task States in the left-side pane, then define the task details as described in the next section.</p><h2>Editing a task state</h2><p>Selecting any state other than \"None\" and \"Done\" (which cannot be modified) from the side pane reveals the following editable fields:</p><ul><li><strong>Icon</strong> (required): The symbol shown inside the checkbox. You can pick an icon just as you would for any regular note, including from custom icon packs.</li><li><strong>Title</strong> (required): The name of the task state shown in the UI. For example: \"Doing\", \"Postponed\".</li><li><strong>Identifier</strong> (required): A short name for the state, using only letters, digits, \"<code spellcheck=\"false\">-</code>\" and \"<code spellcheck=\"false\">_</code>\". It is stored as metadata in the note's markup and used to identify the task state. Two task states cannot share the same identifier.<br>Prefix the identifiers of your custom task states with an underscore \"<code spellcheck=\"false\">_</code>\" or a hyphen \"<code spellcheck=\"false\">-</code>\" to avoid clashes with task states that may be introduced in future versions of Trilium.</li><li><strong>Markdown symbol</strong>: A single character used to represent the state in Markdown syntax. For example, \"<code spellcheck=\"false\">#</code>\" creates a task state that can be applied in Markdown using \" <code spellcheck=\"false\">- [#]</code> \". Make sure no other task state uses the same symbol.</li><li><strong>Counts as completed</strong>: If checked, the task is treated as completed.</li><li><strong>Color</strong>: The color of the checkbox. Its lightness and saturation are adjusted automatically to match the current color scheme or theme.</li><li><strong>Hidden from toolbar</strong>: The state is not listed in the UI. This is useful when you want existing notes to keep rendering the state correctly but no longer need to apply it yourself.</li></ul><aside class=\"admonition note\"><p>The task definition details are validated at startup. If errors are found, a toast provides the details and the affected task definition is ignored.</p></aside><h2>Reordering task states</h2><p>To change the order in which task states appear in the UI and when cycling through them with the keyboard, simply reorder the states in the side pane (or tree panel, if it's the case).</p><h2>Deleting task states</h2><p>Any task state other than \"None\" and \"Done\" can be deleted.</p><p>Once deleted, to-do items using that state will no longer display the custom checkbox. They fall back to either a \"None\" or \"Done\" state, depending on the state's \"Counts as completed\" setting. The identifier and title remain stored in the note until you set the checkbox to a new state.</p><h2>Transferring notes with custom task states between Trilium database instances</h2><p>Exporting notes to another Trilium database instance preserves the task states of to-do items, but does not include the custom task definitions. As a result, the destination instance won't know how to render the checkbox unless you recreate the task state there with the same identifier and Markdown symbol.</p><aside class=\"admonition note\"><p>This is a known limitation of the current version. If there is enough interest in the community for transferring notes between Trilium database instances more easily, the Trilium team may consider a better state definition mechanism.</p></aside>","_help_J5Ex1ZrMbyJ6": "<p>Trilium provides a mechanism for <a href=\"#root/_help_CdNpE2pqjmI6\">scripts</a> to open a public REST endpoint. This opens a way for various integrations with other services - a simple example would be creating new note from Slack by issuing a slash command (e.g. <code spellcheck=\"false\">/trilium buy milk</code>).</p><h2>Create note from outside Trilium</h2><p>Let's take a look at an example. The goal is to provide a REST endpoint to which we can send title and content and Trilium will create a note.</p><p>We'll start with creating a JavaScript backend <a href=\"#root/_help_6f9hih2hXXZk\">code note</a> containing:</p><pre><code class=\"language-text-x-trilium-auto\">const {req, res} = api;\nconst {secret, title, content} = req.body;\n\nif (req.method == 'POST' && secret === 'secret-password') {\n // notes must be saved somewhere in the tree hierarchy specified by a parent note. \n // This is defined by a relation from this code note to the \"target\" parent note\n // alternatively you can just use constant noteId for simplicity (get that from \"Note Info\" dialog of the desired parent note)\n const targetParentNoteId = api.currentNote.getRelationValue('targetNote');\n \n const {note} = api.createTextNote(targetParentNoteId, title, content);\n const notePojo = note.getPojo();\n\n res.status(201).json(notePojo);\n}\nelse {\n res.send(400);\n}</code></pre><p>This script note has also following two attributes:</p><ul><li>label <code spellcheck=\"false\">#customRequestHandler</code> with value <code spellcheck=\"false\">create-note</code></li><li>relation <code spellcheck=\"false\">~targetNote</code> pointing to a note where new notes should be saved</li></ul><h3>Explanation</h3><p>Let's test this by using an HTTP client to send a request:</p><pre><code class=\"language-text-x-trilium-auto\">POST http://your-trilium-server/custom/create-note\nContent-Type: application/json\n\n{\n \"secret\": \"secret-password\",\n \"title\": \"hello\",\n \"content\": \"world\"\n}+++++++++++++++++++++++++++++++++++++++++++++++</code></pre><p>Notice the <code spellcheck=\"false\">/custom</code> part in the request path - Trilium considers any request with this prefix as \"custom\" and tries to find a matching handler by looking at all notes which have <code spellcheck=\"false\">customRequestHandler</code> <a href=\"#root/_help_zEY4DaJG4YT5\">label</a>. Value of this label then contains a regular expression which will match the request path (in our case trivial regex \"create-note\").</p><p>Trilium will then find our code note created above and execute it. <code spellcheck=\"false\">api.req</code>, <code spellcheck=\"false\">api.res</code> are set to <a href=\"https://expressjs.com/en/api.html#req\">request</a> and <a href=\"https://expressjs.com/en/api.html#res\">response</a>objects from which we can get details of the request and also respond.</p><p>In the code note we check the request method and then use trivial authentication - keep in mind that these endpoints are by default totally unauthenticated, and you need to take care of this yourself.</p><p>Once we pass these checks we will just create the desired note using <a href=\"#root/_help_GLks18SNjxmC\">Script API</a>.</p><h2>Custom resource provider</h2><p>Another common use case is that you want to just expose a file note - in such case you create label <code spellcheck=\"false\">customResourceProvider</code> (value is again path regex).</p><p>For more information, see <a href=\"#root/_help_d3fAXQ2diepH\">Custom Resource Providers</a>.</p><h2>Advanced concepts</h2><p><code spellcheck=\"false\">api.req</code> and <code spellcheck=\"false\">api.res</code> are Express.js objects - you can always look into its <a href=\"https://expressjs.com/en/api.html\">documentation</a> for details.</p><h3>Parameters</h3><p>REST request paths often contain parameters in the URL, e.g.:</p><pre><code class=\"language-text-x-trilium-auto\">http://your-trilium-server/custom/notes/123</code></pre><p>The last part is dynamic so the matching of the URL must also be dynamic - for this reason the matching is done with regular expressions. Following <code spellcheck=\"false\">customRequestHandler</code> value would match it:</p><pre><code class=\"language-text-x-trilium-auto\">notes/([0-9]+)</code></pre><p>Additionally, this also defines a matching group with the use of parenthesis which then makes it easier to extract the value. The matched groups are available in <code spellcheck=\"false\">api.pathParams</code>:</p><pre><code class=\"language-text-x-trilium-auto\">const noteId = api.pathParams[0];</code></pre><p>Often you also need query params (as in e.g. <code spellcheck=\"false\">http://your-trilium-server/custom/notes?noteId=123</code>), you can get those with standard express <code spellcheck=\"false\">req.query.noteId</code>.</p>",@@ -206,8 +206,8 @@"_help_pgxEVkzLl1OP": "<aside class=\"admonition tip\"><p>For a quick start, consult the <a class=\"reference-link\" href=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/ETAPI%20(REST%20API)/API%20Reference.dat\">API Reference</a>.</p></aside><p>ETAPI is Trilium's public/external REST API. It is available since Trilium v0.50.</p><h2>API clients</h2><p>As an alternative to calling the API directly, there are client libraries to simplify this</p><ul><li><a href=\"https://github.com/Nriver/trilium-py\">trilium-py</a>, you can use Python to communicate with Trilium.</li></ul><h2>Obtaining a token</h2><p>All operations with the REST API have to be authenticated using a token. You can get this token either from Options -> ETAPI or programmatically using the <code spellcheck=\"false\">/auth/login</code> REST call (see the <a href=\"https://github.com/TriliumNext/Trilium/blob/master/src/etapi/etapi.openapi.yaml\">spec</a>).</p><h2>Authentication</h2><h3>Via the <code spellcheck=\"false\">Authorization</code> header</h3><pre><code class=\"language-text-x-trilium-auto\">GET https://myserver.com/etapi/app-info\nAuthorization: ETAPITOKEN</code></pre><p>where <code spellcheck=\"false\">ETAPITOKEN</code> is the token obtained in the previous step.</p><p>For compatibility with various tools, it's also possible to specify the value of the <code spellcheck=\"false\">Authorization</code> header in the format <code spellcheck=\"false\">Bearer ETAPITOKEN</code> (since 0.93.0).</p><h3>Basic authentication</h3><p>Since v0.56 you can also use basic auth format:</p><pre><code class=\"language-text-x-trilium-auto\">GET https://myserver.com/etapi/app-info\nAuthorization: Basic BATOKEN</code></pre><ul><li>Where <code spellcheck=\"false\">BATOKEN = BASE64(username + ':' + password)</code> - this is a standard Basic Auth serialization</li><li>Where <code spellcheck=\"false\">username</code> is \"etapi\"</li><li>And <code spellcheck=\"false\">password</code> is the generated ETAPI token described above.</li></ul><p>Basic Auth is meant to be used with tools which support only basic auth.</p><h2>Interaction using Bash scripts</h2><p>It is possible to write simple Bash scripts to interact with Trilium. As an example, here's how to obtain the HTML content of a note:</p><pre><code class=\"language-text-x-trilium-auto\">#!/usr/bin/env bash\n\n# Configuration\nTOKEN=z1vA4fkGxjOR_ZXLrZeqHEFOv65yV3882iFCRtNIK9k9iWrHliITNSLQ=\nSERVER=http://localhost:8080\n\n# Download a note by ID\nNOTE_ID=\"i6ra4ZshJhgN\"\ncurl \"$SERVER/etapi/notes/$NOTE_ID/content\" -H \"Authorization: $TOKEN\" </code></pre><p>Make sure to replace the values of:</p><ul><li><code spellcheck=\"false\">TOKEN</code> with your ETAPI token.</li><li><code spellcheck=\"false\">SERVER</code> with the correct protocol, host name and port to your Trilium instance.</li><li><code spellcheck=\"false\">NOTE_ID</code> with an existing note ID to download.</li></ul><p>As another example, to obtain a .zip export of a note and place it in a directory called <code spellcheck=\"false\">out</code>, simply replace the last statement in the script with:</p><pre><code class=\"language-text-x-trilium-auto\">curl -H \"Authorization: $TOKEN\" \\\n\t-X GET \"$SERVER/etapi/notes/$NOTE_ID/export\" \\\n --output \"out/$NOTE_ID.zip\"</code></pre>","_help_47ZrP6FNuoG8": "<p>When a new note is created, its name is by default \"new note\". In some cases, it can be desirable to have a different or even a dynamic default note title.</p><p>For this use case, Trilium (since v0.52) supports <code spellcheck=\"false\">#titleTemplate</code> <a href=\"#root/_help_zEY4DaJG4YT5\">label</a>. You can create such a label for a given note, assign it a value, and this value will be used as a default title when creating child notes. As with other labels, you can make it inheritable to apply recursively, and you can even place it on the root note to have it applied globally everywhere.</p><p>As an example use case, imagine you collect books you've read in a given year like this:</p><ul><li>2022 Books<ul><li>Neal Stephenson: Anathem, 2008</li><li>Franz Kafka: Die Verwandlung, 1915</li></ul></li></ul><p>Now, to the parent note \"2022 Books\" you can assign label <code spellcheck=\"false\">#titleTemplate=\"[Author name]: [Book title], [Publication year]\"</code>.</p><p>And all children of \"2022 Books\" will be created with initial title \"[Author name]: [Book title], [Publication year]\". There's no artificial intelligence here, the idea is to just prompt you to manually fill in the pieces of information into the note title by yourself.</p><h2>Dynamic value</h2><p>The value of <code spellcheck=\"false\">#titleTemplate</code> is evaluated at the point of note's creation as a JavaScript string, which means it can be enriched with the help of JS string interpolation with dynamic data.</p><p>Second variable injected is <code spellcheck=\"false\">parentNote</code> which gives access to the parent <a href=\"{{helpAssets}}/User%20Guide/Scripting/Script%20API/Frontend%20API/FNote.dat\"><code spellcheck=\"false\">FNote</code></a>.</p><p>See also <a class=\"reference-link\" href=\"#root/_help_KC1HB96bqqHX\">Templates</a> which provides similar capabilities, including default note's content.</p><h3>Examples</h3><ul><li>Imagine you collect server outage incidents and write some notes. It looks like this:<ul><li>Incidents<ul><li>2022-05-09: System crash</li><li>2022-05-15: Backup delay</li></ul></li><li>You can automatize the date assignment by assigning a label <code spellcheck=\"false\">#titleTemplate=\"${now.format('YYYY-MM-DD')}: \"</code> to the parent note \"Incidents\". Whenever a new child note is created, the title template is evaluated with the injected <a href=\"https://day.js.org/docs/en/display/format\">now</a> object.</li></ul></li><li>To use a parent's attribute in the title of new notes: <code spellcheck=\"false\">#titleTemplate=\"${parentNote.getLabelValue('authorName')}'s literary works\"</code></li><li>To mirror the parent's note title: <code spellcheck=\"false\">${parentNote.title}</code></li></ul>","_help_wX4HbRucYSDD": "<p>Your Trilium data is stored in a <a href=\"https://www.sqlite.org\">SQLite</a> database which contains all notes, tree structure, metadata, and most of the configuration. The database file is named <code spellcheck=\"false\">document.db</code> and is stored in the application's default <a href=\"#root/_help_tAassRL4RSQL\">Data directory</a>.</p><h2>Demo Notes</h2><p>When first starting Trilium, it will provide a set of notes to showcase various features of the application.</p><p>For more information see <a class=\"reference-link\" href=\"#root/_help_6tZeKvSHEUiB\">Demo Notes</a>.</p><h2>Manually Modifying the Database</h2><p>Trilium provides a lot of flexibility, and with it, opportunities for advanced users to tweak it. If you need to explore or modify the database directly, you can use a tool such as <a href=\"https://sqlitebrowser.org/\">SQLite Browser</a> to work directly on the database file.</p><p>See <a href=\"#root/_help_oyIAJ9PvvwHX\">Manually altering the database</a> for more information.</p><h2>How to Reset the Database</h2><p>If you are experimenting with Trilium and want to return it to its original state, you can do that by deleting the current database. When you restart the application, it will generate a new database containing the original demo notes.</p><p>To delete the database, simply go to the <a href=\"#root/_help_tAassRL4RSQL\">data directory</a> and delete the <code spellcheck=\"false\">document.db</code> file (and any other files starting with <code spellcheck=\"false\">document.db</code>).</p><p>If you do not need to preserve any configurations that might be stored in the <code spellcheck=\"false\">config.ini</code> file, you can just delete all of the <a href=\"#root/_help_tAassRL4RSQL\">data directory's</a> contents to fully restore the application to its original state. You can also review the <a href=\"#root/_help_Gzjqa934BdH4\">configuration</a> file to provide all <code spellcheck=\"false\">config.ini</code> values as environment variables instead.</p>",- "_help_oyIAJ9PvvwHX": "<p>There are some situations where modifying the SQLite database that Trilium uses is desirable.</p><p>If you are doing any advanced development or troubleshooting where you manually modify the database, you might want to consider creating backups of your <code spellcheck=\"false\">document.db</code> file.</p><h2>Modifying it internally using the SQL Console</h2><p>The SQL Console is Trilium's built-in database editor.</p><p>See <a class=\"reference-link\" href=\"#root/_help_YKWqdJhzi2VY\">SQL Console</a>.</p><h2>Externally modifying the database</h2><p>Sometimes the SQL Console cannot be used (for example if the application cannot start).</p><p>When making external modifications, consider closing the desktop application. If modifying the server database, then stop the service or Docker container.</p><h3>Using DB Browser for SQLite</h3><p>DB Browser for SQLite is a cross-platform editor that can be used to alter the database using a graphical user interface.</p><p>To do so:</p><ol><li>In the main menu, select File → Open database… and navigate to the database in the <a href=\"#root/_help_tAassRL4RSQL\">Data directory</a>.</li><li>Select the <em>Execute SQL</em> tab.</li><li>Type in the desired SQL statement.</li><li>Press the \"Play\" button in the toolbar underneath the \"Execute SQL\" tab (or F5 key).</li><li>Press \"Write Changes\" in the main toolbar.</li><li>Close the application or close the database.</li></ol><p><img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Database/Manually%20altering%20the%20database_image.png\"></p><h3>Using the SQLite CLI</h3><p>First, start the SQLite 3 CLI by specifying the path to the database:</p><pre><code class=\"language-text-x-trilium-auto\">sqlite3 ~/.local/share/trilium-data/document.db</code></pre><ul><li>In the prompt simply type the statement and make sure it ends with a <code spellcheck=\"false\">;</code> character.</li><li>To exit, simply type <code spellcheck=\"false\">.quit</code> and enter.</li></ul>",- "_help_YKWqdJhzi2VY": "<aside class=\"admonition important\"><p>Starting with v0.104.0, backend scripts are disabled by default to reduce the attack surface. See <a class=\"reference-link\" href=\"#root/_help_fiHicjpHjIRJ\">Security</a> for more information.</p></aside><p>The SQL Console is Trilium's built-in database editor.</p><p>It can be accessed by going to the <a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a> → Advanced → Open SQL Console.</p><p><img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Database/Manually%20altering%20the%20database/SQL%20Console_image.png\"></p><h3>Interaction</h3><ul><li>Hovering the mouse over one of the tables listed at the top of the document will show the columns and their data type.</li><li>Only one SQL statement can be run at once.</li><li>To run the statement, press the <em>Execute</em> icon.</li><li>For queries that return a result, the data will displayed in a table.</li><li>For statements (e.g. <code spellcheck=\"false\">INSERT</code>, <code spellcheck=\"false\">UPDATE</code>), the number of affected rows is displayed.</li></ul><figure class=\"image\"><img style=\"aspect-ratio:1124/571;\" src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Database/Manually%20altering%20the%20database/2_SQL%20Console_image.png\" width=\"1124\" height=\"571\"></figure><h3>Interacting with the table</h3><p>After executing a query, a table with the results will be displayed:</p><ul><li>Clicking on a column allows sorting ascending or descending.</li><li>Underneath each column there is an input field which allows filtering by text.</li><li>Press <kbd>Ctrl</kbd>+<kbd>C</kbd> to copy the current cell to clipboard.</li><li>Multiple cells can be selected by dragging or by holding <kbd>Shift</kbd> + arrow keys</li><li>Results are paginated for performance reasons. The controls at the bottom of the table can be used to navigate through pages.</li></ul><h3>Saved SQL console</h3><p>SQL queries or commands can be saved into a dedicated note.</p><p>To do so, simply write the query and press the <img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Database/Manually%20altering%20the%20database/1_SQL%20Console_image.png\"> button. Once saved, the note will appear in <a class=\"reference-link\" href=\"#root/_help_l0tKav7yLHGF\">Day Notes</a> by default. It is possible to change the default location of saved queries by assigning a <code spellcheck=\"false\">#sqlConsoleHome</code> <a href=\"#root/_help_HI6GBBIduIgv\">label</a>.</p><p>The note can be locked for editing by pressing the <em>Lock</em> button in the note actions section near the title bar (on the <a class=\"reference-link\" href=\"#root/_help_IjZS7iK5EXtb\">New Layout</a>, or in the <a class=\"reference-link\" href=\"#root/_help_XpOYSgsLkTJy\">Floating buttons</a> area if using the old layout). When editing is locked, the SQL statement is hidden from view.</p>",+ "_help_oyIAJ9PvvwHX": "<p>There are some situations where modifying the SQLite database that Trilium uses is desirable.</p><p>If you are doing any advanced development or troubleshooting where you manually modify the database, you might want to consider creating backups of your <code spellcheck=\"false\">document.db</code> file.</p><h2>Modifying it internally using the SQL Console</h2><p>The SQL Console is Trilium's built-in database editor.</p><p>See <a class=\"reference-link\" href=\"#root/_help_YKWqdJhzi2VY\">SQL Console</a>.</p><h2>Externally modifying the database</h2><p>Sometimes the SQL Console cannot be used (for example if the application cannot start).</p><p>When making external modifications, consider closing the desktop application. If modifying the server database, then stop the service or Docker container.</p><h3>Using DB Browser for SQLite</h3><p>DB Browser for SQLite is a cross-platform editor that can be used to alter the database using a graphical user interface.</p><p>To do so:</p><ol><li>In the main menu, select File → Open database… and navigate to the database in the <a href=\"#root/_help_tAassRL4RSQL\">Data directory</a>.</li><li>Select the <em>Execute SQL</em> tab.</li><li>Type in the desired SQL statement.</li><li>Press the \"Play\" button in the toolbar underneath the \"Execute SQL\" tab (or F5 key).</li><li>Press \"Write Changes\" in the main toolbar.</li><li>Close the application or close the database.</li></ol><p><img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Database/Manually%20altering%20the%20database_image.jpg\"></p><h3>Using the SQLite CLI</h3><p>First, start the SQLite 3 CLI by specifying the path to the database:</p><pre><code class=\"language-text-x-trilium-auto\">sqlite3 ~/.local/share/trilium-data/document.db</code></pre><ul><li>In the prompt simply type the statement and make sure it ends with a <code spellcheck=\"false\">;</code> character.</li><li>To exit, simply type <code spellcheck=\"false\">.quit</code> and enter.</li></ul>",+ "_help_YKWqdJhzi2VY": "<aside class=\"admonition important\"><p>Starting with v0.104.0, backend scripts are disabled by default to reduce the attack surface. See <a class=\"reference-link\" href=\"#root/_help_fiHicjpHjIRJ\">Security</a> for more information.</p></aside><p>The SQL Console is Trilium's built-in database editor.</p><p>It can be accessed by going to the <a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a> → Advanced → Open SQL Console.</p><p><img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Database/Manually%20altering%20the%20database/SQL%20Console_image.jpg\"></p><h3>Interaction</h3><ul><li>Hovering the mouse over one of the tables listed at the top of the document will show the columns and their data type.</li><li>Only one SQL statement can be run at once.</li><li>To run the statement, press the <em>Execute</em> icon.</li><li>For queries that return a result, the data will displayed in a table.</li><li>For statements (e.g. <code spellcheck=\"false\">INSERT</code>, <code spellcheck=\"false\">UPDATE</code>), the number of affected rows is displayed.</li></ul><figure class=\"image\"><img style=\"aspect-ratio:1124/571;\" src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Database/Manually%20altering%20the%20database/2_SQL%20Console_image.png\" width=\"1124\" height=\"571\"></figure><h3>Interacting with the table</h3><p>After executing a query, a table with the results will be displayed:</p><ul><li>Clicking on a column allows sorting ascending or descending.</li><li>Underneath each column there is an input field which allows filtering by text.</li><li>Press <kbd>Ctrl</kbd>+<kbd>C</kbd> to copy the current cell to clipboard.</li><li>Multiple cells can be selected by dragging or by holding <kbd>Shift</kbd> + arrow keys</li><li>Results are paginated for performance reasons. The controls at the bottom of the table can be used to navigate through pages.</li></ul><h3>Saved SQL console</h3><p>SQL queries or commands can be saved into a dedicated note.</p><p>To do so, simply write the query and press the <img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Database/Manually%20altering%20the%20database/1_SQL%20Console_image.png\"> button. Once saved, the note will appear in <a class=\"reference-link\" href=\"#root/_help_l0tKav7yLHGF\">Day Notes</a> by default. It is possible to change the default location of saved queries by assigning a <code spellcheck=\"false\">#sqlConsoleHome</code> <a href=\"#root/_help_HI6GBBIduIgv\">label</a>.</p><p>The note can be locked for editing by pressing the <em>Lock</em> button in the note actions section near the title bar (on the <a class=\"reference-link\" href=\"#root/_help_IjZS7iK5EXtb\">New Layout</a>, or in the <a class=\"reference-link\" href=\"#root/_help_XpOYSgsLkTJy\">Floating buttons</a> area if using the old layout). When editing is locked, the SQL statement is hidden from view.</p>","_help_6tZeKvSHEUiB": "<p>When you run Trilium for the first time, it will generate a new database containing demo notes. These notes showcase its many features, such as:</p><ul><li><a class=\"reference-link\" href=\"#root/_help_iRwzGnHPzonm\">Relation Map</a></li><li><a class=\"reference-link\" href=\"#root/_help_l0tKav7yLHGF\">Day Notes</a></li><li><a class=\"reference-link\" href=\"#root/_help_R7abl2fc6Mxi\">Weight Tracker</a></li><li><a class=\"reference-link\" href=\"#root/_help_xYjQUYhpbUEW\">Task Manager</a></li><li><a class=\"reference-link\" href=\"#root/_help_Wy267RK4M69c\">Themes</a></li></ul><h3>Restoring Demo Notes</h3><p>There are some cases in which you may want to restore the original demo notes. For example, if you experimented with some of the more advanced features and want to see the original reference, or if you simply want to explore the latest version of the demo notes, which might showcase new features.</p><p>You can easily restore the demo notes by using Trilium's built-in import feature by importing them:</p><ul><li>Download <a href=\"https://github.com/TriliumNext/Trilium/raw/refs/heads/main/apps/server/src/assets/db/demo.zip\">the .zip archive</a> with the latest version of the demo notes</li><li>Right click on any note in your tree under which you would like the demo notes to be imported</li><li>Click \"Import into note\"</li><li>Select the .zip archive to import it</li></ul>","_help_Gzjqa934BdH4": "<p>Trilium supports configuration via a file named <code spellcheck=\"false\">config.ini</code> and environment variables. This document provides a comprehensive reference for all configuration options.</p><h2>Location of the configuration file</h2><p>The configuration file is not located in the same directory as the application. Instead, the <code spellcheck=\"false\">config.ini</code> is located in the <a class=\"reference-link\" href=\"#root/_help_tAassRL4RSQL\">Data directory</a>. As such, the configuration file is only available after starting the application and creating a database.</p><h2>Configuration Precedence</h2><p>Configuration values are loaded in the following order of precedence (highest to lowest):</p><ol><li><strong>Environment variables</strong> (checked first)</li><li><strong>config.ini file values</strong></li><li><strong>Default values</strong></li></ol><h2>Environment Variable Patterns</h2><p>Trilium supports multiple environment variable patterns for flexibility. The primary pattern is: <code spellcheck=\"false\">TRILIUM_[SECTION]_[KEY]</code></p><p>Where:</p><ul><li><code spellcheck=\"false\">SECTION</code> is the INI section name in UPPERCASE</li><li><code spellcheck=\"false\">KEY</code> is the camelCase configuration key converted to UPPERCASE (e.g., <code spellcheck=\"false\">instanceName</code> → <code spellcheck=\"false\">INSTANCENAME</code>)</li></ul><p>Additionally, shorter aliases are available for common configurations (see Alternative Variables section below).</p><h2>Environment Variable Reference</h2><h3>General Section</h3><figure class=\"table\"><table>\n<thead>\n<tr>\n<th>Environment Variable</th>\n<th>Type</th>\n<th>Default</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code spellcheck=\"false\">TRILIUM_GENERAL_INSTANCENAME</code></td>\n<td>string</td>\n<td>\"\"</td>\n<td>Instance name for API identification</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_GENERAL_NOAUTHENTICATION</code></td>\n<td>boolean</td>\n<td>false</td>\n<td>Disable authentication (server only)</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_GENERAL_NOBACKUP</code></td>\n<td>boolean</td>\n<td>false</td>\n<td>Disable automatic backups</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_GENERAL_NODESKTOPICON</code></td>\n<td>boolean</td>\n<td>false</td>\n<td>Disable desktop icon creation</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_GENERAL_READONLY</code></td>\n<td>boolean</td>\n<td>false</td>\n<td>Enable read-only mode</td>\n</tr>\n</tbody></table></figure><h3>Network Section</h3><figure class=\"table\"><table>\n<thead>\n<tr>\n<th>Environment Variable</th>\n<th>Type</th>\n<th>Default</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code spellcheck=\"false\">TRILIUM_NETWORK_HOST</code></td>\n<td>string</td>\n<td>\"0.0.0.0\"</td>\n<td>Server host binding</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_NETWORK_PORT</code></td>\n<td>string</td>\n<td>\"8080\"</td>\n<td>Server port</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_NETWORK_HTTPS</code></td>\n<td>boolean</td>\n<td>false</td>\n<td>Enable HTTPS</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_NETWORK_CERTPATH</code></td>\n<td>string</td>\n<td>\"\"</td>\n<td>SSL certificate path</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_NETWORK_KEYPATH</code></td>\n<td>string</td>\n<td>\"\"</td>\n<td>SSL key path</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_NETWORK_TRUSTEDREVERSEPROXY</code></td>\n<td>boolean/string</td>\n<td>false</td>\n<td>Reverse proxy trust settings</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_NETWORK_CORSALLOWORIGIN</code></td>\n<td>string</td>\n<td>\"\"</td>\n<td>CORS allowed origins</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_NETWORK_CORSALLOWMETHODS</code></td>\n<td>string</td>\n<td>\"\"</td>\n<td>CORS allowed methods</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_NETWORK_CORSALLOWHEADERS</code></td>\n<td>string</td>\n<td>\"\"</td>\n<td>CORS allowed headers</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_NETWORK_CORSRESOURCEPOLICY</code></td>\n<td>string</td>\n<td>same-origin</td>\n<td>CORS Resource Policy allows same-origin/same-site/cross-origin as values, will error if not</td>\n</tr>\n</tbody></table></figure><h3>Session Section</h3><figure class=\"table\"><table>\n<thead>\n<tr>\n<th>Environment Variable</th>\n<th>Type</th>\n<th>Default</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code spellcheck=\"false\">TRILIUM_SESSION_COOKIEMAXAGE</code></td>\n<td>integer</td>\n<td>1814400</td>\n<td>Session cookie max age in seconds (21 days)</td>\n</tr>\n</tbody></table></figure><h3>Sync Section</h3><figure class=\"table\"><table>\n<thead>\n<tr>\n<th>Environment Variable</th>\n<th>Type</th>\n<th>Default</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code spellcheck=\"false\">TRILIUM_SYNC_SYNCSERVERHOST</code></td>\n<td>string</td>\n<td>\"\"</td>\n<td>Sync server host URL</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_SYNC_SYNCSERVERTIMEOUT</code></td>\n<td>string</td>\n<td>\"120000\"</td>\n<td>Sync server timeout in milliseconds</td>\n</tr>\n<tr>\n<td><code spellcheck=\"false\">TRILIUM_SYNC_SYNCPROXY</code></td>\n<td>string</td>\n<td>\"\"</td>\n<td>Sync proxy URL</td>\n</tr>\n</tbody></table></figure><h3>MultiFactorAuthentication Section</h3><p>See <a class=\"reference-link\" href=\"#root/_help_x1lQNKQBqLcA\">Signing in with OpenID Connect</a>.</p><h3>Logging Section</h3><figure class=\"table\"><table>\n<thead>\n<tr>\n<th>Environment Variable</th>\n<th>Type</th>\n<th>Default</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code spellcheck=\"false\">TRILIUM_LOGGING_RETENTIONDAYS</code></td>\n<td>integer</td>\n<td>90</td>\n<td>Number of days to retain log files</td>\n</tr>\n</tbody></table></figure><h3>Development Section</h3><figure class=\"table\"><table>\n<thead>\n<tr>\n<th>Environment Variable</th>\n<th>Type</th>\n<th>Default</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code spellcheck=\"false\">TRILIUM_MANUAL_DB_MIGRATION</code></td>\n<td>boolean</td>\n<td>false</td>\n<td>If <code spellcheck=\"false\">true</code>, the application will not start if automatic database migrations are pending and would modify the database schema.</td>\n</tr>\n</tbody></table></figure><h2>Alternative Environment Variables</h2><p>The following alternative environment variable names are also supported and work identically to their longer counterparts:</p><h3>Network CORS Variables</h3><ul><li><code spellcheck=\"false\">TRILIUM_NETWORK_CORS_ALLOW_ORIGIN</code> (alternative to <code spellcheck=\"false\">TRILIUM_NETWORK_CORSALLOWORIGIN</code>)</li><li><code spellcheck=\"false\">TRILIUM_NETWORK_CORS_ALLOW_METHODS</code> (alternative to <code spellcheck=\"false\">TRILIUM_NETWORK_CORSALLOWMETHODS</code>)</li><li><code spellcheck=\"false\">TRILIUM_NETWORK_CORS_ALLOW_HEADERS</code> (alternative to <code spellcheck=\"false\">TRILIUM_NETWORK_CORSALLOWHEADERS</code>)</li><li><code spellcheck=\"false\">TRILIUM_NETWORK_CORS_RESOURCE_POLICY</code> (alternative to <code spellcheck=\"false\">TRILIUM_NETWORK_CORSRESOURCEPOLICY</code>)</li></ul><h3>Sync Variables</h3><ul><li><code spellcheck=\"false\">TRILIUM_SYNC_SERVER_HOST</code> (alternative to <code spellcheck=\"false\">TRILIUM_SYNC_SYNCSERVERHOST</code>)</li><li><code spellcheck=\"false\">TRILIUM_SYNC_SERVER_TIMEOUT</code> (alternative to <code spellcheck=\"false\">TRILIUM_SYNC_SYNCSERVERTIMEOUT</code>)</li><li><code spellcheck=\"false\">TRILIUM_SYNC_SERVER_PROXY</code> (alternative to <code spellcheck=\"false\">TRILIUM_SYNC_SYNCPROXY</code>)</li></ul><h3>OAuth/MFA Variables</h3><ul><li><code spellcheck=\"false\">TRILIUM_OAUTH_BASE_URL</code> (alternative to <code spellcheck=\"false\">TRILIUM_MULTIFACTORAUTHENTICATION_OAUTHBASEURL</code>)</li><li><code spellcheck=\"false\">TRILIUM_OAUTH_CLIENT_ID</code> (alternative to <code spellcheck=\"false\">TRILIUM_MULTIFACTORAUTHENTICATION_OAUTHCLIENTID</code>)</li><li><code spellcheck=\"false\">TRILIUM_OAUTH_CLIENT_SECRET</code> (alternative to <code spellcheck=\"false\">TRILIUM_MULTIFACTORAUTHENTICATION_OAUTHCLIENTSECRET</code>)</li><li><code spellcheck=\"false\">TRILIUM_OAUTH_ISSUER_BASE_URL</code> (alternative to <code spellcheck=\"false\">TRILIUM_MULTIFACTORAUTHENTICATION_OAUTHISSUERBASEURL</code>)</li><li><code spellcheck=\"false\">TRILIUM_OAUTH_ISSUER_NAME</code> (alternative to <code spellcheck=\"false\">TRILIUM_MULTIFACTORAUTHENTICATION_OAUTHISSUERNAME</code>)</li><li><code spellcheck=\"false\">TRILIUM_OAUTH_ISSUER_ICON</code> (alternative to <code spellcheck=\"false\">TRILIUM_MULTIFACTORAUTHENTICATION_OAUTHISSUERICON</code>)</li></ul><h3>Logging Variables</h3><ul><li><code spellcheck=\"false\">TRILIUM_LOGGING_RETENTION_DAYS</code> (alternative to <code spellcheck=\"false\">TRILIUM_LOGGING_RETENTIONDAYS</code>)</li></ul><h2>Boolean Values</h2><p>Boolean environment variables accept the following values:</p><ul><li><strong>True</strong>: <code spellcheck=\"false\">\"true\"</code>, <code spellcheck=\"false\">\"1\"</code>, <code spellcheck=\"false\">1</code></li><li><strong>False</strong>: <code spellcheck=\"false\">\"false\"</code>, <code spellcheck=\"false\">\"0\"</code>, <code spellcheck=\"false\">0</code></li><li>Any other value defaults to <code spellcheck=\"false\">false</code></li></ul><h2>Using Environment Variables</h2><p>Both naming patterns are fully supported and can be used interchangeably:</p><ul><li>The longer format follows the section/key pattern for consistency with the INI file structure</li><li>The shorter alternatives provide convenience for common configurations</li><li>You can use whichever format you prefer - both are equally valid</li></ul><h2>Examples</h2><h3>Docker Compose Example</h3><pre><code class=\"language-text-x-yaml\">services:\n trilium:\n image: triliumnext/trilium\n environment:\n # Using full format\n TRILIUM_GENERAL_INSTANCENAME: \"My Trilium Instance\"\n TRILIUM_NETWORK_PORT: \"8080\"\n TRILIUM_NETWORK_CORSALLOWORIGIN: \"https://myapp.com\"\n TRILIUM_SYNC_SYNCSERVERHOST: \"https://sync.example.com\"\n TRILIUM_MULTIFACTORAUTHENTICATION_OAUTHBASEURL: \"https://auth.example.com\"\n \n # Or using shorter alternatives (equally valid)\n # TRILIUM_NETWORK_CORS_ALLOW_ORIGIN: \"https://myapp.com\"\n # TRILIUM_SYNC_SERVER_HOST: \"https://sync.example.com\"\n # TRILIUM_OAUTH_BASE_URL: \"https://auth.example.com\"</code></pre><h3>Shell Export Example</h3><pre><code class=\"language-text-x-trilium-auto\"># Using either format\nexport TRILIUM_GENERAL_NOAUTHENTICATION=false\nexport TRILIUM_NETWORK_HTTPS=true\nexport TRILIUM_NETWORK_CERTPATH=/path/to/cert.pem\nexport TRILIUM_NETWORK_KEYPATH=/path/to/key.pem\nexport TRILIUM_LOGGING_RETENTIONDAYS=30\n\n# Start Trilium\nnpm start</code></pre><h2>config.ini Reference</h2><p>For the complete list of configuration options and their INI file format, please review the <a href=\"https://github.com/TriliumNext/Trilium/blob/main/apps/server/src/assets/config-sample.ini\">config-sample.ini</a> file in the Trilium repository</p>","_help_c5xB8m4g2IY6": "<p>A Trilium instance represents a server. If <a class=\"reference-link\" href=\"#root/_help_cbkrhQjrkKrh\">Synchronization</a> is set up, since multiple servers are involved (the one from the desktop client and the one the synchronisation is set up with), sometimes it can be useful to distinguish the instance you are running on.</p><h2>Setting the instance name</h2><p>To set up a name for the instance, modify the <code spellcheck=\"false\">config.ini</code>:</p><pre><code class=\"language-text-x-trilium-auto\">[General]\ninstanceName=Hello</code></pre><h2>Distinguishing the instance on back-end</h2><p>Use <code spellcheck=\"false\">api.getInstanceName()</code> to obtain the instance name of the current server, as specified in the config file or in environment variables.</p><h2>Limiting script runs based on instance</h2><p>For a script that is run periodically or on a certain event, it's possible to limit it to certain instances without having to change the code. Just add <code spellcheck=\"false\">runOnInstance</code> and set as the value the instance name where the script should run. To run on multiple named instances, simply add the label multiple times.</p>",diff --git a/docs/Release Notes/!!!meta.json b/docs/Release Notes/!!!meta.jsonindex 078a04dfa6..b3b414c990 100644--- a/docs/Release Notes/!!!meta.json+++ b/docs/Release Notes/!!!meta.json@@ -1179,7 +1179,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "v0.90.5-beta_image.png"+ "dataFileName": "v0.90.5-beta_image.jpg"}]},@@ -1304,7 +1304,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "v0.48_note-map.png"+ "dataFileName": "v0.48_note-map.jpg"},{"attachmentId": "c74WFpjTo0p4",@@ -1312,7 +1312,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "v0.48_screenshot.png"+ "dataFileName": "v0.48_screenshot.jpg"},{"attachmentId": "szlnTmTJL4HL",@@ -1320,7 +1320,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "v0.48_split.png"+ "dataFileName": "v0.48_split.jpg"},{"attachmentId": "VQxrtpQTYmI6",@@ -1328,7 +1328,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "v0.48_bookmarks.png"+ "dataFileName": "v0.48_bookmarks.jpg"},{"attachmentId": "ZRyEqxAv1MTd",diff --git a/docs/Release Notes/Release Notes/v0.48.md b/docs/Release Notes/Release Notes/v0.48.mdindex f1b5e5c3ba..8ac3255460 100644--- a/docs/Release Notes/Release Notes/v0.48.md+++ b/docs/Release Notes/Release Notes/v0.48.md@@ -3,7 +3,7 @@## Major frontend redesign-<img src="v0.48_screenshot.png" alt="" width="1047" height="772">+<img src="v0.48_screenshot.jpg" alt="" width="1047" height="772">* right panel is no more, most of these widgets have been moved to the new ribbon-style widget under note title* right panel is still possible to activate for scripts@@ -11,13 +11,13 @@## Vertical split window-<figure class="image"><img style="aspect-ratio:1047/779;" src="v0.48_split.png" alt="" width="1047" height="779"></figure>+<figure class="image"><img style="aspect-ratio:1047/779;" src="v0.48_split.jpg" alt="" width="1047" height="779"></figure>## Link map re-implementedNow supports also hierarchical view of the notes:-<figure class="image"><img style="aspect-ratio:1082/786;" src="v0.48_note-map.png" alt="" width="1082" height="786"></figure>+<figure class="image"><img style="aspect-ratio:1082/786;" src="v0.48_note-map.jpg" alt="" width="1082" height="786"></figure>## Mermaid diagrams@@ -27,7 +27,7 @@ Thanks to [@abitofevrything](https://github.com/abitofevrything) for this contri## Basic bookmark support-<figure class="image"><img style="aspect-ratio:1200/815;" src="v0.48_bookmarks.png" alt="" width="1200" height="815"></figure>+<figure class="image"><img style="aspect-ratio:1200/815;" src="v0.48_bookmarks.jpg" alt="" width="1200" height="815"></figure>## Other changesdiff --git a/docs/Release Notes/Release Notes/v0.48_bookmarks.png b/docs/Release Notes/Release Notes/v0.48_bookmarks.jpgsimilarity index 100%rename from docs/Release Notes/Release Notes/v0.48_bookmarks.pngrename to docs/Release Notes/Release Notes/v0.48_bookmarks.jpgdiff --git a/docs/Release Notes/Release Notes/v0.48_note-map.png b/docs/Release Notes/Release Notes/v0.48_note-map.jpgsimilarity index 100%rename from docs/Release Notes/Release Notes/v0.48_note-map.pngrename to docs/Release Notes/Release Notes/v0.48_note-map.jpgdiff --git a/docs/Release Notes/Release Notes/v0.48_screenshot.png b/docs/Release Notes/Release Notes/v0.48_screenshot.jpgsimilarity index 100%rename from docs/Release Notes/Release Notes/v0.48_screenshot.pngrename to docs/Release Notes/Release Notes/v0.48_screenshot.jpgdiff --git a/docs/Release Notes/Release Notes/v0.48_split.png b/docs/Release Notes/Release Notes/v0.48_split.jpgsimilarity index 100%rename from docs/Release Notes/Release Notes/v0.48_split.pngrename to docs/Release Notes/Release Notes/v0.48_split.jpgdiff --git a/docs/Release Notes/Release Notes/v0.90.5-beta.md b/docs/Release Notes/Release Notes/v0.90.5-beta.mdindex 44787678e1..b8b33d7d04 100644--- a/docs/Release Notes/Release Notes/v0.90.5-beta.md+++ b/docs/Release Notes/Release Notes/v0.90.5-beta.md@@ -17,7 +17,7 @@ Mind maps are usually a fast method to write down ideas and do brainstorming witNote that the integration is still in its infancy, so there might be bugs and a lack of feature until it is stabilized. The library itself supports quite a few features that are not implemented yet in Trilium: math expressions using KaTeX, images, links. Those might be implemented along the way, provided they are needed by users.-<figure class="image"><img src="v0.90.5-beta_image.png"></figure>+<figure class="image"><img src="v0.90.5-beta_image.jpg"></figure>> **Note**: For the note type to fully work (such as shared notes), it is ideal to update the server instance as well, if you are using one.diff --git a/docs/Release Notes/Release Notes/v0.90.5-beta_image.png b/docs/Release Notes/Release Notes/v0.90.5-beta_image.jpgsimilarity index 100%rename from docs/Release Notes/Release Notes/v0.90.5-beta_image.pngrename to docs/Release Notes/Release Notes/v0.90.5-beta_image.jpgdiff --git a/docs/User Guide/!!!meta.json b/docs/User Guide/!!!meta.jsonindex 61ed2cb813..253a5c6e5c 100644--- a/docs/User Guide/!!!meta.json+++ b/docs/User Guide/!!!meta.json@@ -1901,7 +1901,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "Synchronization_image.png"+ "dataFileName": "Synchronization_image.jpg"},{"attachmentId": "wlHlhXqZ0i1S",@@ -2310,7 +2310,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "Data directory_image.png"+ "dataFileName": "Data directory_image.jpg"}]}@@ -2474,7 +2474,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "2_Vertical and horizontal layout_image.png"+ "dataFileName": "2_Vertical and horizontal layout_image.jpg"},{"attachmentId": "JwO3rUNb9tyU",@@ -2482,7 +2482,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "3_Vertical and horizontal layout_image.png"+ "dataFileName": "3_Vertical and horizontal layout_image.jpg"},{"attachmentId": "NVjM5z6IsNZf",@@ -2549,7 +2549,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "Global menu_image.png"+ "dataFileName": "Global menu_image.jpg"}]},@@ -2629,7 +2629,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "Note Tree_image.png"+ "dataFileName": "Note Tree_image.jpg"},{"attachmentId": "m0KuVBZvGyzW",@@ -2891,7 +2891,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "1_Multiple selection_image.png"+ "dataFileName": "1_Multiple selection_image.jpg"},{"attachmentId": "xZnYDX7rv0rW",@@ -3258,7 +3258,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "Ribbon_image.png"+ "dataFileName": "Ribbon_image.jpg"}]},@@ -3461,7 +3461,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "Launch Bar_image.png"+ "dataFileName": "Launch Bar_image.jpg"}]},@@ -6514,7 +6514,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "Note Navigation_image.png"+ "dataFileName": "Note Navigation_image.jpg"}]},@@ -7109,7 +7109,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "Workspaces_image.png"+ "dataFileName": "Workspaces_image.jpg"},{"attachmentId": "vZSH2mOKzWBx",@@ -7117,7 +7117,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "1_Workspaces_image.png"+ "dataFileName": "1_Workspaces_image.jpg"}]},@@ -7433,7 +7433,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "Themes_image.png"+ "dataFileName": "Themes_image.jpg"}],"dirFileName": "Themes",@@ -9899,7 +9899,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "Content language & Right-to-left support_image.png"+ "dataFileName": "Content language & Right-to-left support_image.jpg"}]},@@ -10008,7 +10008,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "Developer-specific formatting_image.png"+ "dataFileName": "Developer-specific formatting_image.jpg"},{"attachmentId": "HP741oAz3ebU",@@ -10040,7 +10040,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "4_Developer-specific formatting_image.png"+ "dataFileName": "4_Developer-specific formatting_image.jpg"},{"attachmentId": "VYcvGUzbobxQ",@@ -10145,7 +10145,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "1_Code blocks_image.png"+ "dataFileName": "1_Code blocks_image.jpg"},{"attachmentId": "kE8PPw7iyuu9",@@ -10331,7 +10331,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "Formatting toolbar_image.png"+ "dataFileName": "Formatting toolbar_image.jpg"},{"attachmentId": "iu9xb3VivIIl",@@ -10339,7 +10339,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "1_Formatting toolbar_image.png"+ "dataFileName": "1_Formatting toolbar_image.jpg"},{"attachmentId": "MMeih4nJVgNk",@@ -10347,7 +10347,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "2_Formatting toolbar_image.png"+ "dataFileName": "2_Formatting toolbar_image.jpg"},{"attachmentId": "SGaPJHzNyLLV",@@ -10355,7 +10355,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "3_Formatting toolbar_image.png"+ "dataFileName": "3_Formatting toolbar_image.jpg"}]},@@ -10602,7 +10602,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "1_Images_image.png"+ "dataFileName": "1_Images_image.jpg"},{"attachmentId": "Bi9LiB0eMbcH",@@ -10610,7 +10610,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "2_Images_image.png"+ "dataFileName": "2_Images_image.jpg"},{"attachmentId": "dRgFtpOcHwke",@@ -10618,7 +10618,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "3_Images_image.png"+ "dataFileName": "3_Images_image.jpg"},{"attachmentId": "g7xB3E2Dva2q",@@ -10642,7 +10642,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "6_Images_image.png"+ "dataFileName": "6_Images_image.jpg"},{"attachmentId": "qJXx7vPPD4JW",@@ -11555,7 +11555,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "3_Lists_image.png"+ "dataFileName": "3_Lists_image.jpg"},{"attachmentId": "IZewdPx4evIx",@@ -11571,7 +11571,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "5_Lists_image.png"+ "dataFileName": "5_Lists_image.jpg"},{"attachmentId": "kZMYrJubac6T",@@ -11579,7 +11579,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "6_Lists_image.png"+ "dataFileName": "6_Lists_image.jpg"},{"attachmentId": "PGeVq8YAQBFA",@@ -11595,7 +11595,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "8_Lists_image.png"+ "dataFileName": "8_Lists_image.jpg"},{"attachmentId": "y0zFP6x0IRRf",@@ -11603,7 +11603,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "9_Lists_image.png"+ "dataFileName": "9_Lists_image.jpg"},{"attachmentId": "z8eVlXe2WKqr",@@ -11611,7 +11611,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "10_Lists_image.png"+ "dataFileName": "10_Lists_image.jpg"}]},@@ -12494,7 +12494,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "Code_image.png"+ "dataFileName": "Code_image.jpg"},{"attachmentId": "iKJbcEUkME1a",@@ -12502,7 +12502,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "1_Code_image.png"+ "dataFileName": "1_Code_image.jpg"}]},@@ -15428,7 +15428,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "Anonymized Database_image.png"+ "dataFileName": "Anonymized Database_image.jpg"}]},@@ -15614,7 +15614,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "Frontend logs_image.png"+ "dataFileName": "Frontend logs_image.jpg"},{"attachmentId": "Y05WqmS4uMMt",@@ -15784,7 +15784,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "Creating a custom theme_3_Creating a custom theme_im.png"+ "dataFileName": "Creating a custom theme_3_Creating a custom theme_im.jpg"},{"attachmentId": "hJc5fBNfSLoY",@@ -15792,7 +15792,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "Creating a custom theme_Creating a custom theme_im.png"+ "dataFileName": "Creating a custom theme_Creating a custom theme_im.jpg"},{"attachmentId": "j3OaGihW6eg3",@@ -15800,7 +15800,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "Creating a custom theme_1_Creating a custom theme_im.png"+ "dataFileName": "Creating a custom theme_1_Creating a custom theme_im.jpg"},{"attachmentId": "LCQ6zvUbvXQr",@@ -15808,7 +15808,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "Creating a custom theme_4_Creating a custom theme_im.png"+ "dataFileName": "Creating a custom theme_4_Creating a custom theme_im.jpg"},{"attachmentId": "mY5EGlN7TO6I",@@ -15816,7 +15816,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "Creating a custom theme_5_Creating a custom theme_im.png"+ "dataFileName": "Creating a custom theme_5_Creating a custom theme_im.jpg"},{"attachmentId": "TMHEj1M3XFGO",@@ -15824,7 +15824,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "Creating a custom theme_2_Creating a custom theme_im.png"+ "dataFileName": "Creating a custom theme_2_Creating a custom theme_im.jpg"}]},@@ -17550,7 +17550,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "Serving directly the content of a note_image.png"+ "dataFileName": "Serving directly the content of a note_image.jpg"},{"attachmentId": "ixkXFTSSkdpL",@@ -17878,7 +17878,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "1_Day Notes_image.png"+ "dataFileName": "1_Day Notes_image.jpg"}]},@@ -17978,7 +17978,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "Weight Tracker_image.png"+ "dataFileName": "Weight Tracker_image.jpg"}]},@@ -18485,7 +18485,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "Manually altering the database_image.png"+ "dataFileName": "Manually altering the database_image.jpg"}],"dirFileName": "Manually altering the database",@@ -18573,7 +18573,7 @@"role": "image","mime": "image/jpg","position": 10,- "dataFileName": "SQL Console_image.png"+ "dataFileName": "SQL Console_image.jpg"},{"attachmentId": "gIbK7NNLu3iZ",diff --git a/docs/User Guide/User Guide/Advanced Usage/Advanced Showcases/1_Day Notes_image.png b/docs/User Guide/User Guide/Advanced Usage/Advanced Showcases/1_Day Notes_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Advanced Usage/Advanced Showcases/1_Day Notes_image.pngrename to docs/User Guide/User Guide/Advanced Usage/Advanced Showcases/1_Day Notes_image.jpgdiff --git a/docs/User Guide/User Guide/Advanced Usage/Advanced Showcases/Day Notes.md b/docs/User Guide/User Guide/Advanced Usage/Advanced Showcases/Day Notes.mdindex 798a857d2c..c2f2a714e1 100644--- a/docs/User Guide/User Guide/Advanced Usage/Advanced Showcases/Day Notes.md+++ b/docs/User Guide/User Guide/Advanced Usage/Advanced Showcases/Day Notes.md@@ -5,7 +5,7 @@ For this, Trilium provides a concept of "day note". Trilium semi-automatically gSelect an existing day note, and the menubar contains a calendar widget. Select any day to create a note for that day.-+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.diff --git a/docs/User Guide/User Guide/Advanced Usage/Advanced Showcases/Weight Tracker.md b/docs/User Guide/User Guide/Advanced Usage/Advanced Showcases/Weight Tracker.mdindex 5b9198ec28..eec1b2fa78 100644--- a/docs/User Guide/User Guide/Advanced Usage/Advanced Showcases/Weight Tracker.md+++ b/docs/User Guide/User Guide/Advanced Usage/Advanced Showcases/Weight Tracker.md@@ -1,5 +1,5 @@# Weight Tracker-+The `Weight Tracker` is a [Script API](../../Scripting/Script%20API.md) showcase present in the [demo notes](../Database.md).diff --git a/docs/User Guide/User Guide/Advanced Usage/Advanced Showcases/Weight Tracker_image.png b/docs/User Guide/User Guide/Advanced Usage/Advanced Showcases/Weight Tracker_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Advanced Usage/Advanced Showcases/Weight Tracker_image.pngrename to docs/User Guide/User Guide/Advanced Usage/Advanced Showcases/Weight Tracker_image.jpgdiff --git a/docs/User Guide/User Guide/Advanced Usage/Database/Manually altering the database.md b/docs/User Guide/User Guide/Advanced Usage/Database/Manually altering the database.mdindex 70841499cd..336145eb1b 100644--- a/docs/User Guide/User Guide/Advanced Usage/Database/Manually altering the database.md+++ b/docs/User Guide/User Guide/Advanced Usage/Database/Manually altering the database.md@@ -28,7 +28,7 @@ To do so:5. Press "Write Changes" in the main toolbar.6. Close the application or close the database.-+### Using the SQLite CLIdiff --git a/docs/User Guide/User Guide/Advanced Usage/Database/Manually altering the database/SQL Console.md b/docs/User Guide/User Guide/Advanced Usage/Database/Manually altering the database/SQL Console.mdindex 9d086f4012..14c7812136 100644--- a/docs/User Guide/User Guide/Advanced Usage/Database/Manually altering the database/SQL Console.md+++ b/docs/User Guide/User Guide/Advanced Usage/Database/Manually altering the database/SQL Console.md@@ -6,7 +6,7 @@ The SQL Console is Trilium's built-in database editor.It can be accessed by going to the <a class="reference-link" href="../../../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a> → Advanced → Open SQL Console.-+### Interactiondiff --git a/docs/User Guide/User Guide/Advanced Usage/Database/Manually altering the database/SQL Console_image.png b/docs/User Guide/User Guide/Advanced Usage/Database/Manually altering the database/SQL Console_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Advanced Usage/Database/Manually altering the database/SQL Console_image.pngrename to docs/User Guide/User Guide/Advanced Usage/Database/Manually altering the database/SQL Console_image.jpgdiff --git a/docs/User Guide/User Guide/Advanced Usage/Database/Manually altering the database_image.png b/docs/User Guide/User Guide/Advanced Usage/Database/Manually altering the database_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Advanced Usage/Database/Manually altering the database_image.pngrename to docs/User Guide/User Guide/Advanced Usage/Database/Manually altering the database_image.jpgdiff --git a/docs/User Guide/User Guide/Advanced Usage/Sharing/Serving directly the content of a note.md b/docs/User Guide/User Guide/Advanced Usage/Sharing/Serving directly the content of a note.mdindex 40bb27c335..98594d0890 100644--- a/docs/User Guide/User Guide/Advanced Usage/Sharing/Serving directly the content of a note.md+++ b/docs/User Guide/User Guide/Advanced Usage/Sharing/Serving directly the content of a note.md@@ -3,7 +3,7 @@ When accessing a shared note, Trilium will render it as a web page. Sometimes it| A note displayed as a web page (HTML) | A note displayed as a raw format || --- | --- |-| <figure class="image"><img style="aspect-ratio:738/275;" src="1_Serving directly the content of a note_image.png" width="738" height="275"></figure> |  |+| <figure class="image"><img style="aspect-ratio:738/275;" src="1_Serving directly the content of a note_image.png" width="738" height="275"></figure> |  |## By adding an attribute to the note@@ -13,4 +13,4 @@ Simply add the `#shareRaw` attribute and the note will always be rendered _raw_Append `?raw` to the URL to display a note in its raw format regardless of whether the `#shareRaw` attribute is added on the note.-\ No newline at end of file+\ No newline at end of filediff --git a/docs/User Guide/User Guide/Advanced Usage/Sharing/Serving directly the content of a note_image.png b/docs/User Guide/User Guide/Advanced Usage/Sharing/Serving directly the content of a note_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Advanced Usage/Sharing/Serving directly the content of a note_image.pngrename to docs/User Guide/User Guide/Advanced Usage/Sharing/Serving directly the content of a note_image.jpgdiff --git a/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/1_Workspaces_image.png b/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/1_Workspaces_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Basic Concepts and Features/Navigation/1_Workspaces_image.pngrename to docs/User Guide/User Guide/Basic Concepts and Features/Navigation/1_Workspaces_image.jpgdiff --git a/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Note Navigation.md b/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Note Navigation.mdindex 10edf13097..c24d4321e6 100644--- a/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Note Navigation.md+++ b/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Note Navigation.md@@ -7,7 +7,7 @@ You can use alt-left and alt-right to move back and forward in history of viewedThis works identically to browser backwards / forwards, it's actually using built-in browser support for this.-+## Jump to notediff --git a/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Note Navigation_image.png b/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Note Navigation_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Note Navigation_image.pngrename to docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Note Navigation_image.jpgdiff --git a/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Workspaces.md b/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Workspaces.mdindex d26281d523..c32335f389 100644--- a/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Workspaces.md+++ b/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Workspaces.md@@ -6,9 +6,9 @@ So far workspace consists of these features:* [note hoisting](Note%20Hoisting.md) - you can "zoom" into a workspace subtree to focus only on the relevant notes* easy entering of workspace:- + * visual identification of workspace in tabs:- + ### Configurationdiff --git a/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Workspaces_image.png b/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Workspaces_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Workspaces_image.pngrename to docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Workspaces_image.jpgdiff --git a/docs/User Guide/User Guide/Basic Concepts and Features/Themes.md b/docs/User Guide/User Guide/Basic Concepts and Features/Themes.mdindex 8251f1e16e..d929aafae3 100644--- a/docs/User Guide/User Guide/Basic Concepts and Features/Themes.md+++ b/docs/User Guide/User Guide/Basic Concepts and Features/Themes.md@@ -112,7 +112,7 @@ When Trilium's frontend starts, all notes labeled with `appCss` are automaticallAfter making changes, press <kbd>Ctrl</kbd> + <kbd>R</kbd> to reload the frontend and apply your new styles.-+### Styling Specific Notes in the Treediff --git a/docs/User Guide/User Guide/Basic Concepts and Features/Themes_image.png b/docs/User Guide/User Guide/Basic Concepts and Features/Themes_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Basic Concepts and Features/Themes_image.pngrename to docs/User Guide/User Guide/Basic Concepts and Features/Themes_image.jpgdiff --git a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/2_Vertical and horizontal layout_image.png b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/2_Vertical and horizontal layout_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/2_Vertical and horizontal layout_image.pngrename to docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/2_Vertical and horizontal layout_image.jpgdiff --git a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/3_Vertical and horizontal layout_image.png b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/3_Vertical and horizontal layout_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/3_Vertical and horizontal layout_image.pngrename to docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/3_Vertical and horizontal layout_image.jpgdiff --git a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Global menu.md b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Global menu.mdindex ead4bba18e..899ce7477f 100644--- a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Global menu.md+++ b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Global menu.md@@ -1,7 +1,7 @@# Global menuThe global menu configures the current window (zoom, keeping the window on top) and offers access to some more advanced options.-+## Accessing the global menudiff --git a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Global menu_image.png b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Global menu_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Global menu_image.pngrename to docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Global menu_image.jpgdiff --git a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Launch Bar.md b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Launch Bar.mdindex c802dbf872..8b290e17c0 100644--- a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Launch Bar.md+++ b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Launch Bar.md@@ -22,7 +22,7 @@ There are two ways to configure the launch bar:This will open a new tab with the <a class="reference-link" href="Note%20Tree.md">Note Tree</a> listing the launchers.-+Expanding _Available Launchers_ section will show the list of launchers that are not displayed on the launch bar. The _Visible Launchers_ will show the ones that are currently displayed.diff --git a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Launch Bar_image.png b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Launch Bar_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Launch Bar_image.pngrename to docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Launch Bar_image.jpgdiff --git a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree.md b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree.mdindex b65fa53610..21518d2545 100644--- a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree.md+++ b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree.md@@ -1,7 +1,7 @@# Note TreeThis page explains how to manipulate the note tree in TriliumNext, focusing on moving notes.-+## Drag and Dropdiff --git a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree/1_Multiple selection_image.png b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree/1_Multiple selection_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree/1_Multiple selection_image.pngrename to docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree/1_Multiple selection_image.jpgdiff --git a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree/Multiple selection.md b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree/Multiple selection.mdindex fd0b852440..c59ef73ca5 100644--- a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree/Multiple selection.md+++ b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree/Multiple selection.md@@ -13,7 +13,7 @@ The selected notes will be indicated via a different background color and an ico### Selecting notes in a sequence-<figure class="image image-style-align-right image_resized" style="width:29.24%;"><img style="aspect-ratio:233/205;" src="1_Multiple selection_image.png" width="233" height="205"></figure>+<figure class="image image-style-align-right image_resized" style="width:29.24%;"><img style="aspect-ratio:233/205;" src="1_Multiple selection_image.jpg" width="233" height="205"></figure>When notes are in a sequence (e.g. one underneath the other), the entire selection can be made just by selecting the first and the last item instead of individually clicking all the notes.diff --git a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree_image.png b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree_image.pngrename to docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree_image.jpgdiff --git a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Ribbon.md b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Ribbon.mdindex 0b8d0e2337..c275132bee 100644--- a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Ribbon.md+++ b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Ribbon.md@@ -1,5 +1,5 @@# Ribbon-+The ribbon allows changing options, attributes and viewing information about the current note.diff --git a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Ribbon_image.png b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Ribbon_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Ribbon_image.pngrename to docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Ribbon_image.jpgdiff --git a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Vertical and horizontal layout.md b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Vertical and horizontal layout.mdindex c4ffec4d58..b8cc3da0ba 100644--- a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Vertical and horizontal layout.md+++ b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Vertical and horizontal layout.md@@ -13,7 +13,7 @@ The vertical layout is Trilium's original layout:* The <a class="reference-link" href="Note%20Tree.md">Note Tree</a> can be collapsed by pressing the  button at the bottom of the <a class="reference-link" href="Launch%20Bar.md">Launch Bar</a>.* The <a class="reference-link" href="Global%20menu.md">Global menu</a> can be accessed via the  icon at the top of the <a class="reference-link" href="Launch%20Bar.md">Launch Bar</a>.-+### Horizontal layout@@ -25,7 +25,7 @@ The horizontal layout is a more traditional layout, since it bears similarity wi* The <a class="reference-link" href="Note%20Tree.md">Note Tree</a> can be collapsed by pressing the small  button to the left of the first tab.* The <a class="reference-link" href="Global%20menu.md">Global menu</a> can be accessed via the  button at the end of the <a class="reference-link" href="Launch%20Bar.md">Launch Bar</a>.-+## Changing the layoutdiff --git a/docs/User Guide/User Guide/Installation & Setup/Data directory.md b/docs/User Guide/User Guide/Installation & Setup/Data directory.mdindex 3b84301d29..c38097d6f1 100644--- a/docs/User Guide/User Guide/Installation & Setup/Data directory.md+++ b/docs/User Guide/User Guide/Installation & Setup/Data directory.md@@ -10,7 +10,7 @@ Data directory contains:Easy way how to find out which data directory Trilium uses is to look at the "About Trilium Notes" dialog (from "Menu" in upper left corner):-+Here's how the location is decided:diff --git a/docs/User Guide/User Guide/Installation & Setup/Data directory_image.png b/docs/User Guide/User Guide/Installation & Setup/Data directory_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Installation & Setup/Data directory_image.pngrename to docs/User Guide/User Guide/Installation & Setup/Data directory_image.jpgdiff --git a/docs/User Guide/User Guide/Installation & Setup/Synchronization.md b/docs/User Guide/User Guide/Installation & Setup/Synchronization.mdindex 7493cf1efb..5f46c34e5c 100644--- a/docs/User Guide/User Guide/Installation & Setup/Synchronization.md+++ b/docs/User Guide/User Guide/Installation & Setup/Synchronization.md@@ -1,7 +1,7 @@# SynchronizationTrilium is an offline-first note-taking application that stores all data locally on the desktop client. However, it also offers the option to set up synchronization with a server instance, allowing multiple desktop clients to sync with a central server. This creates a star-shaped topology:-+In this setup, a central server (referred to as the _sync server_) and multiple _client_ (or _desktop_) instances synchronize with the sync server. Once configured, synchronization is automatic and ongoing, requiring no manual intervention.diff --git a/docs/User Guide/User Guide/Installation & Setup/Synchronization_image.png b/docs/User Guide/User Guide/Installation & Setup/Synchronization_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Installation & Setup/Synchronization_image.pngrename to docs/User Guide/User Guide/Installation & Setup/Synchronization_image.jpgdiff --git a/docs/User Guide/User Guide/Note Types/1_Code_image.png b/docs/User Guide/User Guide/Note Types/1_Code_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Note Types/1_Code_image.pngrename to docs/User Guide/User Guide/Note Types/1_Code_image.jpgdiff --git a/docs/User Guide/User Guide/Note Types/Code.md b/docs/User Guide/User Guide/Note Types/Code.mdindex 0ea5c843ac..e79da14486 100644--- a/docs/User Guide/User Guide/Note Types/Code.md+++ b/docs/User Guide/User Guide/Note Types/Code.md@@ -10,13 +10,13 @@ This can be useful for a few things: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 noteIn 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 languagesdiff --git a/docs/User Guide/User Guide/Note Types/Code_image.png b/docs/User Guide/User Guide/Note Types/Code_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Note Types/Code_image.pngrename to docs/User Guide/User Guide/Note Types/Code_image.jpgdiff --git a/docs/User Guide/User Guide/Note Types/Text/10_Lists_image.png b/docs/User Guide/User Guide/Note Types/Text/10_Lists_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Note Types/Text/10_Lists_image.pngrename to docs/User Guide/User Guide/Note Types/Text/10_Lists_image.jpgdiff --git a/docs/User Guide/User Guide/Note Types/Text/1_Formatting toolbar_image.png b/docs/User Guide/User Guide/Note Types/Text/1_Formatting toolbar_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Note Types/Text/1_Formatting toolbar_image.pngrename to docs/User Guide/User Guide/Note Types/Text/1_Formatting toolbar_image.jpgdiff --git a/docs/User Guide/User Guide/Note Types/Text/1_Images_image.png b/docs/User Guide/User Guide/Note Types/Text/1_Images_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Note Types/Text/1_Images_image.pngrename to docs/User Guide/User Guide/Note Types/Text/1_Images_image.jpgdiff --git a/docs/User Guide/User Guide/Note Types/Text/2_Formatting toolbar_image.png b/docs/User Guide/User Guide/Note Types/Text/2_Formatting toolbar_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Note Types/Text/2_Formatting toolbar_image.pngrename to docs/User Guide/User Guide/Note Types/Text/2_Formatting toolbar_image.jpgdiff --git a/docs/User Guide/User Guide/Note Types/Text/2_Images_image.png b/docs/User Guide/User Guide/Note Types/Text/2_Images_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Note Types/Text/2_Images_image.pngrename to docs/User Guide/User Guide/Note Types/Text/2_Images_image.jpgdiff --git a/docs/User Guide/User Guide/Note Types/Text/3_Formatting toolbar_image.png b/docs/User Guide/User Guide/Note Types/Text/3_Formatting toolbar_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Note Types/Text/3_Formatting toolbar_image.pngrename to docs/User Guide/User Guide/Note Types/Text/3_Formatting toolbar_image.jpgdiff --git a/docs/User Guide/User Guide/Note Types/Text/3_Images_image.png b/docs/User Guide/User Guide/Note Types/Text/3_Images_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Note Types/Text/3_Images_image.pngrename to docs/User Guide/User Guide/Note Types/Text/3_Images_image.jpgdiff --git a/docs/User Guide/User Guide/Note Types/Text/3_Lists_image.png b/docs/User Guide/User Guide/Note Types/Text/3_Lists_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Note Types/Text/3_Lists_image.pngrename to docs/User Guide/User Guide/Note Types/Text/3_Lists_image.jpgdiff --git a/docs/User Guide/User Guide/Note Types/Text/4_Developer-specific formatting_image.png b/docs/User Guide/User Guide/Note Types/Text/4_Developer-specific formatting_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Note Types/Text/4_Developer-specific formatting_image.pngrename to docs/User Guide/User Guide/Note Types/Text/4_Developer-specific formatting_image.jpgdiff --git a/docs/User Guide/User Guide/Note Types/Text/5_Lists_image.png b/docs/User Guide/User Guide/Note Types/Text/5_Lists_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Note Types/Text/5_Lists_image.pngrename to docs/User Guide/User Guide/Note Types/Text/5_Lists_image.jpgdiff --git a/docs/User Guide/User Guide/Note Types/Text/6_Images_image.png b/docs/User Guide/User Guide/Note Types/Text/6_Images_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Note Types/Text/6_Images_image.pngrename to docs/User Guide/User Guide/Note Types/Text/6_Images_image.jpgdiff --git a/docs/User Guide/User Guide/Note Types/Text/6_Lists_image.png b/docs/User Guide/User Guide/Note Types/Text/6_Lists_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Note Types/Text/6_Lists_image.pngrename to docs/User Guide/User Guide/Note Types/Text/6_Lists_image.jpgdiff --git a/docs/User Guide/User Guide/Note Types/Text/8_Lists_image.png b/docs/User Guide/User Guide/Note Types/Text/8_Lists_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Note Types/Text/8_Lists_image.pngrename to docs/User Guide/User Guide/Note Types/Text/8_Lists_image.jpgdiff --git a/docs/User Guide/User Guide/Note Types/Text/9_Lists_image.png b/docs/User Guide/User Guide/Note Types/Text/9_Lists_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Note Types/Text/9_Lists_image.pngrename to docs/User Guide/User Guide/Note Types/Text/9_Lists_image.jpgdiff --git a/docs/User Guide/User Guide/Note Types/Text/Content language & Right-to-left support.md b/docs/User Guide/User Guide/Note Types/Text/Content language & Right-to-left support.mdindex 43b55a42b7..1603435bea 100644--- a/docs/User Guide/User Guide/Note Types/Text/Content language & Right-to-left support.md+++ b/docs/User Guide/User Guide/Note Types/Text/Content language & Right-to-left support.md@@ -1,5 +1,5 @@# Content language & Right-to-left support-+The content language determines:diff --git a/docs/User Guide/User Guide/Note Types/Text/Content language & Right-to-left support_image.png b/docs/User Guide/User Guide/Note Types/Text/Content language & Right-to-left support_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Note Types/Text/Content language & Right-to-left support_image.pngrename to docs/User Guide/User Guide/Note Types/Text/Content language & Right-to-left support_image.jpgdiff --git a/docs/User Guide/User Guide/Note Types/Text/Developer-specific formatting.md b/docs/User Guide/User Guide/Note Types/Text/Developer-specific formatting.mdindex e80d456183..72d0865c44 100644--- a/docs/User Guide/User Guide/Note Types/Text/Developer-specific formatting.md+++ b/docs/User Guide/User Guide/Note Types/Text/Developer-specific formatting.md@@ -16,7 +16,7 @@ To insert an inline code:Code blocks display a snippet of code as a dedicated block:-+A code block with JavaScript syntax highlight enabled.@@ -28,7 +28,7 @@ See the dedicated documentation for more information: [Code blocks](Developer-sThis 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.diff --git a/docs/User Guide/User Guide/Note Types/Text/Developer-specific formatting/1_Code blocks_image.png b/docs/User Guide/User Guide/Note Types/Text/Developer-specific formatting/1_Code blocks_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Note Types/Text/Developer-specific formatting/1_Code blocks_image.pngrename to docs/User Guide/User Guide/Note Types/Text/Developer-specific formatting/1_Code blocks_image.jpgdiff --git a/docs/User Guide/User Guide/Note Types/Text/Developer-specific formatting/Code blocks.md b/docs/User Guide/User Guide/Note Types/Text/Developer-specific formatting/Code blocks.mdindex a940543dab..8ff92dd89c 100644--- a/docs/User Guide/User Guide/Note Types/Text/Developer-specific formatting/Code blocks.md+++ b/docs/User Guide/User Guide/Note Types/Text/Developer-specific formatting/Code blocks.md@@ -1,5 +1,5 @@# Code blocks-+The code blocks feature allows entering pieces of code in text notes.diff --git a/docs/User Guide/User Guide/Note Types/Text/Developer-specific formatting_image.png b/docs/User Guide/User Guide/Note Types/Text/Developer-specific formatting_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Note Types/Text/Developer-specific formatting_image.pngrename to docs/User Guide/User Guide/Note Types/Text/Developer-specific formatting_image.jpgdiff --git a/docs/User Guide/User Guide/Note Types/Text/Formatting toolbar.md b/docs/User Guide/User Guide/Note Types/Text/Formatting toolbar.mdindex 641f0bd99c..7586d847f2 100644--- a/docs/User Guide/User Guide/Note Types/Text/Formatting toolbar.md+++ b/docs/User Guide/User Guide/Note Types/Text/Formatting toolbar.md@@ -10,17 +10,17 @@ The floating bar is a more minimalist option, in which the formatting is hidden### Block-level popupThe first popup is the block-level popup. This will appear to the left of the current paragraph you are currently editing, as a sequence of dots:-+Clicking this popup will reveal the formatting options that are specific to the entire paragraph, such as setting a heading, lists, tables, etc.-+### Inline popupThe inline popup appears automatically when selecting a text:-+All the options here apply only to the selected portion of text, such as changing the font size, or making the text bold.@@ -30,6 +30,6 @@ The fixed formatting offers a more traditional editing paradigm, usually usefulAll the options are combined into a single toolbar that will appear as part of the [Ribbon](../../Basic%20Concepts%20and%20Features/UI%20Elements/Ribbon.md).-+By default, if the toolbar does not fit on the screen, the rest of the options will be grouped into a single option at the end. It is possible to display items on multiple lines by checking the corresponding option in the _Formatting toolbar_ section.\ No newline at end of filediff --git a/docs/User Guide/User Guide/Note Types/Text/Formatting toolbar_image.png b/docs/User Guide/User Guide/Note Types/Text/Formatting toolbar_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Note Types/Text/Formatting toolbar_image.pngrename to docs/User Guide/User Guide/Note Types/Text/Formatting toolbar_image.jpgdiff --git a/docs/User Guide/User Guide/Note Types/Text/Images.md b/docs/User Guide/User Guide/Note Types/Text/Images.mdindex b5b76e0723..14cb28a637 100644--- a/docs/User Guide/User Guide/Note Types/Text/Images.md+++ b/docs/User Guide/User Guide/Note Types/Text/Images.md@@ -34,10 +34,10 @@ The first set of options configure the alignment are, in order:| Icon | Option | Preview | Description || --- | --- | --- | --- |-|  | Inline |  | As the name suggests, the name can be put inside a paragraph and moved around similarly as if it was a block of text. Use drag & drop or cut-paste to move it around. |-|  | Centered image |  | The image will be displayed as a block and centered, not allowing text in either the left or right of it. |-|  | Wrap text |  | The image will be displayed to the left or the right of the text. |-|  | Block align |  | Similarly to _Centered image_, the image will be displayed as a block and aligned either to the left or to the right, but not allowing text to flow on either of its sides. |+|  | Inline |  | As the name suggests, the name can be put inside a paragraph and moved around similarly as if it was a block of text. Use drag & drop or cut-paste to move it around. |+|  | Centered image |  | The image will be displayed as a block and centered, not allowing text in either the left or right of it. |+|  | Wrap text |  | The image will be displayed to the left or the right of the text. |+|  | Block align |  | Similarly to _Centered image_, the image will be displayed as a block and aligned either to the left or to the right, but not allowing text to flow on either of its sides. |## Compressiondiff --git a/docs/User Guide/User Guide/Note Types/Text/Lists.md b/docs/User Guide/User Guide/Note Types/Text/Lists.mdindex d52b91096c..1d4c059698 100644--- a/docs/User Guide/User Guide/Note Types/Text/Lists.md+++ b/docs/User Guide/User Guide/Note Types/Text/Lists.md@@ -25,12 +25,12 @@ It possible to add content-level blocks such as headings, code blocks, tables wi| | | || --- | --- | --- |-| 1 |  | First, create a list. |-| 2 |  | Press Enter to create a new list item. |-| 3 |  | Press Backspace to get rid of the bullet point. Notice the cursor position. |-| 4 | <img class="image_resized" style="aspect-ratio:676/112;width:98.29%;" src="10_Lists_image.png" width="676" height="112"> | At this point, insert any desired block-level item such as a code block. |-| 5 | <img class="image_resized" style="aspect-ratio:675/129;width:94.22%;" src="8_Lists_image.png" width="675" height="129"> | To continue with a new bullet point, press Enter until the cursor moves to a new blank position. |-| 6 | <img class="image_resized" style="aspect-ratio:675/129;width:100%;" src="3_Lists_image.png" width="675" height="129"> | Press Enter once more to create the new bullet. |+| 1 |  | First, create a list. |+| 2 |  | Press Enter to create a new list item. |+| 3 |  | Press Backspace to get rid of the bullet point. Notice the cursor position. |+| 4 | <img class="image_resized" style="aspect-ratio:676/112;width:98.29%;" src="10_Lists_image.jpg" width="676" height="112"> | At this point, insert any desired block-level item such as a code block. |+| 5 | <img class="image_resized" style="aspect-ratio:675/129;width:94.22%;" src="8_Lists_image.jpg" width="675" height="129"> | To continue with a new bullet point, press Enter until the cursor moves to a new blank position. |+| 6 | <img class="image_resized" style="aspect-ratio:675/129;width:100%;" src="3_Lists_image.jpg" width="675" height="129"> | Press Enter once more to create the new bullet. |The same principle applies to all three list types (bullet, numbered and to-do).diff --git a/docs/User Guide/User Guide/Theme development/Creating a custom theme.md b/docs/User Guide/User Guide/Theme development/Creating a custom theme.mdindex d3c2c52d6e..271e457d8d 100644--- a/docs/User Guide/User Guide/Theme development/Creating a custom theme.md+++ b/docs/User Guide/User Guide/Theme development/Creating a custom theme.md@@ -5,15 +5,15 @@ Organization is an important aspect of managing a knowledge base. When developinAs such, the first step is to create a new note to gather all the themes.-+## Step 2. Create the theme| | || --- | --- |-|  | Themes are code notes with a special attribute. Start by creating a new code note. |-|  | Then change the note type to a CSS code. |-|  | In the _Owned Attributes_ section define the `#appTheme` attribute to point to any desired name. This is the name that will show up in the appearance section in settings. |+|  | Themes are code notes with a special attribute. Start by creating a new code note. |+|  | Then change the note type to a CSS code. |+|  | In the _Owned Attributes_ section define the `#appTheme` attribute to point to any desired name. This is the name that will show up in the appearance section in settings. |## Step 3. Define the theme's CSS@@ -31,11 +31,11 @@ To alter the different variables of the theme:Refresh the application (Ctrl+Shift+R is a good way to do so) and go to settings. You should see the newly created theme:-+Afterwards the application will refresh itself with the new theme:-+Do note that the theme will be based off of the legacy theme. To override that and base the theme on the new TriliumNext theme, see: [Theme base (legacy vs. next)](Customize%20the%20Next%20theme.md)diff --git a/docs/User Guide/User Guide/Theme development/Creating a custom theme_1_Creating a custom theme_im.png b/docs/User Guide/User Guide/Theme development/Creating a custom theme_1_Creating a custom theme_im.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Theme development/Creating a custom theme_1_Creating a custom theme_im.pngrename to docs/User Guide/User Guide/Theme development/Creating a custom theme_1_Creating a custom theme_im.jpgdiff --git a/docs/User Guide/User Guide/Theme development/Creating a custom theme_2_Creating a custom theme_im.png b/docs/User Guide/User Guide/Theme development/Creating a custom theme_2_Creating a custom theme_im.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Theme development/Creating a custom theme_2_Creating a custom theme_im.pngrename to docs/User Guide/User Guide/Theme development/Creating a custom theme_2_Creating a custom theme_im.jpgdiff --git a/docs/User Guide/User Guide/Theme development/Creating a custom theme_3_Creating a custom theme_im.png b/docs/User Guide/User Guide/Theme development/Creating a custom theme_3_Creating a custom theme_im.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Theme development/Creating a custom theme_3_Creating a custom theme_im.pngrename to docs/User Guide/User Guide/Theme development/Creating a custom theme_3_Creating a custom theme_im.jpgdiff --git a/docs/User Guide/User Guide/Theme development/Creating a custom theme_4_Creating a custom theme_im.png b/docs/User Guide/User Guide/Theme development/Creating a custom theme_4_Creating a custom theme_im.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Theme development/Creating a custom theme_4_Creating a custom theme_im.pngrename to docs/User Guide/User Guide/Theme development/Creating a custom theme_4_Creating a custom theme_im.jpgdiff --git a/docs/User Guide/User Guide/Theme development/Creating a custom theme_5_Creating a custom theme_im.png b/docs/User Guide/User Guide/Theme development/Creating a custom theme_5_Creating a custom theme_im.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Theme development/Creating a custom theme_5_Creating a custom theme_im.pngrename to docs/User Guide/User Guide/Theme development/Creating a custom theme_5_Creating a custom theme_im.jpgdiff --git a/docs/User Guide/User Guide/Theme development/Creating a custom theme_Creating a custom theme_im.png b/docs/User Guide/User Guide/Theme development/Creating a custom theme_Creating a custom theme_im.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Theme development/Creating a custom theme_Creating a custom theme_im.pngrename to docs/User Guide/User Guide/Theme development/Creating a custom theme_Creating a custom theme_im.jpgdiff --git a/docs/User Guide/User Guide/Troubleshooting/Anonymized Database.md b/docs/User Guide/User Guide/Troubleshooting/Anonymized Database.mdindex 051a28a83d..94f6abb468 100644--- a/docs/User Guide/User Guide/Troubleshooting/Anonymized Database.md+++ b/docs/User Guide/User Guide/Troubleshooting/Anonymized Database.md@@ -1,5 +1,5 @@# Anonymized Database-+In certain scenarios, understanding the structure of a database is crucial for troubleshooting issues. However, sharing your actual [database](../Advanced%20Usage/Database.md) file with personal notes is not advisable. To address this, Trilium offers a feature to anonymize the database. This feature can be accessed via Menu -> Options -> Advanced tab.diff --git a/docs/User Guide/User Guide/Troubleshooting/Anonymized Database_image.png b/docs/User Guide/User Guide/Troubleshooting/Anonymized Database_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Troubleshooting/Anonymized Database_image.pngrename to docs/User Guide/User Guide/Troubleshooting/Anonymized Database_image.jpgdiff --git a/docs/User Guide/User Guide/Troubleshooting/Error logs/Frontend logs.md b/docs/User Guide/User Guide/Troubleshooting/Error logs/Frontend logs.mdindex 60b724a711..acba08dd49 100644--- a/docs/User Guide/User Guide/Troubleshooting/Error logs/Frontend logs.md+++ b/docs/User Guide/User Guide/Troubleshooting/Error logs/Frontend logs.md@@ -10,6 +10,6 @@ If that doesn't work, then:Once you have Dev Tools open, click on "Console" tab:-+Copy-paste (or screenshot) the logs. It's better to provide not just errors, but the whole log, which might provide context while analyzing the bug.\ No newline at end of filediff --git a/docs/User Guide/User Guide/Troubleshooting/Error logs/Frontend logs_image.png b/docs/User Guide/User Guide/Troubleshooting/Error logs/Frontend logs_image.jpgsimilarity index 100%rename from docs/User Guide/User Guide/Troubleshooting/Error logs/Frontend logs_image.pngrename to docs/User Guide/User Guide/Troubleshooting/Error logs/Frontend logs_image.jpg