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): improve documentation on automatic replacements
Elian Doranbfe934255bea
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections.htmlindex c5011f2745..f13df500a9 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections.html@@ -5,8 +5,8 @@<table><thead><tr>- <th> </th>- <th> </th>+ <th></th>+ <th></th></tr></thead><tbody>@@ -55,7 +55,7 @@<td><a class="reference-link" href="#root/_help_81SGnPGMk7Xc">Geo Map</a> <br>which displays a geographical map in which the notes are represented aspins on the map. New markers can be easily added by pointing on the map.- In addition <a href="#root/_help_C2H9HK4BzwG7">shapes </a>such as paths,+ In addition <a href="#root/_help_C2H9HK4BzwG7">shapes</a> such as paths,rectangles and circles can be added, as well as GPX tracks.</td></tr><tr>diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Geo Map.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Geo Map.htmlindex efd85b8e66..1bcd630afa 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Geo Map.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Geo Map.html@@ -213,8 +213,10 @@<h2>Adding a marker using the map</h2><h3>Adding a new note using the plus button</h3><ol>- <li>To create a marker, first navigate to the desired point on the map. Then- press the <em>Add marker</em> button at the center-bottom of the map.</li>+ <li>+ <p>To create a marker, first navigate to the desired point on the map. Then+ press the <em>Add marker</em> button at the center-bottom of the map.</p>+ </li><li><p>Once pressed, the map will enter in the insert mode, as illustrated bythe notification. Additionally, a preview of the marker will be shown at@@ -222,8 +224,10 @@<p>Simply click the point on the map where to place the marker. To cancel,press either the Escape key or press again the <em>Add marker</em> button.</p></li>- <li>Once clicked, the marker will show up on the map and a popup will show- to the right with the title already selected to be changed.</li>+ <li>+ <p>Once clicked, the marker will show up on the map and a popup will show+ to the right with the title already selected to be changed.</p>+ </li></ol><h3>Adding a new note using the contextual menu</h3><ol>diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Geo Map/Drawing shapes.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Geo Map/Drawing shapes.htmlindex 22c3473327..853c807527 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Geo Map/Drawing shapes.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Geo Map/Drawing shapes.html@@ -15,10 +15,9 @@The button stays held down while the tool is armed, and a notificationdescribes what to do.</li><li>Click on the map once for each point. The shape is previewed as it grows.</li>- <li>Finish it by pressing <kbd spellcheck="false">Enter</kbd>. A path can also- be finished by clicking its last point again, and an area by clicking the- corner it started from. A path needs at least two points and an area at- least three.</li>+ <li>Finish it by pressing <kbd>Enter</kbd>. A path can also be finished by+ clicking its last point again, and an area by clicking the corner it started+ from. A path needs at least two points and an area at least three.</li></ol><h3>Drawing a rectangle or a circle</h3><ol>@@ -30,8 +29,8 @@on mobile and other touch-based apps.</li></ol><h3>Finishing and cancelling</h3>-<p>To give up on a shape while drawing it, press <kbd spellcheck="false">Escape</kbd> or- press the tool's button again. Whatever has been drawn so far is discarded.</p>+<p>To give up on a shape while drawing it, press <kbd>Escape</kbd> or press+ the tool's button again. Whatever has been drawn so far is discarded.</p><p>The tool is deactivated once a shape is finished, so drawing a secondshape requires another button press.</p><h2>Interaction</h2>@@ -41,9 +40,7 @@<p>Clicking a shape opens the standard panel which allows changing the title,the content and with buttons to open the note or remove it.</p><ul>- <li>- <p>When clicking, a marker takes priority over the shape.</p>- </li>+ <li>When clicking, a marker takes priority over the shape.</li></ul></li><li>diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Kanban Board.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Kanban Board.htmlindex a7a6412c20..aa7df486c3 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Kanban Board.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Kanban Board.html@@ -159,12 +159,18 @@</ul><p>To do so:</p><ol>- <li>First, create a Kanban board from scratch and not a template:</li>- <li>Assign <code spellcheck="false">#viewType=board #hidePromotedAttributes</code> to- emulate the default template.</li>- <li>Set <code spellcheck="false">#board:groupBy</code> to the name of a relation- to group by, <strong>including the</strong> <code spellcheck="false">~</code> <strong>prefix</strong> (e.g. <code- spellcheck="false">~status</code>).</li>+ <li>+ <p>First, create a Kanban board from scratch and not a template:</p>+ </li>+ <li>+ <p>Assign <code spellcheck="false">#viewType=board #hidePromotedAttributes</code> to+ emulate the default template.</p>+ </li>+ <li>+ <p>Set <code spellcheck="false">#board:groupBy</code> to the name of a relation+ to group by, <strong>including the</strong> <code spellcheck="false">~</code> <strong>prefix</strong> (e.g. <code+ spellcheck="false">~status</code>).</p>+ </li><li><p>Optionally, use <a class="reference-link" href="#root/_help_OFXdgB2nNk1F">Promoted Attributes</a> foreasy status change within the note:</p><pre><code class="language-text-x-trilium-auto">#relation:status(inheritable)="promoted,alias=Status,single"</code></pre>diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types.htmlindex 5aaa64c91d..e3f70e8cbd 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types.html@@ -82,7 +82,7 @@<td><a class="reference-link" href="#root/_help_GTwFsgaA0lCt">Collections</a></td><td>Displays the children of the note either as a grid, a list, or for a more- specialized case: a calendar. + specialized case: a calendar. <br><br>Generally useful for easy reading of short notes.</td></tr>diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Code.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Code.htmlindex 5c1fcb96b8..9966c50398 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Code.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Code.html@@ -6,7 +6,7 @@<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"+ <li>we call such JavaScript code notes "scripts" – see <a class="reference-link"href="#root/_help_CdNpE2pqjmI6">Scripting</a></li></ul>@@ -98,4 +98,14 @@us know and we might consider adding it to the set of default themes. Thereis no possibility of adding new themes (at least for now), since the themesare defined in JavaScript and not at CSS level.</p>-</aside>\ No newline at end of file+</aside>+<h2>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 note, those are <em>font ligature</em>: the default monospace font+ draws certain character pairs as a single symbol. The underlying text is+ not changed by Trilium (unlike text note which have <a class="reference-link"+ href="#root/_help_oI7GoyilXXAr">Automatic replacements</a>), 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>\ No newline at end of filediff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text.htmlindex 83ea3346a2..6960acbbeb 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text.html@@ -129,7 +129,7 @@ class="table"><td><ul><li>Symbols</li>- <li><a class="reference-link" href="#root/_help_YfYAtQBcfo5V">[missing note]</a>+ <li><a class="reference-link" href="#root/_help_YfYAtQBcfo5V">Math Equations</a></li><li>Mermaid diagrams</li><li>Horizontal ruler</li>@@ -138,7 +138,7 @@ class="table"></td></tr><tr>- <td><a class="reference-link" href="#root/_help_dEHYtoWWi8ct">[missing note]</a>+ <td><a class="reference-link" href="#root/_help_dEHYtoWWi8ct">Other features</a></td><td><ul>@@ -153,7 +153,7 @@ class="table"></td></tr><tr>- <td><a class="reference-link" href="#root/_help_gLt3vA97tMcp">[missing note]</a>+ <td><a class="reference-link" href="#root/_help_gLt3vA97tMcp">Premium features</a></td><td><ul>@@ -173,7 +173,7 @@ class="table"><p>Text notes are usually opened in edit mode. However, they may open inread-only mode if the note is too big or the note is explicitly markedas read-only. For more information, see <a class="reference-link"- href="#root/_help_CoFPLs3dRlXc">[missing note]</a>.</p>+ href="#root/_help_CoFPLs3dRlXc">Read-Only Notes</a>.</p><h2>Keyboard shortcuts</h2><p>There are numerous keyboard shortcuts to format the text without havingto use the mouse. For a reference of all the key combinations, see <a@@ -182,13 +182,13 @@ class="table">an alternative to the keyboard shortcuts.</p><h2>Content width</h2><p>For readability purposes on wider screens, the width of text notes is- limited via a configurable option. See <a class="reference-link" href="#root/_help_t596jLvPrqkS">[missing note]</a> for+ limited via a configurable option. See <a class="reference-link" href="#root/_help_t596jLvPrqkS">Content width</a> formore information.</p><h2>Converting to a Markdown note</h2><p>Text notes can be converted to <a class="reference-link" href="#root/_help_6RM1Q7ppFVoj">Markdown</a> notes.See <a class="reference-link" href="#root/_help_jludwdW7N4hg">Converting between note types</a>.</p><h2>Technical details</h2><p>For the text editing functionality, Trilium uses a commercial product- (with an open-source base) called <a class="reference-link" href="#root/_help_MI26XDLSAlCD">[missing note]</a>.+ (with an open-source base) called <a class="reference-link" href="#root/_help_MI26XDLSAlCD">CKEditor</a>.This brings the benefit of having a powerful WYSIWYG (What You See Is WhatYou Get) editor.</p>\ No newline at end of filediff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Automatic replacements.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Automatic replacements.htmlindex eba644b12b..cfa1db2ce7 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Automatic replacements.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Automatic replacements.html@@ -5,23 +5,25 @@you <code spellcheck="false">…</code>, and <code spellcheck="false">"quote"</code> givesyou <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+ and pasted text is never affected, only text you type. If you have pasteda code snippet, or written one inside a code block, its characters areleft exactly as they are.</p>+<h3>Undoing a replacement</h3><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.+ <li>Pressing <kbd spellcheck="false">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>+ <li>Note that this consumes the undo, so a further <kbd spellcheck="false">Ctrl</kbd>+<kbd+ spellcheck="false">Z</kbd> might delete your typed text.</li>+ <li>Pressing <kbd spellcheck="false">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>+ <li>Pressing <kbd spellcheck="false">Ctrl</kbd>+<kbd spellcheck="false">Z</kbd>,+ which works even after pressing space.</li></ul>+<h3>Replacement groups & configuration</h3><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><figureclass="table">@@ -66,23 +68,23 @@ class="table"><h2>Quotation marks</h2><p>Quotation marks are configured separately from the rest, with one settingfor 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+ key, because which pair belongs on which key differs between conventions:+ British typography traditionally sets a quotation in <code spellcheck="false">‘…’</code> whereAmerican 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 <codespellcheck="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>+ See <a class="reference-link" href="#root/_help_veGu4faJErEM">Content language & Right-to-left support</a> 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+ <li>A specific pair<em>: </em><code spellcheck="false">“…”</code>, <code spellcheck="false">‘…’</code>, <codespellcheck="false">„…“</code>, <code spellcheck="false">„…”</code>, <codespellcheck="false">«…»</code>, <code spellcheck="false">« … »</code>, <codespellcheck="false">‹…›</code>, <code spellcheck="false">「…」</code>, <code- spellcheck="false">『…』</code>. Choosing one applies it to every note, whatever- language it is written in.</li>+ spellcheck="false">『…』</code>. Choosing one applies it to every note, regardless+ of its content language.</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>.@@ -93,7 +95,7 @@ class="table">— a <code spellcheck="false">TN</code> replacement does not rewrite the endof <code spellcheck="false">BTN</code>, and <code spellcheck="false">TNT</code> canstill be typed.</p>-<p>Capitalisation follows what you type, unless the replacement has capitals+<p>Capitalization follows what you type, unless the replacement has capitalsof its own:</p><figure class="table"><table>@@ -123,21 +125,28 @@ class="table"></td><td><code spellcheck="false">TN</code> or <code spellcheck="false">tn</code></td>- <td><code spellcheck="false">Trilium Notes</code> (unchanged — it has capitals)</td>+ <td><code spellcheck="false">Trilium Notes</code> (unchanged, it has capitals)</td></tr></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>+<p>Of note:</p>+<ul>+ <li>The text to replace is matched literally; it is not a pattern.</li>+ <li>Typing a "text to replace" that already exists in the list of replacements+ will update the existing one instead. It's not possible to have multiple+ replacements for the same text.</li>+ <li>The same “text to replace” with different capitalization (e.g. <code spellcheck="false">TN</code> and <code+ spellcheck="false">tn</code> co-existing) doesn't work because it would+ interfere with the capitalization rules above.</li>+</ul><h2>Characters that only look replaced (ligatures)</h2><p>If you see <code spellcheck="false">!=</code> displayed as <code spellcheck="false">≠</code> or <codespellcheck="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>+ a code block, that is not a replacement since replacements never run there+ (unless a code block is applied to an existing text). 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>\ No newline at end of filediff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Content language & Right-to-left support.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Content language & Right-to-left support.htmlindex 054d4474f2..983c55069e 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Content language & Right-to-left support.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Content language & Right-to-left support.html@@ -9,7 +9,9 @@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>+ use <code spellcheck="false">«text»</code>). This applies only if <a+ class="reference-link" href="#root/_help_4TIF1oA4VQRO">Options</a> → <em>Text</em> → <em>Single/Double quotation marks</em> is+ set to <em>Based on note's content language</em>.</li><li>Which languages are offered by the <a class="reference-link" href="#root/_help_VRoP0g1uHHc2">In-editor AI assistant</a> fortranslation.</li></ul>diff --git a/docs/Developer Guide/Developer Guide/Dependencies/CKEditor/Differences from upstream.md b/docs/Developer Guide/Developer Guide/Dependencies/CKEditor/Differences from upstream.mdindex b4e6fe8ecf..32ffef24c6 100644--- a/docs/Developer Guide/Developer Guide/Dependencies/CKEditor/Differences from upstream.md+++ b/docs/Developer Guide/Developer Guide/Dependencies/CKEditor/Differences from upstream.md@@ -1,5 +1,5 @@# Differences from upstream-* Embeds [`~~isaul32/ckeditor5-math~~`](https://github.com/isaul32/ckeditor5-math) <a class="reference-link" href="ckeditor5-math.md">ckeditor5-math</a>, which is a third-party plugin for adding math support. CKEditor itself also has a [math plugin](https://ckeditor.com/docs/ckeditor5/latest/features/math-equations.html) with MathType and ChemType but it's premium-only.+* Embeds [`~~isaul32/ckeditor5-math~~`](https://github.com/isaul32/ckeditor5-math) <a class="reference-link" href="ckeditor5-math.md">ckeditor5-math</a>, which is a third-party plugin for adding math support. CKEditor itself also has a [math plugin](https://ckeditor.com/docs/ckeditor5/latest/features/math-equations.html) with MathType and ChemType but it's premium-only.* Zadam left a TODO in `findandreplaceUI`: `// FIXME: keyboard shortcut doesn't work:` [`https://github.com/ckeditor/ckeditor5/issues/10645`](https://github.com/ckeditor/ckeditor5/issues/10645)* `packages\ckeditor5-build-balloon-block\src\mention_customization.js` introduces note insertion via `@` character.diff --git a/docs/User Guide/User Guide/Collections/Geo Map/Drawing shapes.md b/docs/User Guide/User Guide/Collections/Geo Map/Drawing shapes.mdindex 91a352bb5b..77da8682b8 100644--- a/docs/User Guide/User Guide/Collections/Geo Map/Drawing shapes.md+++ b/docs/User Guide/User Guide/Collections/Geo Map/Drawing shapes.md@@ -15,7 +15,7 @@ Once a shape is drawn, it cannot be moved or modified. To do so, simply remove t1. Press the _Draw a path on the map_ or _Draw an area on the map_ button. The button stays held down while the tool is armed, and a notification describes what to do.2. Click on the map once for each point. The shape is previewed as it grows.-3. Finish it by pressing <kbd spellcheck="false">Enter</kbd>. A path can also be finished by clicking its last point again, and an area by clicking the corner it started from. A path needs at least two points and an area at least three.+3. Finish it by pressing <kbd>Enter</kbd>. A path can also be finished by clicking its last point again, and an area by clicking the corner it started from. A path needs at least two points and an area at least three.### Drawing a rectangle or a circle@@ -25,7 +25,7 @@ Once a shape is drawn, it cannot be moved or modified. To do so, simply remove t### Finishing and cancelling-To give up on a shape while drawing it, press <kbd spellcheck="false">Escape</kbd> or press the tool's button again. Whatever has been drawn so far is discarded.+To give up on a shape while drawing it, press <kbd>Escape</kbd> or press the tool's button again. Whatever has been drawn so far is discarded.The tool is deactivated once a shape is finished, so drawing a second shape requires another button press.diff --git a/docs/User Guide/User Guide/Note Types.md b/docs/User Guide/User Guide/Note Types.mdindex ba5481278d..03b324c744 100644--- a/docs/User Guide/User Guide/Note Types.md+++ b/docs/User Guide/User Guide/Note Types.md@@ -33,7 +33,7 @@ The following note types are supported by Trilium:| <a class="reference-link" href="Note%20Types/Relation%20Map.md">Relation Map</a> | Allows easy creation of notes and relations between them. Can be used for mainly relational data such as a family tree. || <a class="reference-link" href="Note%20Types/Note%20Map.md">Note Map</a> | Displays the relationships between the notes, whether via relations or their hierarchical structure. || <a class="reference-link" href="Note%20Types/Render%20Note.md">Render Note</a> | Used in <a class="reference-link" href="Scripting.md">Scripting</a>, it displays the HTML content of another note. This allows displaying any kind of content, provided there is a script behind it to generate it. |-| <a class="reference-link" href="Collections.md">Collections</a> | Displays the children of the note either as a grid, a list, or for a more specialized case: a calendar. <br> <br>Generally useful for easy reading of short notes. |+| <a class="reference-link" href="Collections.md">Collections</a> | Displays the children of the note either as a grid, a list, or for a more specialized case: a calendar. <br> <br>Generally useful for easy reading of short notes. || <a class="reference-link" href="Note%20Types/Mermaid%20Diagrams.md">Mermaid Diagrams</a> | Displays diagrams such as bar charts, flow charts, state diagrams, etc. Requires a bit of technical knowledge since the diagrams are written in a specialized format. || <a class="reference-link" href="Note%20Types/Canvas.md">Canvas</a> | Allows easy drawing of sketches, diagrams, handwritten content. Uses the same technology behind [excalidraw.com](https://excalidraw.com). || <a class="reference-link" href="Note%20Types/Web%20View.md">Web View</a> | Displays the content of an external web page, similar to a browser. |diff --git a/docs/User Guide/User Guide/Note Types/Code.md b/docs/User Guide/User Guide/Note Types/Code.mdindex 0ea5c843ac..937426bba3 100644--- a/docs/User Guide/User Guide/Note Types/Code.md+++ b/docs/User Guide/User Guide/Note Types/Code.md@@ -5,7 +5,7 @@ This can be useful for a few things:* computer programmers can store code snippets as notes with syntax highlighting* JavaScript code notes can be executed inside Trilium for some extra functionality- * we call such JavaScript code notes "scripts" - see <a class="reference-link" href="../Scripting.md">Scripting</a>+ * we call such JavaScript code notes "scripts" – see <a class="reference-link" href="../Scripting.md">Scripting</a>* JSON, XML etc. can be used as storage for structured data (typically used in conjunction with scripting)For shorter snippets of code that can be embedded in [Text](Text.md) notes, see [Code blocks](Text/Developer-specific%20formatting/Code%20blocks.md).@@ -66,4 +66,10 @@ Since Trilium 0.94.0 the colors of code notes can be customized by going <a cla> [!NOTE]> **Why are there only a few themes whereas the code block themes for text notes have a lot?**-> 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.\ No newline at end of file+> 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.++## Ligatures++If you see `!=` displayed as `≠` or `->` as `→` inside a code note, those are _font ligature_: the default monospace font draws certain character pairs as a single symbol. The underlying text is not changed by Trilium (unlike text note which have <a class="reference-link" href="Text/Automatic%20replacements.md">Automatic replacements</a>), and copying it out gives you back `!=` and `->`.++This can be turned off with <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Options.md">Options</a>_→ Appearance → Fonts → Programming ligatures._\ No newline at end of filediff --git a/docs/User Guide/User Guide/Note Types/Text.md b/docs/User Guide/User Guide/Note Types/Text.mdindex 356ba41b1e..cdc25f4188 100644--- a/docs/User Guide/User Guide/Note Types/Text.md+++ b/docs/User Guide/User Guide/Note Types/Text.md@@ -62,14 +62,14 @@ Here's a list of various features supported by text notes:</tr><tr><td><a class="reference-link" href="Text/Insert%20buttons.md">Insert buttons</a></td>- <td><ul><li>Symbols</li><li><a class="reference-link" href="Text/Math%20Equations.md">[missing note]</a></li><li>Mermaid diagrams</li><li>Horizontal ruler</li><li>Page break</li></ul></td>+ <td><ul><li>Symbols</li><li><a class="reference-link" href="Text/Math%20Equations.md">Math Equations</a></li><li>Mermaid diagrams</li><li>Horizontal ruler</li><li>Page break</li></ul></td></tr><tr>- <td><a class="reference-link" href="Text/Other%20features.md">[missing note]</a></td>+ <td><a class="reference-link" href="Text/Other%20features.md">Other features</a></td><td><ul><li>Indentation<ul><li>Markdown import</li></ul></li><li><a class="reference-link" href="Text/Cut%20to%20subnote.md">Cut to subnote</a></li></ul></td></tr><tr>- <td><a class="reference-link" href="Text/Premium%20features.md">[missing note]</a></td>+ <td><a class="reference-link" href="Text/Premium%20features.md">Premium features</a></td><td><ul><li><a class="reference-link" href="Text/Slash%20Commands.md">Slash Commands</a></li><li><a class="reference-link" href="../Advanced%20Usage/Templates.md">Templates</a></li><li><a class="reference-link" href="Text/Format%20Painter.md">Format Painter</a></li></ul></td></tr></tbody>@@ -77,7 +77,7 @@ Here's a list of various features supported by text notes:## Read-Only vs. Editing Mode-Text notes are usually opened in edit mode. However, they may open in read-only mode if the note is too big or the note is explicitly marked as read-only. For more information, see <a class="reference-link" href="../Basic%20Concepts%20and%20Features/Notes/Read-Only%20Notes.md">[missing note]</a>.+Text notes are usually opened in edit mode. However, they may open in read-only mode if the note is too big or the note is explicitly marked as read-only. For more information, see <a class="reference-link" href="../Basic%20Concepts%20and%20Features/Notes/Read-Only%20Notes.md">Read-Only Notes</a>.## Keyboard shortcuts@@ -85,7 +85,7 @@ There are numerous keyboard shortcuts to format the text without having to use t## Content width-For readability purposes on wider screens, the width of text notes is limited via a configurable option. See <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Content%20width.md">[missing note]</a> for more information.+For readability purposes on wider screens, the width of text notes is limited via a configurable option. See <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Content%20width.md">Content width</a> for more information.## Converting to a Markdown note@@ -93,4 +93,4 @@ Text notes can be converted to <a class="reference-link" href="Markdown.md">Mar## Technical details-For the text editing functionality, Trilium uses a commercial product (with an open-source base) called <a class="reference-link" href="../Advanced%20Usage/Technologies%20used/CKEditor.md">[missing note]</a>. This brings the benefit of having a powerful WYSIWYG (What You See Is What You Get) editor.\ No newline at end of file+For the text editing functionality, Trilium uses a commercial product (with an open-source base) called <a class="reference-link" href="../Advanced%20Usage/Technologies%20used/CKEditor.md">CKEditor</a>. This brings the benefit of having a powerful WYSIWYG (What You See Is What You Get) editor.\ No newline at end of filediff --git a/docs/User Guide/User Guide/Note Types/Text/Automatic replacements.md b/docs/User Guide/User Guide/Note Types/Text/Automatic replacements.mdindex cc33f64907..6c775d9a6c 100644--- a/docs/User Guide/User Guide/Note Types/Text/Automatic replacements.md+++ b/docs/User Guide/User Guide/Note Types/Text/Automatic replacements.md@@ -3,14 +3,18 @@As you type in a text note, certain character sequences are replaced with the typographic symbol they represent. Typing `(c)` gives you `©`, `...` gives you `…`, and `"quote"` gives you `“quote”`.-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.+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.++### Undoing a replacementOnce an automatic replacement takes place, it can be undone by:-* Pressing <kbd>Backspace</kbd> immediately after a replacement undoes it and restores what you typed.- * Note that this consumes the undo, so a further <kbd>Ctrl</kbd>+<kbd>Z</kbd> might delete your typed text.- * Pressing <kbd>Space</kbd> or changing the cursor position disables this functionality.-* Pressing <kbd>Ctrl</kbd>+<kbd>Z</kbd>, which works even after pressing space.+* Pressing <kbd spellcheck="false">Backspace</kbd> immediately after a replacement undoes it and restores what you typed.+ * Note that this consumes the undo, so a further <kbd spellcheck="false">Ctrl</kbd>+<kbd spellcheck="false">Z</kbd> might delete your typed text.+ * Pressing <kbd spellcheck="false">Space</kbd> or changing the cursor position disables this functionality.+* Pressing <kbd spellcheck="false">Ctrl</kbd>+<kbd spellcheck="false">Z</kbd>, which works even after pressing space.++### Replacement groups & configurationEach group can be turned off in <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Options.md">Options</a> → _Text notes_ → _Automatic replacements_.@@ -23,13 +27,13 @@ Each group can be turned off in <a class="reference-link" href="../../Basic%20C## Quotation marks-Quotation marks are configured separately from the rest, with one setting for the **double** quote key and one for the **single** quote key, because which pair belongs on which key differs between conventions — British typography traditionally sets a quotation in `‘…’` where American sets it in `“…”`.+Quotation marks are configured separately from the rest, with one setting for the **double** quote key and one for the **single** quote key, because which pair belongs on which key differs between conventions: British typography traditionally sets a quotation in `‘…’` where American sets it in `“…”`.Each offers:-* _Based on the note's content language_ (the default) — English gives `“quote”`, German `„quote“`, French `« quote »`, Japanese `「quote」`. See _Content language & Right-to-left support_ for how a note's language is decided.+* _Based on the note's content language_ (the default) — English gives `“quote”`, German `„quote“`, French `« quote »`, Japanese `「quote」`. See <a class="reference-link" href="Content%20language%20%26%20Right-to-left%20support.md">Content language & Right-to-left support</a> for how a note's language is decided.* _Disabled,_ straight quotes stay straight.-* _A specific pair_ — `“…”`, `‘…’`, `„…“`, `„…”`, `«…»`, `« … »`, `‹…›`, `「…」`, `『…』`. Choosing one applies it to every note, whatever language it is written in.+* A specific pair_:_ `“…”`, `‘…’`, `„…“`, `„…”`, `«…»`, `« … »`, `‹…›`, `「…」`, `『…』`. Choosing one applies it to every note, regardless of its content language.## Custom replacements@@ -37,17 +41,21 @@ You can add your own under <a class="reference-link" href="../../Basic%20ConcepA 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 `TN` replacement does not rewrite the end of `BTN`, and `TNT` can still be typed.-Capitalisation follows what you type, unless the replacement has capitals of its own:+Capitalization follows what you type, unless the replacement has capitals of its own:| **Replacement you defined** | **You type** | **You get** || --- | --- | --- || `teh` → `the` | `teh` / `Teh` / `TEH` | `the` / `The` / `THE` |-| `TN` → `Trilium Notes` | `TN` or `tn` | `Trilium Notes` (unchanged — it has capitals) |+| `TN` → `Trilium Notes` | `TN` or `tn` | `Trilium Notes` (unchanged, it has capitals) |++Of note:-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.+* The text to replace is matched literally; it is not a pattern.+* Typing a "text to replace" that already exists in the list of replacements will update the existing one instead. It's not possible to have multiple replacements for the same text.+* The same “text to replace” with different capitalization (e.g. `TN` and `tn` co-existing) doesn't work because it would interfere with the capitalization rules above.## Characters that only look replaced (ligatures)-If you see `!=` displayed as `≠` or `->` as `→` inside a code block, that is not a replacement — replacements never run there. It is a _font ligature_: the default monospace font draws certain character pairs as a single symbol. The underlying text is unchanged, and copying it out gives you back `!=` and `->`.+If you see `!=` displayed as `≠` or `->` as `→` inside a code block, that is not a replacement since replacements never run there (unless a code block is applied to an existing text). It is a _font ligature_: the default monospace font draws certain character pairs as a single symbol. The underlying text is unchanged, and copying it out gives you back `!=` and `->`.This can be turned off with <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Options.md">Options</a>_→ Appearance → Fonts → Programming ligatures._\ No newline at end of filediff --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 8875942064..9bf5598030 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@@ -5,7 +5,7 @@ The content language determines:* The spell-checking of the note, when in a browser. The desktop installation has a dedicated spellchecking section.* Whether the text is displayed from right-to-left, for languages such as Arabic, Hebrew, etc.-* How typed quotes are [automatically replaced](Automatic%20replacements.md) (e.g. English uses `“text”`, whereas some languages use `«text»`).+* How typed quotes are [automatically replaced](Automatic%20replacements.md) (e.g. English uses `“text”`, whereas some languages use `«text»`). This applies only if <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Options.md">Options</a> → _Text_ → _Single/Double quotation marks_ is set to _Based on note's content language_.* Which languages are offered by the <a class="reference-link" href="In-editor%20AI%20assistant.md">In-editor AI assistant</a> for translation.## Setting the language of a single note