Skip to content

Build your personal knowledge base with Trilium Notes

docs(user): mention updates to spreadsheet

Elian Doranad7ac4bbdb47
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.html
index b9ab252d4c..45bc73bc1c 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
@@ -17,27 +17,68 @@
useful for calculations since they support formulas.</p>
<p>Spreadsheets also benefit from a wider range of features such as data
validation, formatting and can work on a relatively large dataset.</p>
-<h2>Important statement regarding data format</h2>
-<p>For Trilium as a knowledge database, it is important that data is stored
- in a format that is easy to convert to something else. For example,&nbsp;
- <a
- class="reference-link" href="#root/_help_iPIMuisry3hd">Text</a>&nbsp;notes can be exported to either HTML or Markdown, making
- it relatively easy to migrate to another software or simply to stand the
- test of time.</p>
-<p>For spreadsheets, Trilium uses a technology called <a href="https://docs.univer.ai/">Univer Sheets</a>,
- developed by DreamNum Co., Ltd. Although this software library is quite
- powerful and has a good track record (starting with Luckysheet from 2020,
- becoming Univer somewhere in 2023), it uses its own JSON format to store
- the sheets.</p>
-<p>As such, if Univer were to become unmaintained or incompatible for some
- reason, your data might become vendor locked-in.</p>
-<p>With that in mind, spreadsheets can be really useful for quick calculations,
- but it's important not to have critical information on it that you might
- not want to need in a few years time.</p>
-<h2>Regarding data export</h2>
-<p>Currently, in Trilium there is no way to export the spreadsheets to CSV
- or Excel formats. We might manage to add support for it at some point,
- but currently this is not the case.</p>
+<h2>Data intercompatibility (import/export)</h2>
+<p>Starting with v0.104.0, Trilium provides a level of data intercompatibility
+ between the internal format (Univer) and the following formats:</p>
+<ul>
+ <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
+ and vice-versa with Univer.</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>
+ </ul>
+ </li>
+</ul>
+<p>Both <a href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/_help_mHbBMPDPkVV5">import and export</a> are
+ supported, as follows:</p>
+<ul>
+ <li>To import a file, simply drag it into the&nbsp;<a class="reference-link"
+ href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/Vc8PjrjAGuOp/_help_oPVyFC7WL2Lp">Note Tree</a>&nbsp;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&nbsp;
+ <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
+ .csv and .xlsx files. Folder structure can be preserved by using a .zip
+ file.</li>
+ </ul>
+ </li>
+ <li>Unlike importing, exporting is on a per-note basis:
+ <ul>
+ <li>In the&nbsp;<a class="reference-link" href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/Vc8PjrjAGuOp/_help_8YBEPzcpUgxw">Note buttons</a>,
+ choose the <em>Export to Excel</em> or <em>Export to CSV</em> options for the&nbsp;
+ <a
+ class="reference-link" href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/Vc8PjrjAGuOp/_help_IjZS7iK5EXtb">New Layout</a>.</li>
+ <li>For the old layout, choose the corresponding buttons in the&nbsp;<a class="reference-link"
+ href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/Vc8PjrjAGuOp/_help_XpOYSgsLkTJy">Floating buttons</a>&nbsp;area.</li>
+ <li
+ >The export is intentionally a different process than the normal&nbsp;
+ <a
+ class="reference-link" href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/_help_mHbBMPDPkVV5">Import &amp; Export</a>&nbsp;functionality because it does conversion
+ to multiple formats with varying degrees of compatibility.</li>
+ </ul>
+ </li>
+</ul>
+<aside class="admonition important">
+ <p>Import &amp; export for both .xlsx and .csv files are supported on a best-effort
+ basis. 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>,
+ however all bug reports must contain a sample file in order to be taken
+ into consideration.</p>
+</aside>
<h2>Supported features</h2>
<p>The spreadsheet has support for the following features:</p>
<ul>
@@ -51,6 +92,24 @@
<p>We might consider adding <a href="https://docs.univer.ai/guides/sheets/features/filter">other features</a> from
Univer at some point. If there is a particular feature that can be added
easily, 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>
+<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>
+</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
+ mind that we might not be able to have a complete feature parity with all
+ the features of Univer.</p>
<h2>Features not supported yet</h2>
<h3>Regarding Pro features</h3>
<p>Univer spreadsheets also feature a <a href="https://univer.ai/pro">Pro plan</a> which
@@ -64,23 +123,12 @@
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>
-<h2>Known limitations</h2>
-<ul>
- <li>It is possible to share a spreadsheet, case in which a best-effort HTML
- rendering of the spreadsheet is done.
- <ul>
- <li>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
- mind that we might not be able to have a complete feature parity with all
- the features of Univer.</li>
- </ul>
- </li>
- <li>There is currently no export functionality, as stated previously.</li>
- <li>There is no dedicated mobile support. Mobile support is currently experimental
- in Univer and when it becomes stable, we could potentially integrate it
- into Trilium as well.</li>
-</ul>
\ No newline at end of file
+<h3>Mobile support</h3>
+<p>There is no dedicated mobile support.</p>
+<p>Mobile support is currently experimental in Univer and when it becomes
+ stable, we could potentially integrate it into Trilium as well.</p>
\ No newline at end of file
diff --git a/docs/Developer Guide/Developer Guide/Documentation.md b/docs/Developer Guide/Developer Guide/Documentation.md
index a9a376a725..6f07db9502 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/RXE6eD3J6Ze9/Documentation_image.png" width="205" height="162">
+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">
* 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.json
index 35a8821fad..3fa36162fc 100644
--- a/docs/User Guide/!!!meta.json
+++ b/docs/User Guide/!!!meta.json
@@ -11205,13 +11205,6 @@
"isInheritable": false,
"position": 10
},
- {
- "type": "relation",
- "name": "internalLink",
- "value": "iPIMuisry3hd",
- "isInheritable": false,
- "position": 20
- },
{
"type": "relation",
"name": "internalLink",
@@ -11225,6 +11218,55 @@
"value": "bx bx-table",
"isInheritable": false,
"position": 30
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "oPVyFC7WL2Lp",
+ "isInheritable": false,
+ "position": 40
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "W8vYD3Q1zjCR",
+ "isInheritable": false,
+ "position": 50
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "mHbBMPDPkVV5",
+ "isInheritable": false,
+ "position": 60
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "8YBEPzcpUgxw",
+ "isInheritable": false,
+ "position": 70
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "IjZS7iK5EXtb",
+ "isInheritable": false,
+ "position": 80
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "XpOYSgsLkTJy",
+ "isInheritable": false,
+ "position": 90
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "R9pX4DGra2Vt",
+ "isInheritable": false,
+ "position": 100
}
],
"format": "markdown",
diff --git a/docs/User Guide/User Guide/Note Types/Spreadsheets.md b/docs/User Guide/User Guide/Note Types/Spreadsheets.md
index 7728206945..c27663c2d6 100644
--- a/docs/User Guide/User Guide/Note Types/Spreadsheets.md
+++ b/docs/User Guide/User Guide/Note Types/Spreadsheets.md
@@ -12,19 +12,31 @@ There is a slight overlap between spreadsheets and the <a class="reference-link
Spreadsheets also benefit from a wider range of features such as data validation, formatting and can work on a relatively large dataset.
-## Important statement regarding data format
+## Data intercompatibility (import/export)
-For Trilium as a knowledge database, it is important that data is stored in a format that is easy to convert to something else. For example, <a class="reference-link" href="Text.md">Text</a> notes can be exported to either HTML or Markdown, making it relatively easy to migrate to another software or simply to stand the test of time.
+Starting with v0.104.0, Trilium provides a level of data intercompatibility between the internal format (Univer) and the following formats:
-For spreadsheets, Trilium uses a technology called [Univer Sheets](https://docs.univer.ai/), developed by DreamNum Co., Ltd. Although this software library is quite powerful and has a good track record (starting with Luckysheet from 2020, becoming Univer somewhere in 2023), it uses its own JSON format to store the sheets.
+* Microsoft Excel (.xlsx)
+ * Preserves basic formatting (fonts, sizes, borders, backgrounds).
+ * Formulas are preserved, but note that not all Excel functions are supported and vice-versa with Univer.
+ * Supports multi-sheets natively.
+* Comma-Separated Values (.csv)
+ * Since it's a text-based format, any formatting is lost.
+ * Formulas are evaluated and turned into their final value instead.
+ * Multi-sheets spreadsheets are exported as a single ZIP containing a CSV file per sheet.
-As such, if Univer were to become unmaintained or incompatible for some reason, your data might become vendor locked-in.
+Both [import and export](../Basic%20Concepts%20and%20Features/Import%20%26%20Export.md) are supported, as follows:
-With that in mind, spreadsheets can be really useful for quick calculations, but it's important not to have critical information on it that you might not want to need in a few years time.
+* To import a file, simply drag it into the <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree.md">Note Tree</a> and it will be converted into a spreadsheet note.
+ * To avoid this behavior (e.g. to import a .xlsx file as an actual <a class="reference-link" href="File.md">File</a>), uncheck the corresponding option in the [Import dialog](../Basic%20Concepts%20and%20Features/Import%20%26%20Export.md).
+ * 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 .zip file.
+* Unlike importing, exporting is on a per-note basis:
+ * In the <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Note%20buttons.md">Note buttons</a>, choose the _Export to Excel_ or _Export to CSV_ options for the <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/New%20Layout.md">New Layout</a>.
+ * For the old layout, choose the corresponding buttons in the <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Floating%20buttons.md">Floating buttons</a> area.
+ * The export is intentionally a different process than the normal <a class="reference-link" href="../Basic%20Concepts%20and%20Features/Import%20%26%20Export.md">Import &amp; Export</a> functionality because it does conversion to multiple formats with varying degrees of compatibility.
-## Regarding data export
-
-Currently, in Trilium there is no way to export the spreadsheets to CSV or Excel formats. We might manage to add support for it at some point, but currently this is not the case.
+> [!IMPORTANT]
+> Import & export for both .xlsx and .csv files are supported on a best-effort basis. It does not support advanced features (data validation, scripting, etc.). If you notice a particular issue, it can be [reported](../Troubleshooting/Reporting%20issues.md), however all bug reports must contain a sample file in order to be taken into consideration.
## Supported features
@@ -39,6 +51,16 @@ The spreadsheet has support for the following features:
We might consider adding [other features](https://docs.univer.ai/guides/sheets/features/filter) from Univer at some point. If there is a particular feature that can be added easily, it can be discussed over [GitHub Issues](../Troubleshooting/Reporting%20issues.md).
+### Share functionality
+
+Spreadsheets can be [shared](../Advanced%20Usage/Sharing.md), case in which a best-effort HTML rendering of the spreadsheet is done:
+
+* Preserves basic formatting.
+* Since v0.104.0, properly formats numbers and dates.
+* Cells with formulas display the i
+
+For more advanced use cases, this will most likely not work as intended. Feel free to [report issues](../Troubleshooting/Reporting%20issues.md), but keep in mind that we might not be able to have a complete feature parity with all the features of Univer.
+
## Features not supported yet
### Regarding Pro features
@@ -57,9 +79,8 @@ There are a few features that are already planned but are not supported yet:
If you would like us to work on these features, consider [supporting us](https://triliumnotes.org/en/support-us).
-## Known limitations
+### Mobile support
+
+There is no dedicated mobile support.
-* It is possible to share a spreadsheet, case in which a best-effort HTML rendering of the spreadsheet is done.
- * For more advanced use cases, this will most likely not work as intended. Feel free to [report issues](../Troubleshooting/Reporting%20issues.md), but keep in mind that we might not be able to have a complete feature parity with all the features of Univer.
-* There is currently no export functionality, as stated previously.
-* There is no dedicated mobile support. Mobile support is currently experimental in Univer and when it becomes stable, we could potentially integrate it into Trilium as well.
\ No newline at end of file
+Mobile support is currently experimental in Univer and when it becomes stable, we could potentially integrate it into Trilium as well.
\ No newline at end of file