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): update regarding drag behavior
Elian Dorane7480afeb0cd
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export.htmlindex 690c92451a..9909aadccc 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export.html@@ -1,5 +1,32 @@-<p>Trilium natively supports the following formats for both import and export.</p>+<p>To import a note:</p>+<ul>+ <li>The easiest way to import is to simply drag & drop a file or an archive+ into the <a class="reference-link" href="#root/_help_oPVyFC7WL2Lp">Note Tree</a>.+ <ul>+ <li>This will automatically detect some formats such as <a class="reference-link"+ href="#root/_help_iWD7wiIuMtgV">Obsidian</a>.</li>+ <li><em>Safe import</em> is automatically on to prevent accidental running+ of foreign scripts.</li>+ </ul>+ </li>+ <li>To configure an import, there is a dedicated dialog which can be accessed+ from either <a class="reference-link" href="#root/_help_oPVyFC7WL2Lp">Note Tree</a> → <em>Import into note</em> or <a+ class="reference-link" href="#root/_help_8YBEPzcpUgxw">Note buttons</a> → <em>Import into note</em>.+ <ul>+ <li>This feature allows for dedicated importers for others apps such as <a+ class="reference-link" href="#root/_help_iWD7wiIuMtgV">Obsidian</a> or <a+ class="reference-link" href="#root/_help_GnhlmrATVqcH">Microsoft OneNote</a>.</li>+ <li><em>Safe import</em> as well as other options can be configured from the+ collapsed <em>Options</em> section at the bottom.</li>+ </ul>+ </li>+</ul>+<p>To export a note, right click the note in the <a class="reference-link"+ href="#root/_help_oPVyFC7WL2Lp">Note Tree</a> and select <em>Export</em>.+ Similarly, in <a class="reference-link" href="#root/_help_8YBEPzcpUgxw">Note buttons</a> there+ is a <em>Export note</em> option.</p><h2>Supported formats</h2>+<p>Trilium natively supports the following formats for both import and export.</p><ul><li>HTML:<ul>diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Obsidian.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Obsidian.htmlindex 15be3bbb6b..062d945688 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Obsidian.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Obsidian.html@@ -23,6 +23,10 @@<li>In the <em>Import from</em> section, select <em>Obsidian</em>.</li><li>Upload the ZIP obtained in the previous step.</li></ol>+<p>Alternatively, simply drag & drop the .zip archive in the <a+ class="reference-link" href="#root/_help_oPVyFC7WL2Lp">Note Tree</a> and+ Trilium will auto-detect it as an Obsidian import provided there is a <code>.obsidian</code> directory.+ If not, follow the previous steps instead.</p><h2>Supported features</h2><p>The following features are preserved by Trilium during the import process:</p><ul>diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Jump to & command palette.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Jump to & command palette.htmlindex a1cfd3c32e..70f56507f6 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Jump to & command palette.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Jump to & command palette.html@@ -29,9 +29,10 @@href="#root/_help_l0tKav7yLHGF">Day Notes</a> if there is none, orthe top level if there is no journal either. While hoisted into a <aclass="reference-link" href="#root/_help_9sRHySam5fXb">Workspaces</a>,- the workspace's own inbox is used, falling back to the workspace root itself.- The option names the destination, so it is always visible before the note- is created.</li>+ the workspace's own inbox is used, then today's day note if the workspace+ has a <code>#workspaceCalendarRoot</code>, otherwise the workspace root+ itself. The option names the destination, so it is always visible before+ the note is created.</li><li><em>Create child note</em> places it under the note that is currently open.</li></ul></li>diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Notes/Note Inbox.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Notes/Note Inbox.htmlindex 1a77c5fede..d0723bf36a 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Notes/Note Inbox.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Notes/Note Inbox.html@@ -30,5 +30,7 @@<ul><li>A note carrying the <code>#workspaceInbox</code> label in that workspace.</li><li>A note carrying the <code>#inbox</code> within that workspace.</li>+ <li>Today's <a href="#root/_help_l0tKav7yLHGF">day note</a>, if the workspace+ has a <code>#workspaceCalendarRoot</code>.</li><li>The workspace root note itself.</li></ul>\ No newline at end of filediff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree.htmlindex 0d5c13c0ef..601a5420ce 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree.html@@ -9,20 +9,30 @@</p><p>You can easily rearrange the note tree by dragging and dropping notes,as demonstrated in the example above.</p>+<h3>Importing files</h3>+<p>A file or archive can easily be imported into Trilium just by dragging+ it inside the note tree.</p>+<p>Note that a drag & drop always imports with <em>safe import</em> on,+ meaning that some features such as scripts are disabled in the upcoming+ notes. To bypass that, use the dedicated <a href="#root/_help_mHbBMPDPkVV5">import</a> feature+ (right click → <em>Import into note</em>).</p>+<p>Unlike the import dialog, the drag & drop also has some basic auto-detection+ of the import. For example, dragging a .zip file with a <code>.obsidian</code> folder+ in it will automatically trigger a dedicated <a class="reference-link"+ href="#root/_help_iWD7wiIuMtgV">Obsidian</a> import.</p><h2>Keyboard Manipulation</h2><p><img src="Note Tree_move-note-with-keyboard.gif" alt="Example of using keyboard keys to move a note">Trilium offers efficient keyboard-based manipulation using the following <ahref="#root/_help_A9Oc6YKKc65v">shortcuts</a>:</p><ul>- <li><kbd>Ctrl</kbd> + <kbd><span>↑</span></kbd> and <kbd>Ctrl</kbd> +<kbd><span>↓</span></kbd>:- Move the note up or down in the order.</li>- <li><kbd>Ctrl</kbd>+<kbd><span>←</span></kbd>: Move the note up in the hierarchy- by changing its parent to the note's grandparent.</li>- <li><kbd>Ctrl</kbd>+<kbd><span>→</span></kbd>: Move the note down in the hierarchy- by setting its parent to the note currently above it (this action is best- understood through a demo or hands-on experience).</li>- <li><kbd><span>←</span></kbd> and <kbd><span>→</span></kbd>: Expand and collapse- a sub-tree.</li>+ <li><kbd>Ctrl</kbd> + <kbd>↑</kbd> and <kbd>Ctrl</kbd> +<kbd>↓</kbd>: Move the+ note up or down in the order.</li>+ <li><kbd>Ctrl</kbd>+<kbd>←</kbd>: Move the note up in the hierarchy by changing+ its parent to the note's grandparent.</li>+ <li><kbd>Ctrl</kbd>+<kbd>→</kbd>: Move the note down in the hierarchy by setting+ its parent to the note currently above it (this action is best understood+ through a demo or hands-on experience).</li>+ <li><kbd>←</kbd> and <kbd>→</kbd>: Expand and collapse a sub-tree.</li></ul><h2>Context Menu</h2><p>You can also move notes using the familiar cut and paste functions availablediff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree/Note tree contextual menu.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree/Note tree contextual menu.htmlindex 5dc3dd4453..549f23768c 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree/Note tree contextual menu.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree/Note tree contextual menu.html@@ -24,24 +24,24 @@The ones that do support multiple notes will mention this in the list below.</p></aside><ul>- <li class="ck-list-marker-bold"><strong>Open in a new tab</strong>+ <li><strong>Open in a new tab</strong><ul><li>Will open a single note in a new <a href="#root/_help_3seOhtN8uLIY">tab</a>.</li></ul></li>- <li class="ck-list-marker-bold"><strong>Open in a new split</strong>+ <li><strong>Open in a new split</strong><ul><li>Will open a split to the right with the given note within the currenttab.</li></ul></li>- <li class="ck-list-marker-bold"><strong>Hoist note</strong>+ <li><strong>Hoist note</strong><ul><li>Will focus the note tree on this note. See <a class="reference-link"href="#root/_help_OR8WJ7Iz9K4U">Note Hoisting</a> for more information.</li></ul></li>- <li class="ck-list-marker-bold"><strong>Insert note after</strong>+ <li><strong>Insert note after</strong><ul><li>Allows easy creation of a note with a specified <a href="#root/_help_KSZ04uQ2D1St">note type</a>.</li><li><a class="reference-link" href="#root/_help_KC1HB96bqqHX">Templates</a> will@@ -49,32 +49,32 @@<li>The note will be added on the same level of hierarchy as the note selected.</li></ul></li>- <li class="ck-list-marker-bold"><strong>Insert child note</strong>+ <li><strong>Insert child note</strong><ul><li>Same as <em>Insert note after</em>, but the note will be created as a childof the selected note.</li></ul></li>- <li class="ck-list-marker-bold"><strong>Protect subtree</strong>+ <li><strong>Protect subtree</strong><ul><li>Will mark this note and all of its descendents as protected. See <aclass="reference-link" href="#root/_help_bwg0e8ewQMak">Protected Notes</a> formore information.</li></ul></li>- <li class="ck-list-marker-bold"><strong>Unprotect subtree</strong>+ <li><strong>Unprotect subtree</strong><ul><li>Will unprotect this note and all of its descendents.</li></ul></li>- <li class="ck-list-marker-bold"><strong>Cut</strong>+ <li><strong>Cut</strong><ul><li>Will place the given notes in clipboard.</li><li>Use one of the two paste functions (or the keyboard shortcuts) to movethem to the desired location.</li></ul></li>- <li class="ck-list-marker-bold"><strong>Copy / clone</strong>+ <li><strong>Copy / clone</strong><ul><li>Will place the given notes in clipboard.</li><li>Use one of the two paste functions (or the keyboard shortcuts) to copy@@ -87,30 +87,30 @@look for <em>Duplicate subtree</em>.</li></ul></li>- <li class="ck-list-marker-bold"><strong>Paste into</strong>+ <li><strong>Paste into</strong><ul><li>If there are any notes in clipboard, they will be pasted as child notesto the right-clicked one.</li></ul></li>- <li class="ck-list-marker-bold"><strong>Paste after</strong>+ <li><strong>Paste after</strong><ul><li>If there are any notes in clipboard, they will be pasted underneath theright-clicked one.</li></ul></li>- <li class="ck-list-marker-bold"><strong>Move to…</strong>+ <li><strong>Move to…</strong><ul><li>Will display a modal to specify where to move the desired notes.</li></ul></li>- <li class="ck-list-marker-bold"><strong>Clone to…</strong>+ <li><strong>Clone to…</strong><ul><li>Will display a modal to specify where to <a href="#root/_help_IakOLONlIfGI">clone</a> thedesired notes.</li></ul></li>- <li class="ck-list-marker-bold"><strong>Duplicate</strong>+ <li><strong>Duplicate</strong><ul><li>Creates a copy of the note and its descendants.</li><li>This process is different from <a class="reference-link" href="#root/_help_IakOLONlIfGI">Cloning Notes</a> since@@ -119,7 +119,7 @@href="#root/_help_KC1HB96bqqHX">Templates</a>.</li></ul></li>- <li class="ck-list-marker-bold"><strong>Archive/Unarchive</strong>+ <li><strong>Archive/Unarchive</strong><ul><li>Marks a note as <a href="#root/_help_MKmLg5x6xkor">archived</a>.</li><li>If the note is already archived, it will be unarchived instead.</li>@@ -128,7 +128,7 @@be disabled.</li></ul></li>- <li class="ck-list-marker-bold"><strong>Delete</strong>+ <li><strong>Delete</strong><ul><li>Will delete the given notes, asking for confirmation first.</li><li>In the dialog, the following options can be configured:@@ -142,19 +142,19 @@</li></ul></li>- <li class="ck-list-marker-bold"><strong>Import into note</strong>+ <li><strong>Import into note</strong><ul><li>Opens the <a href="#root/_help_mHbBMPDPkVV5">import</a> dialog and placesthe imported notes as child notes of the selected one.</li></ul></li>- <li class="ck-list-marker-bold"><strong>Export</strong>+ <li><strong>Export</strong><ul><li>Opens the <a href="#root/_help_mHbBMPDPkVV5">export</a> dialog for the selectednotes.</li></ul></li>- <li class="ck-list-marker-bold"><strong>Search in subtree</strong>+ <li><strong>Search in subtree</strong><ul><li>Opens a full <a class="reference-link" href="#root/_help_eIg8jdvaoNNd">Search</a> withit preconfigured to only look into this note and its descendants (the <em>Ancestor</em> field).</li>@@ -171,21 +171,21 @@<p>To access these options, first look for the <em>Advanced</em> option inthe contextual menu to reveal a sub-menu with:</p><ul>- <li class="ck-list-marker-bold"><strong>Apply bulk actions</strong>+ <li><strong>Apply bulk actions</strong><ul><li>Opens the <a class="reference-link" href="#root/_help_ivYnonVFBxbQ">Bulk Actions</a> dialog,to apply actions such as adding labels or moving notes to multiple notesat once (see <a class="reference-link" href="#root/_help_yTjUdsOi4CIE">Multiple selection</a>).</li></ul></li>- <li class="ck-list-marker-bold"><strong>Edit branch prefix</strong>+ <li><strong>Edit branch prefix</strong><ul><li>Opens a dialog to assign a name to be able to distinguish <a href="#root/_help_IakOLONlIfGI">clones</a>,see <a class="reference-link" href="#root/_help_TBwsyfadTA18">Branch prefix</a> formore information.</li></ul></li>- <li class="ck-list-marker-bold"><strong>Convert to attachment</strong>+ <li><strong>Convert to attachment</strong><ul><li>Converts the selected notes to <a class="reference-link" href="#root/_help_0vhv7lsOLy82">Attachments</a> oftheir parent notes.</li>@@ -194,17 +194,17 @@from an external source or an older version of Trilium.</li></ul></li>- <li class="ck-list-marker-bold"><strong>Expand subtree</strong>+ <li><strong>Expand subtree</strong><ul><li>Expands all the child notes in the <a class="reference-link" href="#root/_help_oPVyFC7WL2Lp">Note Tree</a>.</li></ul></li>- <li class="ck-list-marker-bold"><strong>Collapse subtree</strong>+ <li><strong>Collapse subtree</strong><ul><li>Collapses all the child notes in the note tree.</li></ul></li>- <li class="ck-list-marker-bold"><strong>Sort by…</strong>+ <li><strong>Sort by…</strong><ul><li>Opens a dialog to sort all the child notes of the selected note.</li><li>The sorting is done only once, there is an automatic sorting mechanism@@ -213,7 +213,7 @@more information.</li></ul></li>- <li class="ck-list-marker-bold"><strong>Copy note path to clipboard</strong>+ <li><strong>Copy note path to clipboard</strong><ul><li>Copies a URL fragment representing the full path to this branch for anote, such as <code>#root/Hb2E70L7HPuf/4sRFgMZhYFts/2IVuShedRJ3U/LJVMvKXOFv7n</code>.</li>@@ -221,7 +221,7 @@notes, or for note <a class="reference-link" href="#root/_help_wArbEsdSae6g">Navigation</a>.</li></ul></li>- <li class="ck-list-marker-bold"><strong>Recent changes in subtree</strong>+ <li><strong>Recent changes in subtree</strong><ul><li>This will open <a class="reference-link" href="#root/_help_r5JGHN99bVKn">Recent Changes</a>,but filtered to only the changes related to this note or one of its descendants.</li>diff --git a/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export.md b/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export.mdindex 2c99301815..03839488a4 100644--- a/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export.md+++ b/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export.md@@ -1,8 +1,19 @@# Import & Export-Trilium natively supports the following formats for both import and export.+To import a note:++* The easiest way to import is to simply drag & drop a file or an archive into the <a class="reference-link" href="UI%20Elements/Note%20Tree.md">Note Tree</a>.+ * This will automatically detect some formats such as <a class="reference-link" href="Import%20%26%20Export/Importing%20data%20from%20other%20applications/Obsidian.md">Obsidian</a>.+ * _Safe import_ is automatically on to prevent accidental running of foreign scripts.+* To configure an import, there is a dedicated dialog which can be accessed from either <a class="reference-link" href="UI%20Elements/Note%20Tree.md">Note Tree</a> → _Import into note_ or <a class="reference-link" href="UI%20Elements/Note%20buttons.md">Note buttons</a> → _Import into note_.+ * This feature allows for dedicated importers for others apps such as <a class="reference-link" href="Import%20%26%20Export/Importing%20data%20from%20other%20applications/Obsidian.md">Obsidian</a> or <a class="reference-link" href="Import%20%26%20Export/Importing%20data%20from%20other%20applications/Microsoft%20OneNote.md">Microsoft OneNote</a>.+ * _Safe import_ as well as other options can be configured from the collapsed _Options_ section at the bottom.++To export a note, right click the note in the <a class="reference-link" href="UI%20Elements/Note%20Tree.md">Note Tree</a> and select _Export_. Similarly, in <a class="reference-link" href="UI%20Elements/Note%20buttons.md">Note buttons</a> there is a _Export note_ option.## Supported formats+Trilium natively supports the following formats for both import and export.+* HTML:* This is the main format used by Trilium, where standard tags are used to represent basic formatting and layout (e.g. `<strong>`, `<table>`, `<pre>`).* Note that HTML is not a standardized format so some more specific features such as admonitions or <a class="reference-link" href="../Note%20Types/Text/Links/Internal%20(reference)%20links.md">Internal (reference) links</a> might not be supported by other applications.diff --git a/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Obsidian.md b/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Obsidian.mdindex 44b7eb05b4..f883d08dcb 100644--- a/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Obsidian.md+++ b/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Obsidian.md@@ -17,6 +17,8 @@ Then, in Trilium Notes:2. In the _Import from_ section, select _Obsidian_.3. Upload the ZIP obtained in the previous step.+Alternatively, simply drag & drop the .zip archive in the <a class="reference-link" href="../../UI%20Elements/Note%20Tree.md">Note Tree</a> and Trilium will auto-detect it as an Obsidian import provided there is a `.obsidian` directory. If not, follow the previous steps instead.+## Supported featuresThe following features are preserved by Trilium during the import process:diff --git a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree.md b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree.mdindex b65fa53610..90f646962b 100644--- a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree.md+++ b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree.md@@ -9,14 +9,22 @@ This page explains how to manipulate the note tree in TriliumNext, focusing on mYou can easily rearrange the note tree by dragging and dropping notes, as demonstrated in the example above.+### Importing files++A file or archive can easily be imported into Trilium just by dragging it inside the note tree.++Note that a drag & drop always imports with _safe import_ on, meaning that some features such as scripts are disabled in the upcoming notes. To bypass that, use the dedicated [import](../Import%20%26%20Export.md) feature (right click → _Import into note_).++Unlike the import dialog, the drag & drop also has some basic auto-detection of the import. For example, dragging a .zip file with a `.obsidian` folder in it will automatically trigger a dedicated <a class="reference-link" href="../Import%20%26%20Export/Importing%20data%20from%20other%20applications/Obsidian.md">Obsidian</a> import.+## Keyboard ManipulationTrilium offers efficient keyboard-based manipulation using the following [shortcuts](../Keyboard%20Shortcuts.md):-* <kbd>Ctrl</kbd> + <kbd><span>↑</span></kbd> and <kbd>Ctrl</kbd> +<kbd><span>↓</span></kbd>: Move the note up or down in the order.-* <kbd>Ctrl</kbd>+<kbd><span>←</span></kbd>: Move the note up in the hierarchy by changing its parent to the note's grandparent.-* <kbd>Ctrl</kbd>+<kbd><span>→</span></kbd>: Move the note down in the hierarchy by setting its parent to the note currently above it (this action is best understood through a demo or hands-on experience).-* <kbd><span>←</span></kbd> and <kbd><span>→</span></kbd>: Expand and collapse a sub-tree.+* <kbd>Ctrl</kbd> + <kbd>↑</kbd> and <kbd>Ctrl</kbd> +<kbd>↓</kbd>: Move the note up or down in the order.+* <kbd>Ctrl</kbd>+<kbd>←</kbd>: Move the note up in the hierarchy by changing its parent to the note's grandparent.+* <kbd>Ctrl</kbd>+<kbd>→</kbd>: Move the note down in the hierarchy by setting its parent to the note currently above it (this action is best understood through a demo or hands-on experience).+* <kbd>←</kbd> and <kbd>→</kbd>: Expand and collapse a sub-tree.## Context Menu