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): mention autocomplete
Elian Doranab9b1313b37b
diff --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 45bc73bc1c..6075ee3f32 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,58 +24,54 @@<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>Supports multi-sheets natively.</li>- </ul>+ <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+ <li>Multi-sheets spreadsheets are exported as a single ZIP containing a CSVfile per sheet.</li>- </ul>+ </ul></li></ul>-<p>Both <a href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/_help_mHbBMPDPkVV5">import and export</a> are- supported, as follows:</p>+<p>Both <a href="#root/_help_mHbBMPDPkVV5">import and export</a> are supported, as+ follows:</p><ul><li>To import a file, simply drag it into the <a class="reference-link"- href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/Vc8PjrjAGuOp/_help_oPVyFC7WL2Lp">Note Tree</a> and- it will be converted into a spreadsheet note.+ href="#root/_help_oPVyFC7WL2Lp">Note Tree</a> and it will be converted into+ a spreadsheet note.<ul><li>To avoid this behavior (e.g. to import a .xlsx file as an actual <a- class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/_help_W8vYD3Q1zjCR">File</a>), uncheck the corresponding option in the <a href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/_help_mHbBMPDPkVV5">Import dialog</a>.</li>- <li- >Multiple files can be imported at the same time, including a mixture of+ class="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.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>- <li>In the <a class="reference-link" href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/Vc8PjrjAGuOp/_help_8YBEPzcpUgxw">Note buttons</a>,+ <li>In the <a class="reference-link" href="#root/_help_8YBEPzcpUgxw">Note buttons</a>,choose the <em>Export to Excel</em> or <em>Export to CSV</em> options for the <a- class="reference-link" href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/Vc8PjrjAGuOp/_help_IjZS7iK5EXtb">New Layout</a>.</li>+ class="reference-link" href="#root/_help_IjZS7iK5EXtb">New Layout</a>.</li><li>For the old layout, choose the corresponding buttons in the <a class="reference-link"- href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/Vc8PjrjAGuOp/_help_XpOYSgsLkTJy">Floating buttons</a> area.</li>- <li- >The export is intentionally a different process than the normal + href="#root/_help_XpOYSgsLkTJy">Floating buttons</a> area.</li>+ <li>The export is intentionally a different process than the normal <a- class="reference-link" href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/_help_mHbBMPDPkVV5">Import & Export</a> functionality because it does conversion+ class="reference-link" href="#root/_help_mHbBMPDPkVV5">Import & Export</a> functionality because it does conversionto multiple formats with varying degrees of compatibility.</li>- </ul>+ </ul></li></ul><aside class="admonition important"><p>Import & export for both .xlsx and .csv files are supported on a best-effortbasis. It does not support advanced features (data validation, scripting,- etc.). If you notice a particular issue, it can be <a href="#root/pOsGYCXsbNQG/BgmBlOIl72jZ/_help_wy8So3yZZlH9">reported</a>,+ etc.). If you notice a particular issue, it can be <a href="#root/_help_wy8So3yZZlH9">reported</a>,however all bug reports must contain a sample file in order to be takeninto consideration.</p></aside>@@ -93,18 +89,12 @@Univer at some point. If there is a particular feature that can be addedeasily, it can be discussed over <a href="#root/_help_wy8So3yZZlH9">GitHub Issues</a>.</p><h3>Share functionality</h3>-<p>Spreadsheets can be <a href="#root/pOsGYCXsbNQG/tC7s2alapj8V/_help_R9pX4DGra2Vt">shared</a>,- case in which a best-effort HTML rendering of the spreadsheet is done:</p>+<p>Spreadsheets can be <a href="#root/_help_R9pX4DGra2Vt">shared</a>, case in which+ a best-effort HTML rendering of the spreadsheet is done:</p><ul>- <li>- <p>Preserves basic formatting.</p>- </li>- <li>- <p>Since v0.104.0, properly formats numbers and dates.</p>- </li>- <li>- <p>Cells with formulas display the i</p>- </li>+ <li>Preserves basic formatting.</li>+ <li>Since v0.104.0, properly formats numbers and dates.</li>+ <li>Cells with formulas display the i</li></ul><p>For more advanced use cases, this will most likely not work as intended.Feel free to <a href="#root/_help_wy8So3yZZlH9">report issues</a>, but keep in@@ -123,9 +113,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/Scripting.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting.htmlindex 46f655ee7c..270db82f5a 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting.html@@ -14,8 +14,8 @@</ul><p>So we have frontend and backend, each with their own set of responsibilities,but their common feature is that they both run JavaScript code. Add to- this the fact, that we're able to create JavaScript <a class="reference-link"- href="#root/_help_6f9hih2hXXZk">code notes</a> and we're onto something.</p>+ this the fact, that we're able to create JavaScript <a class="reference-link"+ href="#root/_help_6f9hih2hXXZk">Code</a> and we're onto something.</p><h2>Use cases</h2><ul><li><a class="reference-link" href="#root/_help_TjLYAo3JMO8X">"New Task" launcher button</a>@@ -41,7 +41,19 @@<p>(<code spellcheck="false">#run=frontendStartup</code> does not work for<ahref="#root/_help_RDslemsQ6gCp">Mobile frontend</a>- if you want to have scripts running there, give the- script <code spellcheck="false">#run=mobileStartup</code> label)</p>+ script <code spellcheck="false">#run=mobileStartup</code> label).</p>+<h2>Autocomplete & linting</h2>+<p>Starting with Trilium v0.104.0, frontend scripts, backend scripts and+ render notes benefit from an autocomplete system.</p>+<p>The autocomplete triggers automatically when typing <kbd spellcheck="false">.</kbd> or+ manually by pressing <kbd spellcheck="false">Ctrl</kbd>+<kbd spellcheck="false">Space</kbd>.</p>+<p>In addition to that, the editor will also display syntax errors and warnings+ such as unreachable code.</p>+<aside class="admonition note">+ <p>If you notice a false positive in regards with the errors/warnings reported+ or an incorrect or missing API, feel free to <a href="#root/pOsGYCXsbNQG/BgmBlOIl72jZ/_help_wy8So3yZZlH9">open a issue</a> with+ a code sample.</p>+</aside><h2>More showcases</h2><p>You can see more scripting with explanation in <a class="reference-link"href="#root/_help_5668rwcirq1t">Advanced Showcases</a>.</p>diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting/Script API.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting/Script API.htmlindex aedb4dcfca..8fbb816cec 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting/Script API.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting/Script API.html@@ -1,4 +1,4 @@-<p>tFor <a href="#root/_help_CdNpE2pqjmI6">script code notes</a>, Trilium offers+<p>For <a href="#root/_help_CdNpE2pqjmI6">script code notes</a>, Trilium offersan API that gives them access to various features of the application.</p><p>There are two APIs:</p><ul>diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Troubleshooting/Reporting issues.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Troubleshooting/Reporting issues.htmlindex 20e8aae89f..e1bdc03677 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Troubleshooting/Reporting issues.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Troubleshooting/Reporting issues.html@@ -1,3 +1,4 @@+<p> </p><p>Go to <a href="https://github.com/TriliumNext/Trilium/issues">Issues · TriliumNext/Trilium</a> andpress “New issue”.</p><p>If you are reporting a bug, select “Bug Report” and fill in the details.</p>\ No newline at end of filediff --git a/docs/Developer Guide/Developer Guide/Documentation.md b/docs/Developer Guide/Developer Guide/Documentation.mdindex 6f07db9502..c985b78c7a 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/UZXtmpfMcLAK/Documentation_image.png" width="205" height="162">+There are multiple types of documentation for Trilium:<img class="image-style-align-right" src="api/images/kIBvXjIAvze8/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 3fa36162fc..0258996713 100644--- a/docs/User Guide/!!!meta.json+++ b/docs/User Guide/!!!meta.json@@ -11208,65 +11208,65 @@{"type": "relation","name": "internalLink",- "value": "wy8So3yZZlH9",+ "value": "mHbBMPDPkVV5","isInheritable": false,- "position": 30+ "position": 20},{- "type": "label",- "name": "iconClass",- "value": "bx bx-table",+ "type": "relation",+ "name": "internalLink",+ "value": "oPVyFC7WL2Lp","isInheritable": false,"position": 30},{"type": "relation","name": "internalLink",- "value": "oPVyFC7WL2Lp",+ "value": "W8vYD3Q1zjCR","isInheritable": false,"position": 40},{"type": "relation","name": "internalLink",- "value": "W8vYD3Q1zjCR",+ "value": "8YBEPzcpUgxw","isInheritable": false,"position": 50},{"type": "relation","name": "internalLink",- "value": "mHbBMPDPkVV5",+ "value": "IjZS7iK5EXtb","isInheritable": false,"position": 60},{"type": "relation","name": "internalLink",- "value": "8YBEPzcpUgxw",+ "value": "XpOYSgsLkTJy","isInheritable": false,"position": 70},{"type": "relation","name": "internalLink",- "value": "IjZS7iK5EXtb",+ "value": "wy8So3yZZlH9","isInheritable": false,"position": 80},{"type": "relation","name": "internalLink",- "value": "XpOYSgsLkTJy",+ "value": "R9pX4DGra2Vt","isInheritable": false,"position": 90},{- "type": "relation",- "name": "internalLink",- "value": "R9pX4DGra2Vt",+ "type": "label",+ "name": "iconClass",+ "value": "bx bx-table","isInheritable": false,- "position": 100+ "position": 30}],"format": "markdown",@@ -16972,6 +16972,13 @@"value": "bx bxs-file-js","isInheritable": false,"position": 80+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "wy8So3yZZlH9",+ "isInheritable": false,+ "position": 90}],"format": "markdown",diff --git a/docs/User Guide/User Guide/Scripting.md b/docs/User Guide/User Guide/Scripting.mdindex b7fad64dc1..b1e4d45cb3 100644--- a/docs/User Guide/User Guide/Scripting.md+++ b/docs/User Guide/User Guide/Scripting.md@@ -8,7 +8,7 @@ To go further I must explain basic architecture of Trilium - in its essence it i* frontend running in the browser (using HTML, CSS, JavaScript) - this is mainly used to interact with the user, display notes etc.* backend running JavaScript code in node.js runtime - this is responsible for e.g. storing notes, encrypting them etc.-So we have frontend and backend, each with their own set of responsibilities, but their common feature is that they both run JavaScript code. Add to this the fact, that we're able to create JavaScript <a class="reference-link" href="Note%20Types/Code.md">code notes</a> and we're onto something.+So we have frontend and backend, each with their own set of responsibilities, but their common feature is that they both run JavaScript code. Add to this the fact, that we're able to create JavaScript <a class="reference-link" href="Note%20Types/Code.md">Code</a> and we're onto something.## Use cases@@ -26,7 +26,18 @@ We need to execute it every time Trilium starts up, but we probably don't want tThe solution is marked by red circle at the bottom - this note has [label](Advanced%20Usage/Attributes.md) `#run=frontendStartup` - this is one of the "system" labels which Trilium understands. As you might guess, this will cause all such labeled script notes to be executed once Trilium frontend starts up.-(`#run=frontendStartup` does not work for [Mobile frontend](Installation%20%26%20Setup/Mobile%20Frontend.md) - if you want to have scripts running there, give the script `#run=mobileStartup` label)+(`#run=frontendStartup` does not work for [Mobile frontend](Installation%20%26%20Setup/Mobile%20Frontend.md) - if you want to have scripts running there, give the script `#run=mobileStartup` label).++## Autocomplete & linting++Starting with Trilium v0.104.0, frontend scripts, backend scripts and render notes benefit from an autocomplete system.++The autocomplete triggers automatically when typing <kbd spellcheck="false">.</kbd> or manually by pressing <kbd spellcheck="false">Ctrl</kbd>+<kbd spellcheck="false">Space</kbd>.++In addition to that, the editor will also display syntax errors and warnings such as unreachable code.++> [!NOTE]+> If you notice a false positive in regards with the errors/warnings reported or an incorrect or missing API, feel free to [open a issue](Troubleshooting/Reporting%20issues.md) with a code sample.## More showcasesdiff --git a/docs/User Guide/User Guide/Scripting/Script API.md b/docs/User Guide/User Guide/Scripting/Script API.mdindex 3739cd5323..cb470e28ef 100644--- a/docs/User Guide/User Guide/Scripting/Script API.md+++ b/docs/User Guide/User Guide/Scripting/Script API.md@@ -1,5 +1,5 @@# Script API-tFor [script code notes](../Scripting.md), Trilium offers an API that gives them access to various features of the application.+For [script code notes](../Scripting.md), Trilium offers an API that gives them access to various features of the application.There are two APIs: