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): fix misleading example (closes #9434)
Elian Doranb00eea002162
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Search.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Search.htmlindex 74b8abec8e..22b288cdc8 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Search.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Search.html@@ -42,7 +42,8 @@the search configuration pane.</li><li>The <em>Search & Execute actions</em> button is only relevant if atleast 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.+ <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>@@ -50,7 +51,8 @@<ul><li>For each search option selected, the search configuration will updateto 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>+ <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>@@ -64,8 +66,9 @@<ol><li>The search will not look into the content of the notes, but it will stilllook 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+ >This method can speed up the search considerably for large <a href="#root/_help_wX4HbRucYSDD">databases</a>.</li>+ </ol></li><li>Include archived<ol>@@ -77,9 +80,10 @@<ol><li>Allows changing the criteria for ordering the results, for example toorder 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+ <li+ >It's also possible to change the order (ascending or descending) of theresults.</li>- </ol>+ </ol></li><li>Limit<ol>@@ -93,10 +97,11 @@<li>This will print additional information in the server log (see <aclass="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+ <li+ >This function is especially useful after understanding the search functionalityin detail, in order to determine why a complex search query is not workingas expected.</li>- </ol>+ </ol></li><li>Action<ol>@@ -126,30 +131,34 @@Find notes containing "rings" or "tolkien" in their content.</li><li><code spellcheck="false">towers #book</code>: Combine full-text and attributesearch to find notes containing "towers" and having the "book" label.</li>- <li><code spellcheck="false">towers #book or #author</code>: Search for notes+ <li+ ><code spellcheck="false">towers #book or #author</code>: Search for notescontaining "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>+ <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@@ -168,10 +177,12 @@</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>+ <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>@@ -272,11 +283,13 @@<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>+ <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>@@ -290,7 +303,7 @@<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-#author.title *=* Tolkien</code></pre>+~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>@@ -324,38 +337,43 @@</p><h2>Search Configuration</h2><h3>Parameters</h3>-<table>- <thead>- <tr>- <th>Parameter</th>- <th>Value</th>- <th>Description</th>- </tr>- </thead>- <tbody>- <tr>- <td>MIN_FUZZY_TOKEN_LENGTH</td>- <td>3</td>- <td>Minimum characters for fuzzy matching</td>- </tr>- <tr>- <td>MAX_EDIT_DISTANCE</td>- <td>2</td>- <td>Maximum character changes allowed</td>- </tr>- <tr>- <td>RESULT_SUFFICIENCY_THRESHOLD</td>- <td>5</td>- <td>Minimum exact results before fuzzy fallback</td>- </tr>- <tr>- <td>MAX_CONTENT_SIZE</td>- <td>10MB</td>- <td>Maximum note content size for search processing</td>- </tr>- </tbody>-</table>-+<figure class="table">+ <table>+ <thead>+ <tr>+ <th>Parameter</th>+ <th>Value</th>+ <th>Description</th>+ </tr>+ </thead>+ <tbody>+ <tr>+ <td><code spellcheck="false">MIN_FUZZY_TOKEN_LENGTH</code>+ </td>+ <td>3</td>+ <td>Minimum characters for fuzzy matching</td>+ </tr>+ <tr>+ <td><code spellcheck="false">MAX_EDIT_DISTANCE</code>+ </td>+ <td>2</td>+ <td>Maximum character changes allowed</td>+ </tr>+ <tr>+ <td><code spellcheck="false">RESULT_SUFFICIENCY_THRESHOLD</code>+ </td>+ <td>5</td>+ <td>Minimum exact results before fuzzy fallback</td>+ </tr>+ <tr>+ <td><code spellcheck="false">MAX_CONTENT_SIZE</code>+ </td>+ <td>10MB</td>+ <td>Maximum note content size for search processing</td>+ </tr>+ </tbody>+ </table>+</figure><h3>Limits</h3><ul><li>Searched note content is limited to 10MB per note to prevent performancediff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Spreadsheets.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Spreadsheets.htmlindex 35cf79e72b..5e1a2f4f37 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Spreadsheets.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Spreadsheets.html@@ -24,23 +24,20 @@<li>Microsoft Excel (.xlsx)<ul><li>Preserves basic formatting (fonts, sizes, borders, backgrounds).</li>- <li- >Formulas are preserved, but note that not all Excel functions are supported+ <li>Formulas are preserved, but note that not all Excel functions are supportedand vice-versa with Univer.</li>- <li>Images (cell-bound or floating), without preserving rotation.</li>- <li- >Supports multi-sheets natively.</li>+ <li>Images (cell-bound or floating), without preserving rotation.</li>+ <li>Supports multi-sheets natively.</li></ul>- </li>- <li>Comma-Separated Values (.csv)- <ul>- <li>Since it's a text-based format, any formatting is lost.</li>- <li>Formulas are evaluated and turned into their final value instead.</li>- <li- >Multi-sheets spreadsheets are exported as a single ZIP containing a CSV- file per sheet.</li>+ </li>+ <li>Comma-Separated Values (.csv)+ <ul>+ <li>Since it's a text-based format, any formatting is lost.</li>+ <li>Formulas are evaluated and turned into their final value instead.</li>+ <li>Multi-sheets spreadsheets are exported as a single ZIP containing a CSV+ file per sheet.</li></ul>- </li>+ </li></ul><p>Both <a href="#root/_help_mHbBMPDPkVV5">import and export</a> are supported, asfollows:</p>@@ -52,11 +49,10 @@<li>To avoid this behavior (e.g. to import a .xlsx file as an actual <aclass="reference-link" href="#root/_help_W8vYD3Q1zjCR">File</a>), uncheck the corresponding option in the <a href="#root/_help_mHbBMPDPkVV5">Import dialog</a>.</li>- <li- >Multiple files can be imported at the same time, including a mixture of+ <li>Multiple files can be imported at the same time, including a mixture of.csv and .xlsx files. Folder structure can be preserved by using a .zipfile.</li>- </ul>+ </ul></li><li>Unlike importing, exporting is on a per-note basis:<ul>@@ -85,11 +81,11 @@<ul><li>Since v0.104.0, images that can be either inside a cell or floating above.<ul>- <li>The images are saved as <a class="reference-link" href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/BFs8mudNFgCS/_help_0vhv7lsOLy82">Attachments</a> for+ <li>The images are saved as <a class="reference-link" href="#root/_help_0vhv7lsOLy82">Attachments</a> forperformance reasons.</li><li>The image upload respects the same compression settings as text <a- class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/iPIMuisry3hd/_help_mT0HEkOsz6i1">Images</a>.</li>+ class="reference-link" href="#root/_help_mT0HEkOsz6i1">Images</a>.</li></ul></li><li>Filtering</li>@@ -131,9 +127,8 @@yet:</p><ul><li>Trilium-specific formulas (e.g. to obtain the title of a note).</li>- <li- >User-defined formulas</li>- <li>Cross-workbook calculation</li>+ <li>User-defined formulas</li>+ <li>Cross-workbook calculation</li></ul><p>If you would like us to work on these features, consider <a href="https://triliumnotes.org/en/support-us">supporting us</a>.</p><h3>Mobile support</h3>diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Images.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Images.htmlindex 95d22d3225..c38380185a 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Images.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Images.html@@ -23,82 +23,80 @@</p><h3>Alignment</h3><p>The first set of options configure the alignment are, in order:</p>-<figure-class="table">- <table>- <thead>- <tr>- <th>Icon</th>- <th>Option</th>- <th>Preview</th>- <th>Description</th>- </tr>- </thead>- <tbody>- <tr>- <td>- <img src="5_Images_image.png">- </td>- <td>Inline</td>- <td>- <img src="1_Images_image.png">- </td>- <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>- </tr>- <tr>- <td>- <img src="10_Images_image.png">- </td>- <td>Centered image</td>- <td>- <img src="2_Images_image.png">- </td>- <td>The image will be displayed as a block and centered, not allowing text- in either the left or right of it.</td>- </tr>- <tr>- <td>- <img src="4_Images_image.png">- </td>- <td>Wrap text</td>- <td>- <img src="7_Images_image.png">- </td>- <td>The image will be displayed to the left or the right of the text.</td>- </tr>- <tr>- <td>- <img src="Images_image.png">- </td>- <td>Block align</td>- <td>- <img src="3_Images_image.png">- </td>- <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>- </tr>- </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> → Other.</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>\ No newline at end of file+<table>+ <thead>+ <tr>+ <th>Icon</th>+ <th>Option</th>+ <th>Preview</th>+ <th>Description</th>+ </tr>+ </thead>+ <tbody>+ <tr>+ <td>+ <img src="5_Images_image.png">+ </td>+ <td>Inline</td>+ <td>+ <img src="1_Images_image.png">+ </td>+ <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>+ </tr>+ <tr>+ <td>+ <img src="10_Images_image.png">+ </td>+ <td>Centered image</td>+ <td>+ <img src="2_Images_image.png">+ </td>+ <td>The image will be displayed as a block and centered, not allowing text+ in either the left or right of it.</td>+ </tr>+ <tr>+ <td>+ <img src="4_Images_image.png">+ </td>+ <td>Wrap text</td>+ <td>+ <img src="7_Images_image.png">+ </td>+ <td>The image will be displayed to the left or the right of the text.</td>+ </tr>+ <tr>+ <td>+ <img src="Images_image.png">+ </td>+ <td>Block align</td>+ <td>+ <img src="3_Images_image.png">+ </td>+ <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>+ </tr>+ </tbody>+</table>++<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> → Other.</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>\ No newline at end of filediff --git a/docs/Developer Guide/Developer Guide/Documentation.md b/docs/Developer Guide/Developer Guide/Documentation.mdindex feb3a96c74..ef9c0a3fae 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/rPK7XJzCDrn2/Documentation_image.png" width="205" height="162">+There are multiple types of documentation for Trilium:<img class="image-style-align-right" src="api/images/B6ZgPc6vFDVD/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 2e834472d0..a6087d23cc 100644--- a/docs/User Guide/!!!meta.json+++ b/docs/User Guide/!!!meta.json@@ -11987,30 +11987,30 @@{"type": "relation","name": "internalLink",- "value": "R9pX4DGra2Vt",+ "value": "0vhv7lsOLy82","isInheritable": false,"position": 90},- {- "type": "label",- "name": "iconClass",- "value": "bx bx-table",- "isInheritable": false,- "position": 30- },{"type": "relation","name": "internalLink",- "value": "0vhv7lsOLy82",+ "value": "mT0HEkOsz6i1","isInheritable": false,"position": 100},{"type": "relation","name": "internalLink",- "value": "mT0HEkOsz6i1",+ "value": "R9pX4DGra2Vt","isInheritable": false,"position": 110+ },+ {+ "type": "label",+ "name": "iconClass",+ "value": "bx bx-table",+ "isInheritable": false,+ "position": 30}],"format": "markdown",diff --git a/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Search.md b/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Search.mdindex 86d6ede755..f5b72d913c 100644--- a/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Search.md+++ b/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Search.md@@ -177,7 +177,7 @@ However, common label and relation searches have shortcut syntax:```#publicationYear = 1954-#author.title *=* Tolkien+~author.title *=* Tolkien```### Separating Full-Text and Attribute Parts@@ -229,10 +229,10 @@ You can open Trilium and automatically trigger a search by including the search| Parameter | Value | Description || --- | --- | --- |-| MIN\_FUZZY\_TOKEN\_LENGTH | 3 | Minimum characters for fuzzy matching |-| MAX\_EDIT\_DISTANCE | 2 | Maximum character changes allowed |-| RESULT\_SUFFICIENCY\_THRESHOLD | 5 | Minimum exact results before fuzzy fallback |-| MAX\_CONTENT\_SIZE | 10MB | Maximum note content size for search processing |+| `MIN_FUZZY_TOKEN_LENGTH` | 3 | Minimum characters for fuzzy matching |+| `MAX_EDIT_DISTANCE` | 2 | Maximum character changes allowed |+| `RESULT_SUFFICIENCY_THRESHOLD` | 5 | Minimum exact results before fuzzy fallback |+| `MAX_CONTENT_SIZE` | 10MB | Maximum note content size for search processing |### Limits