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(user): document linking to bookmarks
Elian Doran15c121f95025
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Bookmarks.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Bookmarks.htmlindex 07943c9924..32231b4d69 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Bookmarks.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Bookmarks.html@@ -1,3 +1,8 @@+<aside class="admonition note">+ <p>Not to be confused with the <a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/iPIMuisry3hd/_help_oSuaNgyyKnhu">Bookmarks</a> concept+ for <a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/_help_iPIMuisry3hd">Text</a> notes+ which acts like anchors, allowing navigation to a particular section.</p>+</aside><p>Frequently used notes can be bookmarked, which will make them appear inthe <a class="reference-link" href="#root/_help_xYmIYSP6wE3F">Launch Bar</a> foreasy access.</p>diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Notes/Printing & Exporting as PDF.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Notes/Printing & Exporting as PDF.htmlindex 95992cf3d4..721b20ed26 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Notes/Printing & Exporting as PDF.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Notes/Printing & Exporting as PDF.html@@ -61,8 +61,7 @@ class="admonition note"><ul><li>To print in landscape mode instead of portrait (useful for big diagramsor slides), add <code spellcheck="false">#printLandscape</code>.</li>- <li- >By default, the resulting PDF will be in Letter format. It is possible+ <li>By default, the resulting PDF will be in Letter format. It is possibleto adjust it to another page size via the <code spellcheck="false">#printPageSize</code> attribute,with one of the following values: <code spellcheck="false">A0</code>,<code@@ -84,8 +83,7 @@ class="admonition note"><ol><li>First create a collection.</li><li>Configure it to use <a class="reference-link" href="#root/_help_mULW0Q3VojwY">List View</a>.</li>- <li- >Print the collection note normally.</li>+ <li>Print the collection note normally.</li></ol><p>The resulting collection will contain all the children of the collection,while maintaining the hierarchy.</p>@@ -102,9 +100,9 @@ class="admonition note">href="#root/_help_4TIF1oA4VQRO">Options</a> and assigning a key combinationfor:</p><ul>- <li class="ck-list-marker-italic"><em>Print Active Note</em>+ <li><em>Print Active Note</em></li>- <li class="ck-list-marker-italic"><em>Export Active Note as PDF</em>+ <li><em>Export Active Note as PDF</em></li></ul><h2>Constraints & limitations</h2>@@ -180,13 +178,12 @@ class="admonition note"><p>To remark:</p><ul><li>Multiple CSS notes can be add by using multiple <code spellcheck="false">~printCss</code> relations.</li>- <li- >If the note pointing to the <code spellcheck="false">printCss</code> doesn't+ <li>If the note pointing to the <code spellcheck="false">printCss</code> doesn'thave the right note type or mime type, it will be ignored.</li>- <li>If migrating from a previous version where <a class="reference-link"- href="#root/_help_AlhDUqhENtH7">Custom app-wide CSS</a>, there's no need for- <code- spellcheck="false">@media print {</code> since the style-sheet is used only for printing.</li>+ <li>If migrating from a previous version where <a class="reference-link"+ href="#root/_help_AlhDUqhENtH7">Custom app-wide CSS</a>, there's no need for+ <code+ spellcheck="false">@media print {</code> since the style-sheet is used only for printing.</li></ul><h2>Under the hood</h2><p>Both printing and exporting as PDF use the same mechanism: a note is rendereddiff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Bookmarks.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Bookmarks.htmlindex bc7b346e33..25cb62942d 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Bookmarks.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Bookmarks.html@@ -1,5 +1,12 @@+<aside class="admonition note">+ <p>Not to be confused with <a href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/wArbEsdSae6g/_help_u3YFHC9tQlpm">bookmarked notes</a>,+ which simply pins a particular note to the <a class="reference-link"+ href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/Vc8PjrjAGuOp/_help_xYmIYSP6wE3F">Launch Bar</a> for+ easy access.</p>+</aside><p>Bookmarks allows creating <a href="#root/_help_QEAPj01N5f7w">links</a> to a certain- part of a note, such as referencing a particular heading.</p>+ part of a note, such as referencing a particular heading or section within+ a note.</p><p>Technically, bookmarks are HTML anchors.</p><p>This feature was introduced in TriliumNext 0.94.0.</p><h2>Interaction</h2>@@ -7,13 +14,16 @@<li>To create a bookmark:<ul><li>Place the cursor at the desired position where to place the bookmark.</li>- <li>Look for the+ <li+ >Look for the<img src="Bookmarks_plus.png"width="15" height="16">button in the <a class="reference-link" href="#root/_help_nRhnJkTT8cPs">Formatting toolbar</a>,and then press the<img src="1_Bookmarks_plus.png"width="12" height="15">button.</li>- </ul>+ <li>Alternatively, use <a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/iPIMuisry3hd/gLt3vA97tMcp/_help_ZlN4nump6EbW">Slash Commands</a> and+ look for <em>Bookmark</em>.</li>+ </ul></li><li>To place a link to a bookmark:<ul>@@ -23,9 +33,41 @@</ul></li></ul>-<h2>Limitations</h2>-<ul>- <li>Currently it's not possible to create a link to a bookmark from a different- note. This functionality will be added after the internal links feature- is enhanced to support bookmarks.</li>-</ul>\ No newline at end of file+<h2>Linking across notes</h2>+<p>Trilium v0.103.0 introduces cross-note bookmarks, which makes it possible+ to create <a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/iPIMuisry3hd/QEAPj01N5f7w/_help_hrZ1D00cLbal">Internal (reference) links</a> which+ point to a specific bookmark in that document.</p>+<p>To do so:</p>+<ol>+ <li>+ <p>First, create a bookmark in the target note using the same process as+ described above.</p>+ </li>+ <li>+ <p>In another note, press <kbd>Ctrl</kbd>+<kbd>L</kbd> to insert an internal+ link. Select the target note containing bookmarks.</p>+ </li>+ <li>+ <p>If the target note contains bookmarks, a section will appear underneath+ the note selector with the list of bookmarks.</p>+ </li>+ <li>+ <p>Add the link normally.</p>+ </li>+</ol>+<p>Clicking on a reference link pointing to a bookmark will automatically+ scroll to the desired section.</p>+<aside class="admonition note">+ <p>For notes created prior to Trilium v0.103.0, you might notice that the+ bookmarks might not be identified:</p>+ <ul>+ <li>+ <p>To fix this, simply go that note and make any change (e.g. inserting a+ space), this will trigger the recalculation of the links.</p>+ </li>+ <li>+ <p>This limitation is intentional in order not to have to re-process all+ the notes, looking for anchors.</p>+ </li>+ </ul>+</aside>\ No newline at end of filediff --git a/docs/Developer Guide/Developer Guide/Documentation.md b/docs/Developer Guide/Developer Guide/Documentation.mdindex 8b2fdc9998..18b7705caf 100644--- a/docs/Developer Guide/Developer Guide/Documentation.md+++ b/docs/Developer Guide/Developer Guide/Documentation.md@@ -1,5 +1,5 @@# Documentation-There are multiple types of documentation for Trilium:<img class="image-style-align-right" src="api/images/flRan24HiJPq/Documentation_image.png" width="205" height="162">+There are multiple types of documentation for Trilium:<img class="image-style-align-right" src="api/images/9AHvpyAG6CLd/Documentation_image.png" width="205" height="162">* The _User Guide_ represents the user-facing documentation. This documentation can be browsed by users directly from within Trilium, by pressing <kbd>F1</kbd>.* The _Developer's Guide_ represents a set of Markdown documents that present the internals of Trilium, for developers.diff --git a/docs/User Guide/!!!meta.json b/docs/User Guide/!!!meta.jsonindex 92af202232..61858de2ff 100644--- a/docs/User Guide/!!!meta.json+++ b/docs/User Guide/!!!meta.json@@ -5413,6 +5413,20 @@"value": "bx bx-bookmarks","isInheritable": false,"position": 30+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "oSuaNgyyKnhu",+ "isInheritable": false,+ "position": 40+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "iPIMuisry3hd",+ "isInheritable": false,+ "position": 50}],"format": "markdown",@@ -7305,6 +7319,34 @@"value": "bookmarks","isInheritable": false,"position": 30+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "u3YFHC9tQlpm",+ "isInheritable": false,+ "position": 40+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "xYmIYSP6wE3F",+ "isInheritable": false,+ "position": 50+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "ZlN4nump6EbW",+ "isInheritable": false,+ "position": 60+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "hrZ1D00cLbal",+ "isInheritable": false,+ "position": 70}],"format": "markdown",diff --git a/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Bookmarks.md b/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Bookmarks.mdindex 332ec24172..321cf83f21 100644--- a/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Bookmarks.md+++ b/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Bookmarks.md@@ -1,4 +1,7 @@# Bookmarks+> [!NOTE]+> Not to be confused with the <a class="reference-link" href="../../Note%20Types/Text/Bookmarks.md">Bookmarks</a> concept for <a class="reference-link" href="../../Note%20Types/Text.md">Text</a> notes which acts like anchors, allowing navigation to a particular section.+Frequently used notes can be bookmarked, which will make them appear in the <a class="reference-link" href="../UI%20Elements/Launch%20Bar.md">Launch Bar</a> for easy access.## Configuring the launch bardiff --git a/docs/User Guide/User Guide/Note Types/Text/Bookmarks.md b/docs/User Guide/User Guide/Note Types/Text/Bookmarks.mdindex e6321b5b89..6a699b139c 100644--- a/docs/User Guide/User Guide/Note Types/Text/Bookmarks.md+++ b/docs/User Guide/User Guide/Note Types/Text/Bookmarks.md@@ -1,5 +1,8 @@# Bookmarks-Bookmarks allows creating [links](Links.md) to a certain part of a note, such as referencing a particular heading.+> [!NOTE]+> Not to be confused with [bookmarked notes](../../Basic%20Concepts%20and%20Features/Navigation/Bookmarks.md), which simply pins a particular note to the <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Launch%20Bar.md">Launch Bar</a> for easy access.++Bookmarks allows creating [links](Links.md) to a certain part of a note, such as referencing a particular heading or section within a note.Technically, bookmarks are HTML anchors.@@ -10,10 +13,26 @@ This feature was introduced in TriliumNext 0.94.0.* To create a bookmark:* Place the cursor at the desired position where to place the bookmark.* Look for the <img src="Bookmarks_plus.png" width="15" height="16"> button in the <a class="reference-link" href="Formatting%20toolbar.md">Formatting toolbar</a>, and then press the <img src="1_Bookmarks_plus.png" width="12" height="15"> button.+ * Alternatively, use <a class="reference-link" href="Premium%20features/Slash%20Commands.md">Slash Commands</a> and look for _Bookmark_.* To place a link to a bookmark:* Place the cursor at the desired position of the link.* From the [link](Links.md) pane, select the _Bookmarks_ section and select the desired bookmark.-## Limitations+## Linking across notes++Trilium v0.103.0 introduces cross-note bookmarks, which makes it possible to create <a class="reference-link" href="Links/Internal%20(reference)%20links.md">Internal (reference) links</a> which point to a specific bookmark in that document.++To do so:++1. First, create a bookmark in the target note using the same process as described above.+2. In another note, press <kbd>Ctrl</kbd>+<kbd>L</kbd> to insert an internal link. Select the target note containing bookmarks.+3. If the target note contains bookmarks, a section will appear underneath the note selector with the list of bookmarks.+4. Add the link normally.++Clicking on a reference link pointing to a bookmark will automatically scroll to the desired section.-* Currently it's not possible to create a link to a bookmark from a different note. This functionality will be added after the internal links feature is enhanced to support bookmarks.\ No newline at end of file+> [!NOTE]+> For notes created prior to Trilium v0.103.0, you might notice that the bookmarks might not be identified:+>+> * To fix this, simply go that note and make any change (e.g. inserting a space), this will trigger the recalculation of the links.+> * This limitation is intentional in order not to have to re-process all the notes, looking for anchors.\ No newline at end of file