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-guide): document links to a tab
Elian Dorand0416f95a2bf
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Block references.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Block references.htmlindex a8d6d61fad..8770f3cae8 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Block references.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Block references.html@@ -14,6 +14,8 @@a selection. The referenced blocks flash briefly.</li><li>Go to the note where to insert the link and press <kbd>Ctrl</kbd>+<kbd>V</kbd>.</li></ol>+<p>Inside a <a class="reference-link" href="#root/_help_EK2ckIZ74tbT">Content tabs</a> block,+ the reference points to the whole block. To link to a single tab, use <em>Copy link to tab</em> instead.</p><p>The link shows the title of the note, followed by the beginning of thereferenced text. A link to blocks of the same note shows only the beginningof the referenced text.</p>diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Content tabs.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Content tabs.htmlindex 007bab1a3e..4e2c079f47 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Content tabs.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Content tabs.html@@ -30,6 +30,8 @@the whole block.</li><li><em>Move tab left</em> and <em>Move tab right</em> change the order of thetabs.</li>+ <li><em>Copy link to tab</em> copies a link to the current tab, as described+ below.</li></ul><p>The tab that is showing is not saved with the note: every tabs block openson its first tab.</p>@@ -42,6 +44,22 @@<li>To move between the titles of a block, use the arrow keys, <kbd>Home</kbd> and <kbd>End</kbd>.</li></ul><p>A tab without a title shows “Tab title” in place of one.</p>+<h2>Linking to a tab</h2>+<p>A link can point to a single tab, much like a link to a block (see <a class="reference-link"+ href="#root/_help_klC3ilXa9kUE">Block references</a>):</p>+<ol>+ <li>Place the cursor in the tab, either in its title or in its panel.</li>+ <li>Press <em>Copy link to tab</em> in the toolbar of the tabs block. Alternatively,+ right-click the text and select <em>Copy</em> → <em>Copy link to this tab</em>.+ The tab flashes briefly.</li>+ <li>Go to the note where to insert the link and press <kbd>Ctrl</kbd>+<kbd>V</kbd>.</li>+</ol>+<p>The link shows the title of the note, followed by the title of the tab.+ Clicking it opens the note, shows the tab and flashes it. As with any block+ reference, the link can be turned into an <a class="reference-link" href="#root/_help_nBAXQFj20hS1">Include Note</a> that+ shows only that tab.</p>+<p>Links to a tab can be copied only from a note being edited. On a <a href="#root/_help_R9pX4DGra2Vt">shared page</a>,+ such a link opens the whole note.</p><h2>Content in hidden tabs</h2><p>Content inside a tab that is not showing is still reachable (both whileediting and while reading). The tab that holds it is shown when:</p>diff --git a/docs/User Guide/User Guide/Note Types/Text/Block references.md b/docs/User Guide/User Guide/Note Types/Text/Block references.mdindex 3f4abd8eaa..7ce99c500a 100644--- a/docs/User Guide/User Guide/Note Types/Text/Block references.md+++ b/docs/User Guide/User Guide/Note Types/Text/Block references.md@@ -8,6 +8,8 @@ Block references are [links](Links.md) to a block of a text note, such as a para3. Select _Copy reference to this block_, or _Copy reference to these blocks_ for a selection. The referenced blocks flash briefly.4. Go to the note where to insert the link and press <kbd>Ctrl</kbd>+<kbd>V</kbd>.+Inside a <a class="reference-link" href="Content%20tabs.md">Content tabs</a> block, the reference points to the whole block. To link to a single tab, use _Copy link to tab_ instead.+The link shows the title of the note, followed by the beginning of the referenced text. A link to blocks of the same note shows only the beginning of the referenced text.The _Paste_ submenu of the context menu offers two more ways to insert a copied reference:diff --git a/docs/User Guide/User Guide/Note Types/Text/Content tabs.md b/docs/User Guide/User Guide/Note Types/Text/Content tabs.mdindex d539cd0062..d258c66fb9 100644--- a/docs/User Guide/User Guide/Note Types/Text/Content tabs.md+++ b/docs/User Guide/User Guide/Note Types/Text/Content tabs.md@@ -23,6 +23,7 @@ While the cursor is inside a tabs block, a toolbar appears above it with the fol* _Add tab_ inserts a tab after the current one and selects its title.* _Remove tab_ removes the current tab. Removing the last tab removes the whole block.* _Move tab left_ and _Move tab right_ change the order of the tabs.+* _Copy link to tab_ copies a link to the current tab, as described below.The tab that is showing is not saved with the note: every tabs block opens on its first tab.@@ -35,6 +36,18 @@ In <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/NoteA tab without a title shows “Tab title” in place of one.+## Linking to a tab++A link can point to a single tab, much like a link to a block (see <a class="reference-link" href="Block%20references.md">Block references</a>):++1. Place the cursor in the tab, either in its title or in its panel.+2. Press _Copy link to tab_ in the toolbar of the tabs block. Alternatively, right-click the text and select _Copy_ → _Copy link to this tab_. The tab flashes briefly.+3. Go to the note where to insert the link and press <kbd>Ctrl</kbd>+<kbd>V</kbd>.++The link shows the title of the note, followed by the title of the tab. Clicking it opens the note, shows the tab and flashes it. As with any block reference, the link can be turned into an <a class="reference-link" href="Include%20Note.md">Include Note</a> that shows only that tab.++Links to a tab can be copied only from a note being edited. On a [shared page](../../Advanced%20Usage/Sharing.md), such a link opens the whole note.+## Content in hidden tabsContent inside a tab that is not showing is still reachable (both while editing and while reading). The tab that holds it is shown when: