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
feat(docs): improve internal links documentation
Elian Doran08a56300b0d5
diff --git a/docs/User Guide/!!!meta.json b/docs/User Guide/!!!meta.jsonindex e0ddcbf464..5eb741f0d7 100644--- a/docs/User Guide/!!!meta.json+++ b/docs/User Guide/!!!meta.json@@ -6100,6 +6100,13 @@"value": "nRhnJkTT8cPs","isInheritable": false,"position": 50+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "oPVyFC7WL2Lp",+ "isInheritable": false,+ "position": 60}],"format": "markdown",@@ -6114,12 +6121,12 @@"dataFileName": "Links_image.png"},{- "attachmentId": "74XnfiCk2y9N",- "title": "create-link-to-note.gif",+ "attachmentId": "4OJh3ujbwosA",+ "title": "image.png","role": "image",- "mime": "image/gif",+ "mime": "image/png","position": 10,- "dataFileName": "Links_create-link-to-note.gif"+ "dataFileName": "1_Links_image.png"},{"attachmentId": "GH0rUFn6UUDY",@@ -6127,7 +6134,7 @@"role": "image","mime": "image/png","position": 10,- "dataFileName": "1_Links_image.png"+ "dataFileName": "2_Links_image.png"},{"attachmentId": "w1jpXjdAuL2B",@@ -6135,7 +6142,7 @@"role": "image","mime": "image/png","position": 10,- "dataFileName": "2_Links_image.png"+ "dataFileName": "3_Links_image.png"}]},diff --git a/docs/User Guide/User Guide/Note Types/Text/1_Links_image.png b/docs/User Guide/User Guide/Note Types/Text/1_Links_image.pngindex 03fdc6792a..1bd071c530 100644Binary files a/docs/User Guide/User Guide/Note Types/Text/1_Links_image.png and b/docs/User Guide/User Guide/Note Types/Text/1_Links_image.png differdiff --git a/docs/User Guide/User Guide/Note Types/Text/2_Links_image.png b/docs/User Guide/User Guide/Note Types/Text/2_Links_image.pngindex 72b2415d5e..03fdc6792a 100644Binary files a/docs/User Guide/User Guide/Note Types/Text/2_Links_image.png and b/docs/User Guide/User Guide/Note Types/Text/2_Links_image.png differdiff --git a/docs/User Guide/User Guide/Note Types/Text/3_Links_image.png b/docs/User Guide/User Guide/Note Types/Text/3_Links_image.pngnew file mode 100644index 0000000000..72b2415d5eBinary files /dev/null and b/docs/User Guide/User Guide/Note Types/Text/3_Links_image.png differdiff --git a/docs/User Guide/User Guide/Note Types/Text/Links.md b/docs/User Guide/User Guide/Note Types/Text/Links.mdindex 39649ff91f..828a88de21 100644--- a/docs/User Guide/User Guide/Note Types/Text/Links.md+++ b/docs/User Guide/User Guide/Note Types/Text/Links.md@@ -5,7 +5,7 @@ An external link is a standard web link targeting for example a website. For exaTo create a link without a custom text:-* Press <img src="1_Links_image.png" width="15" height="16"> in the <a class="reference-link" href="Formatting%20toolbar.md">Formatting toolbar</a>:+* Press <img src="2_Links_image.png" width="15" height="16"> in the <a class="reference-link" href="Formatting%20toolbar.md">Formatting toolbar</a>:* A popup will appear, type or paste the URL in the box.* Press <kbd>Enter</kbd> or the check mark icon to confirm.* Alternatively, press <kbd>Ctrl</kbd>+<kbd>K</kbd> to trigger the aforementioned popup.@@ -21,26 +21,43 @@ Once a link is inserted:* The text inside the link can be changed if needed but the link itself will remain.* To modify the link, click on the link to display the popup and press the <img src="Links_image.png" width="18" height="18"> _Edit link_ button.-* To remove a link, click on it and press the <img src="2_Links_image.png" width="18" height="18"> _Unlink_ button.+* To remove a link, click on it and press the <img src="3_Links_image.png" width="18" height="18"> _Unlink_ button.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".## Internal links to notes-Links to internal notes are created a bit differently. To create link to note at current cursor position, press <kbd>Ctrl</kbd> + <kbd>L</kbd>.+Unlike external notes, internal links (links to other notes) can be created at the current position by :-In the dialog you can see radio button to choose from different types of linking:+1. Pressing <kbd>Ctrl</kbd> + <kbd>L</kbd> or the <img src="1_Links_image.png" width="20" height="17"> button from the <a class="reference-link" href="Formatting%20toolbar.md">Formatting toolbar</a>.+2. Filling in the desired note to link. It's also possible to create notes from this dialog by typing a non-existing note title and selecting _Create and link child note_.-* link title mirrors the note's current title - this is sometimes also called "reference link". Title of such links cannot be changed, instead it is always mirroring the title of linked note. This way the link title is never outdated-* link title can be changed arbitrarily - this is the traditional hyperlink - you link to a particular note and can choose the link title+There are two link types, adjustable when creating the link to the note:-+1. _link title mirrors the note's current title_+ 1. This is sometimes also called "reference link".+ 2. Title of such links cannot be changed, instead it is always mirroring the title of linked note.+ 3. The icon of the note is also displayed.+ 4. The link title will automatically update if the title of the note is changed.+2. _link title can be changed arbitrarily_+ 1. This is the traditional hyperlink, where the text of the link can be different to the note title.-You can follow the note link by double clicking it.+Once an internal link is created:-Alternatively if you only wish to quickly preview the content, you can hover over the link and will see read only preview.+* You can follow the note link by double clicking it.+* Alternatively if you only wish to quickly preview the content, you can hover over the link and will see read only preview.-### In-place linking+## Pasting links++* For internal links (links to notes in Trilium), press Ctrl+C in the <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree.md">Note Tree</a>:+ * Pasting directly in a text note will create a reference link (with an icon to the note and the actual note title).+ * Pasting over an existing text will create a traditional link.+* For external links:+ * Paste the raw URL directly and press space to turn it into a link.+ * Select a text and paste the URL over it to turn that text into a link.+ * If you are pasting a formatted link (e.g. from the a webpage in a browser), simply paste it and it will keep the original text and URL.++## In-place linkingTrilium also provides "inline" linking - type `@` and you'll see an autocomplete, just type few characters from the desired note title, press enter and you have a link.diff --git a/docs/User Guide/User Guide/Note Types/Text/Links_create-link-to-note.gif b/docs/User Guide/User Guide/Note Types/Text/Links_create-link-to-note.gifdeleted file mode 100644index e2e2ab913d..0000000000Binary files a/docs/User Guide/User Guide/Note Types/Text/Links_create-link-to-note.gif and /dev/null differdiff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/Text/1_Links_image.png b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/Text/1_Links_image.pngindex 03fdc6792a..1bd071c530 100644Binary files a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/Text/1_Links_image.png and b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/Text/1_Links_image.png differdiff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/Text/2_Links_image.png b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/Text/2_Links_image.pngindex 72b2415d5e..03fdc6792a 100644Binary files a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/Text/2_Links_image.png and b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/Text/2_Links_image.png differdiff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/Text/3_Links_image.png b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/Text/3_Links_image.pngnew file mode 100644index 0000000000..72b2415d5eBinary files /dev/null and b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/Text/3_Links_image.png differdiff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/Text/Links.html b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/Text/Links.htmlindex 17e3b4c068..5ed5cfeabe 100644--- a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/Text/Links.html+++ b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/Text/Links.html@@ -5,7 +5,7 @@<p>To create a link without a custom text:</p><ul><li>Press- <img src="1_Links_image.png" width="15" height="16">in the <a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/iPIMuisry3hd/_help_nRhnJkTT8cPs">Formatting toolbar</a>:+ <img src="2_Links_image.png" width="15" height="16">in the <a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/iPIMuisry3hd/_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>@@ -32,31 +32,66 @@<imgsrc="Links_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="2_Links_image.png"+ <img src="3_Links_image.png"width="18" height="18"> <em>Unlink</em> button.</li></ul><p>You can follow external link by either double clicking (will open newtab/window) it or right clicking on them and choosing "Open in new tab".</p><h2>Internal links to notes</h2>-<p>Links to internal notes are created a bit differently. To create link- to note at current cursor position, press <kbd>Ctrl</kbd> + <kbd>L</kbd>.</p>-<p>In the dialog you can see radio button to choose from different types- of linking:</p>+<p>Unlike external notes, internal links (links to other notes) can be created+ at the current position by :</p>+<ol>+ <li>Pressing <kbd>Ctrl</kbd> + <kbd>L</kbd> or the+ <img src="1_Links_image.png"+ width="20" height="17">button from the <a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/iPIMuisry3hd/_help_nRhnJkTT8cPs">Formatting toolbar</a>.</li>+ <li>Filling in the desired note to link. It's also possible to create 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, adjustable 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>Title of such links cannot be changed, instead it is always mirroring+ the title of linked note.</li>+ <li>The icon of the note is also displayed.</li>+ <li>The link title will automatically update if the title of the note is changed.</li>+ </ol>+ </li>+ <li><em>link title can be changed arbitrarily</em>+ <ol>+ <li>This is the traditional hyperlink, where the text of the link can be different+ to the note title.</li>+ </ol>+ </li>+</ol>+<p>Once an internal link is created:</p>+<ul>+ <li>You can follow the note link by double clicking it.</li>+ <li>Alternatively if you only wish to quickly preview the content, you can+ hover over the link and will see read only preview.</li>+</ul>+<h2>Pasting links</h2><ul>- <li>link title mirrors the note's current title - this is sometimes also called- "reference link". Title of such links cannot be changed, instead it is- always mirroring the title of linked note. This way the link title is never- outdated</li>- <li>link title can be changed arbitrarily - this is the traditional hyperlink- - you link to a particular note and can choose the link title</li>+ <li>For internal links (links to notes in Trilium), press Ctrl+C in the + <a+ class="reference-link" href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/Vc8PjrjAGuOp/_help_oPVyFC7WL2Lp">Note Tree</a>:+ <ul>+ <li>Pasting directly in a text note will create a reference link (with an+ icon to the note and the actual note title).</li>+ <li>Pasting over an existing text will create a traditional link.</li>+ </ul>+ </li>+ <li>For external links:+ <ul>+ <li>Paste the raw URL directly and press space to turn it into a link.</li>+ <li>Select a text and paste the URL over it to turn that text into a link.</li>+ <li>If you are pasting a formatted link (e.g. from the a webpage in a browser),+ simply paste it and it will keep the original text and URL.</li>+ </ul>+ </li></ul>-<p>- <img src="Links_create-link-to-note.gif">-</p>-<p>You can follow the note link by double clicking it.</p>-<p>Alternatively if you only wish to quickly preview the content, you can- hover over the link and will see read only preview.</p>-<h3>In-place linking</h3>+<h2>In-place linking</h2><p>Trilium also provides "inline" linking - type <code>@</code> and you'llsee an autocomplete, just type few characters from the desired note title,press enter and you have a link.</p>diff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/Text/Links_create-link-to-note.gif b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/Text/Links_create-link-to-note.gifdeleted file mode 100644index e2e2ab913d..0000000000Binary files a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/Text/Links_create-link-to-note.gif and /dev/null differ