Skip to content

Build your personal knowledge base with Trilium Notes

docs(user): sync after formatting changes

Elian Dorana5f7cdde4fe1
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Calendar.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Calendar.html
index 4d744f76d5..a311868e2c 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Calendar.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Calendar.html
@@ -11,10 +11,8 @@
time-specific events, not just all-day events.</li>
<li>Month view, where the entire month is displayed and all-day events can
be inserted. Both time-specific events and all-day events are listed.</li>
- <li
- >Year view, which displays the entire year for quick reference.</li>
- <li
- >List view, which displays all the events of a given month in sequence.</li>
+ <li>Year view, which displays the entire year for quick reference.</li>
+ <li>List view, which displays all the events of a given month in sequence.</li>
</ul>
<p>Unlike other Collection view types, the Calendar view also allows some
kind of interaction, such as moving events around as well as creating new
@@ -56,8 +54,7 @@
</ul>
</li>
<li>Drag and drop an event on the calendar to move it to another day.</li>
- <li
- >The length of an event can be changed by placing the mouse to the right
+ <li>The length of an event can be changed by placing the mouse to the right
edge of the event and dragging the mouse around.</li>
</ul>
<h2>Interaction on mobile</h2>
@@ -66,26 +63,23 @@
<ul>
<li>Clicking on an event triggers the contextual menu, including the option
to open in&nbsp;<a class="reference-link" href="#root/_help_ZjLYv08Rp3qC">Quick edit</a>.</li>
- <li
- >To insert a new event, touch and hold the empty space. When successful,
+ <li>To insert a new event, touch and hold the empty space. When successful,
the empty space will become colored to indicate the selection.
<ul>
<li>Before releasing, drag across multiple spaces to create multi-day events.</li>
- <li
- >When released, a prompt will appear to enter the note title.</li>
+ <li>When released, a prompt will appear to enter the note title.</li>
</ul>
- </li>
- <li>To move an existing event, touch and hold the event until the empty space
- near it will become colored.
- <ul>
- <li>At this point the event can be dragged across other days on the calendar.</li>
- <li
- >Or the event can be resized by tapping on the small circle to the right
- end of the event.</li>
- <li>To exit out of editing mode, simply tap the empty space anywhere on the
- calendar.</li>
+ </li>
+ <li>To move an existing event, touch and hold the event until the empty space
+ near it will become colored.
+ <ul>
+ <li>At this point the event can be dragged across other days on the calendar.</li>
+ <li>Or the event can be resized by tapping on the small circle to the right
+ end of the event.</li>
+ <li>To exit out of editing mode, simply tap the empty space anywhere on the
+ calendar.</li>
</ul>
- </li>
+ </li>
</ul>
<h2>Configuring the calendar view</h2>
<p>In the <em>Collections</em> tab in the&nbsp;<a class="reference-link" href="#root/_help_BlN9DFI679QC">Ribbon</a>,
@@ -94,12 +88,86 @@
<li>Hide weekends from the week view.</li>
<li>Display week numbers on the calendar.</li>
<li>Set the slot duration (the length of each time row in day/week view).</li>
- <li
- >Set the slot label interval (how often time labels appear on the axis
+ <li>Set the slot label interval (how often time labels appear on the axis
in day/week view).</li>
</ul>
<h2>Configuring the calendar using attributes</h2>
<p>The following attributes can be added to the Collection type:</p>
+<table>
+ <thead>
+ <tr>
+ <th>Name</th>
+ <th>Description</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><code spellcheck="false">#calendar:hideWeekends</code>
+ </td>
+ <td>When present (regardless of value), it will hide Saturday and Sundays
+ from the calendar.</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#calendar:weekNumbers</code>
+ </td>
+ <td>When present (regardless of value), it will show the number of the week
+ on the calendar.</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#calendar:initialDate</code>
+ </td>
+ <td>Change the date the calendar opens on. When not present, the calendar
+ opens on the current date.</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#calendar:view</code>
+ </td>
+ <td>
+ <p>Which view to display in the calendar:</p>
+ <ul>
+ <li><code spellcheck="false">timeGridDay</code> for the <em>day</em> view;</li>
+ <li
+ ><code spellcheck="false">timeGridWeek</code> for the <em>week</em> view;</li>
+ <li
+ ><code spellcheck="false">dayGridMonth</code> for the <em>month</em> view;</li>
+ <li
+ ><code spellcheck="false">multiMonthYear</code> for the <em>year</em> view;</li>
+ <li
+ ><code spellcheck="false">listMonth</code> for the <em>list</em> view.</li>
+ </ul>
+ <p>Any other value will be dismissed and the default view (month) will be
+ used instead.</p>
+ <p>The value of this label is automatically updated when changing the view
+ using the UI buttons.</p>
+ </td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#calendar:slotDuration</code>
+ </td>
+ <td>Sets how long each timeslot is on the calendar. Defaults to <code spellcheck="false">00:15:00</code> (15
+ minutes). Must have the format "HH:MM:SS". For example, to create timeslots
+ for every 10 minutes, you would set <code spellcheck="false">#calendar:slotDuration="00:10:00"</code>.</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#calendar:slotLabelInterval</code>
+ </td>
+ <td>Sets how often the timeslots on the calendar should be labeled. Defaults
+ to <code spellcheck="false">01:00:00</code> (1 hour). Must have the format
+ "HH:MM:SS". For example, to label timeslots every 30 minutes, you would
+ set <code spellcheck="false">#calendar:slotLabelInterval="00:30:00"</code>.</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">~child:template</code>
+ </td>
+ <td>Defines the template for newly created notes in the calendar (via dragging
+ or clicking).</td>
+ </tr>
+ </tbody>
+</table>
+<p>In addition, the first day of the week can be either Sunday or Monday
+ and can be adjusted from the application settings.</p>
+<h2>Configuring the calendar events using attributes</h2>
+<p>For each note of the calendar, the following attributes can be used:</p>
<figure
class="table">
<table>
@@ -111,494 +179,407 @@ class="table">
</thead>
<tbody>
<tr>
- <td><code spellcheck="false">#calendar:hideWeekends</code>
+ <td><code spellcheck="false">#startDate</code>
</td>
- <td>When present (regardless of value), it will hide Saturday and Sundays
- from the calendar.</td>
+ <td>The date the event starts, which will display it in the calendar. The
+ format is <code spellcheck="false">YYYY-MM-DD</code> (year, month and day
+ separated by a minus sign).</td>
</tr>
<tr>
- <td><code spellcheck="false">#calendar:weekNumbers</code>
+ <td><code spellcheck="false">#endDate</code>
</td>
- <td>When present (regardless of value), it will show the number of the week
- on the calendar.</td>
+ <td>Similar to <code spellcheck="false">startDate</code>, mentions the end
+ date if the event spans across multiple days. The date is inclusive, so
+ the end day is also considered. The attribute can be missing for single-day
+ events.</td>
</tr>
<tr>
- <td><code spellcheck="false">#calendar:initialDate</code>
+ <td><code spellcheck="false">#startTime</code>
</td>
- <td>Change the date the calendar opens on. When not present, the calendar
- opens on the current date.</td>
+ <td>The time the event starts at. If this value is missing, then the event
+ is considered a full-day event. The format is <code spellcheck="false">HH:MM</code> (hours
+ in 24-hour format and minutes).</td>
</tr>
<tr>
- <td><code spellcheck="false">#calendar:view</code>
+ <td><code spellcheck="false">#endTime</code>
</td>
- <td>
- <p>Which view to display in the calendar:</p>
- <ul>
- <li><code spellcheck="false">timeGridDay</code> for the <em>day</em> view;</li>
- <li
- ><code spellcheck="false">timeGridWeek</code> for the <em>week</em> view;</li>
- <li
- ><code spellcheck="false">dayGridMonth</code> for the <em>month</em> view;</li>
- <li
- ><code spellcheck="false">multiMonthYear</code> for the <em>year</em> view;</li>
- <li
- ><code spellcheck="false">listMonth</code> for the <em>list</em> view.</li>
- </ul>
- <p>Any other value will be dismissed and the default view (month) will be
- used instead.</p>
- <p>The value of this label is automatically updated when changing the view
- using the UI buttons.</p>
+ <td>Similar to <code spellcheck="false">startTime</code>, it mentions the time
+ at which the event ends (in relation with <code spellcheck="false">endDate</code> if
+ present, or <code spellcheck="false">startDate</code>).</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#recurrence</code>
+ </td>
+ <td>This is an optional CalDAV <code spellcheck="false">RRULE</code> string
+ that if present, determines whether a task should repeat or not. Note that
+ it does not include the <code spellcheck="false">DTSTART</code> attribute,
+ which is derived from the <code spellcheck="false">#startDate</code> and
+ <code
+ spellcheck="false">#startTime</code>directly. For examples of valid <code spellcheck="false">RRULE</code> strings
+ see <a href="https://icalendar.org/rrule-tool.html">https://icalendar.org/rrule-tool.html</a>
+ </td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#color</code>
+ </td>
+ <td>Displays the event with a specified color (named such as <code spellcheck="false">red</code>,
+ <code
+ spellcheck="false">gray</code>or hex such as <code spellcheck="false">#FF0000</code>). This
+ will also change the color of the note in other places such as the note
+ tree.</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#calendar:color</code>
+ </td>
+ <td><strong>❌️ Removed since v0.100.0. Use</strong> <code spellcheck="false">**#color**</code> <strong>instead.</strong>&nbsp;&nbsp;&nbsp;
+ <br>
+ <br>Similar to <code spellcheck="false">#color</code>, but applies the color
+ only for the event in the calendar and not for other places such as the
+ note tree.</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#iconClass</code>
+ </td>
+ <td>If present, the icon of the note will be displayed to the left of the
+ event title.</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#calendar:title</code>
+ </td>
+ <td>Changes the title of an event to point to an attribute of the note other
+ than the title, can either a label or a relation (without the <code spellcheck="false">#</code> or
+ <code
+ spellcheck="false">~</code>symbol). See <em>Use-cases</em> for more information.</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#calendar:displayedAttributes</code>
+ </td>
+ <td>Allows displaying the value of one or more attributes in the calendar
+ like this:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+ <br>
+ <br>
+ <img src="7_Calendar_image.png">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+ <br>
+ <br><code spellcheck="false">#weight="70" #Mood="Good" #calendar:displayedAttributes="weight,Mood"</code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+ <br>
+ <br>It can also be used with relations, case in which it will display the
+ title of the target note:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+ <br>
+ <br><code spellcheck="false">~assignee=@My assignee #calendar:displayedAttributes="assignee"</code>
</td>
</tr>
<tr>
- <td><code spellcheck="false">#calendar:slotDuration</code>
+ <td><code spellcheck="false">#calendar:startDate</code>
</td>
- <td>Sets how long each timeslot is on the calendar. Defaults to <code spellcheck="false">00:15:00</code> (15
- minutes). Must have the format "HH:MM:SS". For example, to create timeslots
- for every 10 minutes, you would set <code spellcheck="false">#calendar:slotDuration="00:10:00"</code>.</td>
+ <td>Allows using a different label to represent the start date, other than
+ <code
+ spellcheck="false">startDate</code>(e.g. <code spellcheck="false">expiryDate</code>). The
+ label name <strong>must not be</strong> prefixed with <code spellcheck="false">#</code>.
+ If the label is not defined for a note, the default will be used instead.</td>
</tr>
<tr>
- <td><code spellcheck="false">#calendar:slotLabelInterval</code>
+ <td><code spellcheck="false">#calendar:endDate</code>
</td>
- <td>Sets how often the timeslots on the calendar should be labeled. Defaults
- to <code spellcheck="false">01:00:00</code> (1 hour). Must have the format
- "HH:MM:SS". For example, to label timeslots every 30 minutes, you would
- set <code spellcheck="false">#calendar:slotLabelInterval="00:30:00"</code>.</td>
+ <td>Similar to <code spellcheck="false">#calendar:startDate</code>, allows
+ changing the attribute which is being used to read the end date.</td>
</tr>
<tr>
- <td><code spellcheck="false">~child:template</code>
+ <td><code spellcheck="false">#calendar:startTime</code>
</td>
- <td>Defines the template for newly created notes in the calendar (via dragging
- or clicking).</td>
+ <td>Similar to <code spellcheck="false">#calendar:startDate</code>, allows
+ changing the attribute which is being used to read the start time.</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#calendar:endTime</code>
+ </td>
+ <td>Similar to <code spellcheck="false">#calendar:startDate</code>, allows
+ changing the attribute which is being used to read the end time.</td>
</tr>
</tbody>
</table>
</figure>
- <p>In addition, the first day of the week can be either Sunday or Monday
- and can be adjusted from the application settings.</p>
- <h2>Configuring the calendar events using attributes</h2>
- <p>For each note of the calendar, the following attributes can be used:</p>
- <figure
- class="table">
+ <h2>How the calendar works</h2>
+ <p>
+ <img src="9_Calendar_image.png">
+ </p>
+ <p>The calendar displays all the child notes of the Collection that have
+ a <code spellcheck="false">#startDate</code>. An <code spellcheck="false">#endDate</code> can
+ optionally be added.</p>
+ <p>If editing the start date and end date from the note itself is desirable,
+ the following attributes can be added to the Collection note:</p><pre><code class="language-text-x-trilium-auto">#viewType=calendar #label:startDate(inheritable)="promoted,alias=Start Date,single,date"
+#label:endDate(inheritable)="promoted,alias=End Date,single,date"
+#hidePromotedAttributes </code></pre>
+ <p>This will result in:</p>
+ <p>
+ <img src="8_Calendar_image.png">
+ </p>
+ <p>When not used in a Journal, the calendar is recursive. That is, it will
+ look for events not just in its child notes but also in the children of
+ these child notes.</p>
+ <h2>Recurrence</h2>
+ <p>The built in calendar view also supports repeating tasks. If a child note
+ of the calendar has a #recurrence label with a valid recurrence, that event
+ will repeat on the calendar according to the recurrence string.&nbsp;</p>
+ <p>For example, to make a note repeat on the calendar:</p>
+ <ul>
+ <li>Every Day - <code spellcheck="false">#recurrence="FREQ=DAILY;INTERVAL=1"</code>
+ </li>
+ <li>Every 3 days - <code spellcheck="false">#recurrence="FREQ=DAILY;INTERVAL=3"</code>
+ </li>
+ <li>Every week - <code spellcheck="false">#recurrence="FREQ=WEEKLY;INTERVAL=1"</code>
+ </li>
+ <li>Every 2 weeks on Monday, Wednesday and Friday - <code spellcheck="false">#recurrence="FREQ=WEEKLY;INTERVAL=2;BYDAY=MO,WE,FR"</code>
+ </li>
+ <li>Every 3 months - <code spellcheck="false">#recurrence="FREQ=MONTHLY;INTERVAL=3"</code>
+ </li>
+ <li>Every 2 months on the First Sunday - <code spellcheck="false">#recurrence="FREQ=MONTHLY;INTERVAL=2;BYDAY=1SU"</code>
+ </li>
+ <li>Every month on the Last Friday - <code spellcheck="false">#recurrence="FREQ=MONTHLY;INTERVAL=1;BYDAY=-1FR"</code>
+ </li>
+ <li>And so on.</li>
+ </ul>
+ <p>For other examples of valid <code spellcheck="false">RRULE</code> strings
+ see <a href="https://icalendar.org/rrule-tool.html">https://icalendar.org/rrule-tool.html</a>
+ </p>
+ <p>Note that the recurrence string does not include the <code spellcheck="false">DTSTART</code> attribute
+ as defined in the iCAL specifications. This is derived directly from the
+ <code
+ spellcheck="false">startDate</code>and <code spellcheck="false">startTime</code> attributes</p>
+ <p>If you want to override the label the calendar uses to fetch the recurrence
+ string, you can use the <code spellcheck="false">#calendar:recurrence</code> attribute.
+ For example, you can set <code spellcheck="false">#calendar:recurrence=taskRepeats</code>.
+ Then you can set your recurrence string like <code spellcheck="false">#taskRepeats="FREQ=DAILY;INTERVAL=1"</code>
+ </p>
+ <p>Also note that the recurrence label can be made promoted as with the start
+ and end dates.&nbsp;</p>
+ <aside class="admonition warning">
+ <p>If the recurrence string is not valid, a toast will be shown with the
+ note ID and title of the note with the erroneous recurrence message. This
+ note will not be added to the calendar</p>
+ </aside>
+ <h2>Slot Duration &amp; Slot Label Interval</h2>
+ <p>Trilium's calendar view is powered by FullCalendar, which gives you fine-grained
+ control over how the time grid looks and behaves for day and week views.
+ Two labels you can use to configure these views are <code spellcheck="false">#calendar:slotDuration</code> and
+ <code
+ spellcheck="false">#calendar:slotLabelInterval</code>. Understanding what each one does —
+ and how they interact — lets you tailor the calendar to match your workflow,
+ whether you're scheduling in 15-minute increments or planning out your
+ day in broad hourly blocks.</p>
+ <p>These settings can also be adjusted from the <em>Collections</em> tab in
+ the&nbsp;<a class="reference-link" href="#root/_help_BlN9DFI679QC">Ribbon</a>.</p>
+ <h3>Slot duration</h3>
+ <p>Controls how tall each time slot is on the calendar — essentially the
+ smallest unit of time the grid is divided into. A shorter duration means
+ more rows and finer granularity; a longer one means fewer, chunkier rows.
+ The default is one row every 15 minutes.</p>
+ <p><strong>Examples:</strong>
+ </p>
+ <figure class="table">
<table>
<thead>
<tr>
- <th>Name</th>
- <th>Description</th>
+ <th>Value</th>
+ <th>Result</th>
</tr>
</thead>
<tbody>
<tr>
- <td><code spellcheck="false">#startDate</code>
+ <td><code spellcheck="false">#calendar:slotDuration="00:15:00"</code>
</td>
- <td>The date the event starts, which will display it in the calendar. The
- format is <code spellcheck="false">YYYY-MM-DD</code> (year, month and day
- separated by a minus sign).</td>
+ <td>One row every 15 minutes</td>
</tr>
<tr>
- <td><code spellcheck="false">#endDate</code>
+ <td><code spellcheck="false">#calendar:slotDuration="00:30:00"</code>
</td>
- <td>Similar to <code spellcheck="false">startDate</code>, mentions the end
- date if the event spans across multiple days. The date is inclusive, so
- the end day is also considered. The attribute can be missing for single-day
- events.</td>
+ <td>One row every 30 minutes</td>
</tr>
<tr>
- <td><code spellcheck="false">#startTime</code>
+ <td><code spellcheck="false">#calendar:slotDuration="01:00:00"</code>
</td>
- <td>The time the event starts at. If this value is missing, then the event
- is considered a full-day event. The format is <code spellcheck="false">HH:MM</code> (hours
- in 24-hour format and minutes).</td>
+ <td>One row every hour</td>
</tr>
+ </tbody>
+ </table>
+ </figure>
+ <h3>Label interval</h3>
+ <p>Controls how often a time label appears on the left-hand axis. This is
+ independent of the slot size — you can have very small slots but only label
+ every hour to keep the axis readable. The default is a time label shown
+ every hour.</p>
+ <p><strong>Examples:</strong>
+ </p>
+ <figure class="table">
+ <table>
+ <thead>
<tr>
- <td><code spellcheck="false">#endTime</code>
- </td>
- <td>Similar to <code spellcheck="false">startTime</code>, it mentions the time
- at which the event ends (in relation with <code spellcheck="false">endDate</code> if
- present, or <code spellcheck="false">startDate</code>).</td>
+ <th>Value</th>
+ <th>Result</th>
</tr>
+ </thead>
+ <tbody>
<tr>
- <td><code spellcheck="false">#recurrence</code>
- </td>
- <td>This is an optional CalDAV <code spellcheck="false">RRULE</code> string
- that if present, determines whether a task should repeat or not. Note that
- it does not include the <code spellcheck="false">DTSTART</code> attribute,
- which is derived from the <code spellcheck="false">#startDate</code> and
- <code
- spellcheck="false">#startTime</code>directly. For examples of valid <code spellcheck="false">RRULE</code> strings
- see <a href="https://icalendar.org/rrule-tool.html">https://icalendar.org/rrule-tool.html</a>
+ <td><code spellcheck="false">#calendar:slotLabelInterval="00:30:00"</code>
</td>
+ <td>Show a time label every 30 minutes</td>
</tr>
<tr>
- <td><code spellcheck="false">#color</code>
+ <td><code spellcheck="false">#calendar:slotLabelInterval="01:00:00"</code>
</td>
- <td>Displays the event with a specified color (named such as <code spellcheck="false">red</code>,
- <code
- spellcheck="false">gray</code>or hex such as <code spellcheck="false">#FF0000</code>). This
- will also change the color of the note in other places such as the note
- tree.</td>
+ <td>Show a time label every hour</td>
</tr>
+ </tbody>
+ </table>
+ </figure>
+ <h3>Useful combinations</h3>
+ <figure class="table">
+ <table>
+ <thead>
<tr>
- <td><code spellcheck="false">#calendar:color</code>
- </td>
- <td><strong>❌️ Removed since v0.100.0. Use</strong> <code spellcheck="false">**#color**</code> <strong>instead.</strong>&nbsp;&nbsp;&nbsp;
- <br>
- <br>Similar to <code spellcheck="false">#color</code>, but applies the color
- only for the event in the calendar and not for other places such as the
- note tree.</td>
+ <th><code spellcheck="false">#calendar:slotDuration</code>
+ </th>
+ <th><code spellcheck="false">#calendar:slotLabelInterval</code>
+ </th>
+ <th>Result</th>
</tr>
+ </thead>
+ <tbody>
<tr>
- <td><code spellcheck="false">#iconClass</code>
+ <td><code spellcheck="false">00:15:00</code>
</td>
- <td>If present, the icon of the note will be displayed to the left of the
- event title.</td>
- </tr>
- <tr>
- <td><code spellcheck="false">#calendar:title</code>
+ <td><code spellcheck="false">01:00:00</code>
</td>
- <td>Changes the title of an event to point to an attribute of the note other
- than the title, can either a label or a relation (without the <code spellcheck="false">#</code> or
- <code
- spellcheck="false">~</code>symbol). See <em>Use-cases</em> for more information.</td>
+ <td>Fine grid, clean axis — good for busy schedules</td>
</tr>
<tr>
- <td><code spellcheck="false">#calendar:displayedAttributes</code>
+ <td><code spellcheck="false">00:30:00</code>
</td>
- <td>Allows displaying the value of one or more attributes in the calendar
- like this:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- <br>
- <br>
- <img src="7_Calendar_image.png">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- <br>
- <br><code spellcheck="false">#weight="70" #Mood="Good" #calendar:displayedAttributes="weight,Mood"</code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- <br>
- <br>It can also be used with relations, case in which it will display the
- title of the target note:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- <br>
- <br><code spellcheck="false">~assignee=@My assignee #calendar:displayedAttributes="assignee"</code>
+ <td><code spellcheck="false">01:00:00</code>
</td>
+ <td>Standard calendar feel</td>
</tr>
<tr>
- <td><code spellcheck="false">#calendar:startDate</code>
+ <td><code spellcheck="false">01:00:00</code>
</td>
- <td>Allows using a different label to represent the start date, other than
- <code
- spellcheck="false">startDate</code>(e.g. <code spellcheck="false">expiryDate</code>). The
- label name <strong>must not be</strong> prefixed with <code spellcheck="false">#</code>.
- If the label is not defined for a note, the default will be used instead.</td>
- </tr>
- <tr>
- <td><code spellcheck="false">#calendar:endDate</code>
+ <td><code spellcheck="false">01:00:00</code>
</td>
- <td>Similar to <code spellcheck="false">#calendar:startDate</code>, allows
- changing the attribute which is being used to read the end date.</td>
+ <td>Simple hourly grid — good for day planning</td>
</tr>
<tr>
- <td><code spellcheck="false">#calendar:startTime</code>
+ <td><code spellcheck="false">00:15:00</code>
</td>
- <td>Similar to <code spellcheck="false">#calendar:startDate</code>, allows
- changing the attribute which is being used to read the start time.</td>
- </tr>
- <tr>
- <td><code spellcheck="false">#calendar:endTime</code>
+ <td><code spellcheck="false">00:30:00</code>
</td>
- <td>Similar to <code spellcheck="false">#calendar:startDate</code>, allows
- changing the attribute which is being used to read the end time.</td>
+ <td>Fine grid, labels every 30 min — balanced detail</td>
</tr>
</tbody>
</table>
- </figure>
- <h2>How the calendar works</h2>
- <p>
- <img src="9_Calendar_image.png">
- </p>
- <p>The calendar displays all the child notes of the Collection that have
- a <code spellcheck="false">#startDate</code>. An <code spellcheck="false">#endDate</code> can
- optionally be added.</p>
- <p>If editing the start date and end date from the note itself is desirable,
- the following attributes can be added to the Collection note:</p><pre><code class="language-text-x-trilium-auto">#viewType=calendar #label:startDate(inheritable)="promoted,alias=Start Date,single,date"
-#label:endDate(inheritable)="promoted,alias=End Date,single,date"
-#hidePromotedAttributes </code></pre>
- <p>This will result in:</p>
- <p>
- <img src="8_Calendar_image.png">
- </p>
- <p>When not used in a Journal, the calendar is recursive. That is, it will
- look for events not just in its child notes but also in the children of
- these child notes.</p>
- <h2>Recurrence</h2>
- <p>The built in calendar view also supports repeating tasks. If a child note
- of the calendar has a #recurrence label with a valid recurrence, that event
- will repeat on the calendar according to the recurrence string.&nbsp;</p>
- <p>For example, to make a note repeat on the calendar:</p>
- <ul>
- <li>Every Day - <code spellcheck="false">#recurrence="FREQ=DAILY;INTERVAL=1"</code>
- </li>
- <li>Every 3 days - <code spellcheck="false">#recurrence="FREQ=DAILY;INTERVAL=3"</code>
- </li>
- <li>Every week - <code spellcheck="false">#recurrence="FREQ=WEEKLY;INTERVAL=1"</code>
- </li>
- <li>Every 2 weeks on Monday, Wednesday and Friday - <code spellcheck="false">#recurrence="FREQ=WEEKLY;INTERVAL=2;BYDAY=MO,WE,FR"</code>
- </li>
- <li>Every 3 months - <code spellcheck="false">#recurrence="FREQ=MONTHLY;INTERVAL=3"</code>
- </li>
- <li>Every 2 months on the First Sunday - <code spellcheck="false">#recurrence="FREQ=MONTHLY;INTERVAL=2;BYDAY=1SU"</code>
- </li>
- <li>Every month on the Last Friday - <code spellcheck="false">#recurrence="FREQ=MONTHLY;INTERVAL=1;BYDAY=-1FR"</code>
- </li>
- <li>And so on.</li>
- </ul>
- <p>For other examples of valid <code spellcheck="false">RRULE</code> strings
- see <a href="https://icalendar.org/rrule-tool.html">https://icalendar.org/rrule-tool.html</a>
- </p>
- <p>Note that the recurrence string does not include the <code spellcheck="false">DTSTART</code> attribute
- as defined in the iCAL specifications. This is derived directly from the
- <code
- spellcheck="false">startDate</code>and <code spellcheck="false">startTime</code> attributes</p>
- <p>If you want to override the label the calendar uses to fetch the recurrence
- string, you can use the <code spellcheck="false">#calendar:recurrence</code> attribute.
- For example, you can set <code spellcheck="false">#calendar:recurrence=taskRepeats</code>.
- Then you can set your recurrence string like <code spellcheck="false">#taskRepeats="FREQ=DAILY;INTERVAL=1"</code>
- </p>
- <p>Also note that the recurrence label can be made promoted as with the start
- and end dates.&nbsp;</p>
- <aside class="admonition warning">
- <p>If the recurrence string is not valid, a toast will be shown with the
- note ID and title of the note with the erroneous recurrence message. This
- note will not be added to the calendar</p>
- </aside>
- <h2>Slot Duration &amp; Slot Label Interval</h2>
- <p>Trilium's calendar view is powered by FullCalendar, which gives you fine-grained
- control over how the time grid looks and behaves for day and week views.
- Two labels you can use to configure these views are <code spellcheck="false">#calendar:slotDuration</code> and
- <code
- spellcheck="false">#calendar:slotLabelInterval</code>. Understanding what each one does —
- and how they interact — lets you tailor the calendar to match your workflow,
- whether you're scheduling in 15-minute increments or planning out your
- day in broad hourly blocks.</p>
- <p>These settings can also be adjusted from the <em>Collections</em> tab in
- the&nbsp;<a class="reference-link" href="#root/_help_BlN9DFI679QC">Ribbon</a>.</p>
- <h3>Slot duration</h3>
- <p>Controls how tall each time slot is on the calendar — essentially the
- smallest unit of time the grid is divided into. A shorter duration means
- more rows and finer granularity; a longer one means fewer, chunkier rows.
- The default is one row every 15 minutes.</p>
- <p><strong>Examples:</strong>
- </p>
- <figure class="table">
- <table>
- <thead>
- <tr>
- <th>Value</th>
- <th>Result</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><code spellcheck="false">#calendar:slotDuration="00:15:00"</code>
- </td>
- <td>One row every 15 minutes</td>
- </tr>
- <tr>
- <td><code spellcheck="false">#calendar:slotDuration="00:30:00"</code>
- </td>
- <td>One row every 30 minutes</td>
- </tr>
- <tr>
- <td><code spellcheck="false">#calendar:slotDuration="01:00:00"</code>
- </td>
- <td>One row every hour</td>
- </tr>
- </tbody>
- </table>
- </figure>
- <h3>Label interval</h3>
- <p>Controls how often a time label appears on the left-hand axis. This is
- independent of the slot size — you can have very small slots but only label
- every hour to keep the axis readable. The default is a time label shown
- every hour.</p>
- <p><strong>Examples:</strong>
- </p>
- <figure class="table">
- <table>
- <thead>
- <tr>
- <th>Value</th>
- <th>Result</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><code spellcheck="false">#calendar:slotLabelInterval="00:30:00"</code>
- </td>
- <td>Show a time label every 30 minutes</td>
- </tr>
- <tr>
- <td><code spellcheck="false">#calendar:slotLabelInterval="01:00:00"</code>
- </td>
- <td>Show a time label every hour</td>
- </tr>
- </tbody>
- </table>
- </figure>
- <h3>Useful combinations</h3>
- <figure class="table">
- <table>
- <thead>
- <tr>
- <th><code spellcheck="false">#calendar:slotDuration</code>
- </th>
- <th><code spellcheck="false">#calendar:slotLabelInterval</code>
- </th>
- <th>Result</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><code spellcheck="false">00:15:00</code>
- </td>
- <td><code spellcheck="false">01:00:00</code>
- </td>
- <td>Fine grid, clean axis — good for busy schedules</td>
- </tr>
- <tr>
- <td><code spellcheck="false">00:30:00</code>
- </td>
- <td><code spellcheck="false">01:00:00</code>
- </td>
- <td>Standard calendar feel</td>
- </tr>
- <tr>
- <td><code spellcheck="false">01:00:00</code>
- </td>
- <td><code spellcheck="false">01:00:00</code>
- </td>
- <td>Simple hourly grid — good for day planning</td>
- </tr>
- <tr>
- <td><code spellcheck="false">00:15:00</code>
- </td>
- <td><code spellcheck="false">00:30:00</code>
- </td>
- <td>Fine grid, labels every 30 min — balanced detail</td>
- </tr>
- </tbody>
- </table>
- </figure>
- <h3>Format</h3>
- <p>Both values use <code spellcheck="false">HH:mm:ss</code> format. Hours can
- go up to <code spellcheck="false">24</code> (<code spellcheck="false">24:00:00</code>),
- while minutes and seconds must be between <code spellcheck="false">00</code> and
- <code
- spellcheck="false">59</code>. The minimum meaningful duration is 1 minute (<code spellcheck="false">00:01:00</code>).</p>
- <h2>Use-cases</h2>
- <h3>Using with the Journal / calendar</h3>
- <p>It is possible to integrate the calendar view into the Journal with day
- notes. In order to do so change the note type of the Journal note (calendar
- root) to Collection and then select the Calendar View.</p>
- <p>Based on the <code spellcheck="false">#calendarRoot</code> (or <code spellcheck="false">#workspaceCalendarRoot</code>)
- attribute, the calendar will know that it's in a calendar and apply the
- following:</p>
- <ul>
- <li>The calendar events are now rendered based on their <code spellcheck="false">dateNote</code> attribute
- rather than <code spellcheck="false">startDate</code>.</li>
- <li>Interactive editing such as dragging over an empty era or resizing an
- event is no longer possible.</li>
- <li>Clicking on the empty space on a date will automatically open that day's
- note or create it if it does not exist.</li>
- <li>Direct children of a day note will be displayed on the calendar despite
- not having a <code spellcheck="false">dateNote</code> attribute. Children
- of the child notes will not be displayed.</li>
- </ul>
- <p>
- <img src="6_Calendar_image.png" width="1217"
- height="724">
- </p>
- <h3>Using a different attribute as event title</h3>
- <p>By default, events are displayed on the calendar by their note title.
- However, it is possible to configure a different attribute to be displayed
- instead.</p>
- <p>To do so, assign <code spellcheck="false">#calendar:title</code> to the
- child note (not the calendar/Collection note), with the value being
- <code
- spellcheck="false">name</code>where <code spellcheck="false">name</code> can be any label (make
- not to add the <code spellcheck="false">#</code> prefix). The attribute can
- also come through inheritance such as a template attribute. If the note
- does not have the requested label, the title of the note will be used instead.</p>
- <figure
- class="table">
- <table>
- <thead>
- <tr>
- <th>&nbsp;</th>
- <th>&nbsp;</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><pre><code class="language-text-x-trilium-auto">#startDate=2025-02-11 #endDate=2025-02-13 #name="My vacation" #calendar:title="name"</code></pre>
- </td>
- <td>
- <p>&nbsp;</p>
- <figure class="image image-style-align-center">
- <img style="aspect-ratio:445/124;" src="3_Calendar_image.png"
- width="445" height="124">
- </figure>
- </td>
- </tr>
- </tbody>
- </table>
- </figure>
- <h3>Using a relation attribute as event title</h3>
- <p>Similarly to using an attribute, use <code spellcheck="false">#calendar:title</code> and
- set it to <code spellcheck="false">name</code> where <code spellcheck="false">name</code> is
- the name of the relation to use.</p>
- <p>Moreover, if there are more relations of the same name, they will be displayed
- as multiple events coming from the same note.</p>
- <figure class="table">
- <table>
- <thead>
- <tr>
- <th>&nbsp;</th>
- <th>&nbsp;</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><pre><code class="language-text-x-trilium-auto">#startDate=2025-02-14 #endDate=2025-02-15 ~for=@John Smith ~for=@Jane Doe #calendar:title="for"</code></pre>
- </td>
- <td>
- <img src="4_Calendar_image.png" width="294"
- height="151">
- </td>
- </tr>
- </tbody>
- </table>
- </figure>
- <p>Note that it's even possible to have a <code spellcheck="false">#calendar:title</code> on
- the target note (e.g. “John Smith”) which will try to render an attribute
- of it. Note that it's not possible to use a relation here as well for safety
- reasons (an accidental recursion &nbsp;of attributes could cause the application
- to loop infinitely).</p>
- <figure class="table">
- <table>
- <thead>
- <tr>
- <th>&nbsp;</th>
- <th>&nbsp;</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><pre><code class="language-text-x-trilium-auto">#calendar:title="shortName" #shortName="John S."</code></pre>
- </td>
- <td>
- <figure class="image image-style-align-center">
- <img style="aspect-ratio:296/150;" src="1_Calendar_image.png"
- width="296" height="150">
- </figure>
- </td>
- </tr>
- </tbody>
- </table>
- </figure>
\ No newline at end of file
+ </figure>
+ <h3>Format</h3>
+ <p>Both values use <code spellcheck="false">HH:mm:ss</code> format. Hours can
+ go up to <code spellcheck="false">24</code> (<code spellcheck="false">24:00:00</code>),
+ while minutes and seconds must be between <code spellcheck="false">00</code> and
+ <code
+ spellcheck="false">59</code>. The minimum meaningful duration is 1 minute (<code spellcheck="false">00:01:00</code>).</p>
+ <h2>Use-cases</h2>
+ <h3>Using with the Journal / calendar</h3>
+ <p>It is possible to integrate the calendar view into the Journal with day
+ notes. In order to do so change the note type of the Journal note (calendar
+ root) to Collection and then select the Calendar View.</p>
+ <p>Based on the <code spellcheck="false">#calendarRoot</code> (or <code spellcheck="false">#workspaceCalendarRoot</code>)
+ attribute, the calendar will know that it's in a calendar and apply the
+ following:</p>
+ <ul>
+ <li>The calendar events are now rendered based on their <code spellcheck="false">dateNote</code> attribute
+ rather than <code spellcheck="false">startDate</code>.</li>
+ <li>Interactive editing such as dragging over an empty era or resizing an
+ event is no longer possible.</li>
+ <li>Clicking on the empty space on a date will automatically open that day's
+ note or create it if it does not exist.</li>
+ <li>Direct children of a day note will be displayed on the calendar despite
+ not having a <code spellcheck="false">dateNote</code> attribute. Children
+ of the child notes will not be displayed.</li>
+ </ul>
+ <img src="6_Calendar_image.png" width="1217"
+ height="724">
+ <h3>Using a different attribute as event title</h3>
+ <p>By default, events are displayed on the calendar by their note title.
+ However, it is possible to configure a different attribute to be displayed
+ instead.</p>
+ <p>To do so, assign <code spellcheck="false">#calendar:title</code> to the
+ child note (not the calendar/Collection note), with the value being
+ <code
+ spellcheck="false">name</code>where <code spellcheck="false">name</code> can be any label (make
+ not to add the <code spellcheck="false">#</code> prefix). The attribute can
+ also come through inheritance such as a template attribute. If the note
+ does not have the requested label, the title of the note will be used instead.</p>
+ <table>
+ <thead>
+ <tr>
+ <th>&nbsp;</th>
+ <th>&nbsp;</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><pre><code class="language-text-x-trilium-auto">#startDate=2025-02-11 #endDate=2025-02-13 #name="My vacation" #calendar:title="name"</code></pre>
+ </td>
+ <td>
+ <p>&nbsp;</p>
+ <figure class="image image-style-align-center">
+ <img style="aspect-ratio:445/124;" src="3_Calendar_image.png"
+ width="445" height="124">
+ </figure>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ <h3>Using a relation attribute as event title</h3>
+ <p>Similarly to using an attribute, use <code spellcheck="false">#calendar:title</code> and
+ set it to <code spellcheck="false">name</code> where <code spellcheck="false">name</code> is
+ the name of the relation to use.</p>
+ <p>Moreover, if there are more relations of the same name, they will be displayed
+ as multiple events coming from the same note.</p>
+ <table>
+ <thead>
+ <tr>
+ <th>&nbsp;</th>
+ <th>&nbsp;</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><pre><code class="language-text-x-trilium-auto">#startDate=2025-02-14 #endDate=2025-02-15 ~for=@John Smith ~for=@Jane Doe #calendar:title="for"</code></pre>
+ </td>
+ <td>
+ <img src="4_Calendar_image.png" width="294"
+ height="151">
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ <p>Note that it's even possible to have a <code spellcheck="false">#calendar:title</code> on
+ the target note (e.g. “John Smith”) which will try to render an attribute
+ of it. Note that it's not possible to use a relation here as well for safety
+ reasons (an accidental recursion &nbsp;of attributes could cause the application
+ to loop infinitely).</p>
+ <table>
+ <thead>
+ <tr>
+ <th>&nbsp;</th>
+ <th>&nbsp;</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><pre><code class="language-text-x-trilium-auto">#calendar:title="shortName" #shortName="John S."</code></pre>
+ </td>
+ <td>
+ <figure class="image image-style-align-center">
+ <img style="aspect-ratio:296/150;" src="1_Calendar_image.png"
+ width="296" height="150">
+ </figure>
+ </td>
+ </tr>
+ </tbody>
+ </table>
\ No newline at end of file
diff --git a/docs/Developer Guide/Developer Guide/Architecture/Database/Database structure/attributes.md b/docs/Developer Guide/Developer Guide/Architecture/Database/Database structure/attributes.md
index f1cbb99c47..c52a939f90 100644
--- a/docs/Developer Guide/Developer Guide/Architecture/Database/Database structure/attributes.md
+++ b/docs/Developer Guide/Developer Guide/Architecture/Database/Database structure/attributes.md
@@ -1,2 +1,84 @@
# attributes
-<table><thead><tr><th>Column Name</th><th>Data Type</th><th>Nullity</th><th>Default value</th><th>Description</th></tr></thead><tbody><tr><th><code>attributeId</code></th><td>Text</td><td>Non-null</td><td>&nbsp;</td><td>Unique Id of the attribute (e.g. <code>qhC1vzU4nwSE</code>), can also have a special unique ID for&nbsp;<a class="reference-link" href="#root/r11Bh3uxFGRj">Special notes</a>&nbsp;(e.g. <code>_lbToday_liconClass</code>).</td></tr><tr><th><code>noteId</code></th><td>Text</td><td>Non-null</td><td>&nbsp;</td><td>The ID of the <a href="notes.md">note</a> this atttribute belongs to</td></tr><tr><th><code>type</code></th><td>Text</td><td>Non-null</td><td>&nbsp;</td><td>The type of attribute (<code>label</code> or <code>relation</code>).</td></tr><tr><th><code>name</code></th><td>Text</td><td>Non-null</td><td>&nbsp;</td><td>The name/key of the attribute.</td></tr><tr><th><code>value</code></th><td>Text</td><td>Non-null</td><td><code>""</code></td><td><ul><li>For <code>label</code> attributes, a free-form value of the attribute.</li><li>For <code>relation</code> attributes, the ID of the <a href="notes.md">note</a> the relation is pointing to.</li></ul></td></tr><tr><th><code>position</code></th><td>Integer</td><td>Non-null</td><td>0</td><td>The position of the attribute compared to the other attributes. Some predefined attributes such as <code>originalFileName</code> have a value of 1000.</td></tr><tr><th><code>utcDateModified</code></th><td>Text</td><td>Non-null</td><td>&nbsp;</td><td>Modification date in UTC format (e.g. <code>2023-11-08 16:43:44.204Z</code>)</td></tr><tr><th><code>isDeleted</code></th><td>Integer</td><td>Non-null</td><td>&nbsp;</td><td><code>1</code> if the entity is <a href="../../../Concepts/Deleted%20notes.md">deleted</a>, <code>0</code> otherwise.</td></tr><tr><th><code>deleteId</code></th><td>Text</td><td>Nullable</td><td><code>null</code></td><td>&nbsp;</td></tr><tr><th><code>isInheritable</code></th><td>Integer</td><td>Nullable</td><td>0</td><td>&nbsp;</td></tr></tbody></table>
\ No newline at end of file
+<table>
+ <thead>
+ <tr>
+ <th>Column Name</th>
+ <th>Data Type</th>
+ <th>Nullity</th>
+ <th>Default value</th>
+ <th>Description</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th><code>attributeId</code></th>
+ <td>Text</td>
+ <td>Non-null</td>
+ <td>&nbsp;</td>
+ <td>Unique Id of the attribute (e.g. <code>qhC1vzU4nwSE</code>), can also have a special unique ID for&nbsp;<a class="reference-link" href="#root/r11Bh3uxFGRj">Special notes</a>&nbsp;(e.g. <code>_lbToday_liconClass</code>).</td>
+ </tr>
+ <tr>
+ <th><code>noteId</code></th>
+ <td>Text</td>
+ <td>Non-null</td>
+ <td>&nbsp;</td>
+ <td>The ID of the <a href="notes.md">note</a> this atttribute belongs to</td>
+ </tr>
+ <tr>
+ <th><code>type</code></th>
+ <td>Text</td>
+ <td>Non-null</td>
+ <td>&nbsp;</td>
+ <td>The type of attribute (<code>label</code> or <code>relation</code>).</td>
+ </tr>
+ <tr>
+ <th><code>name</code></th>
+ <td>Text</td>
+ <td>Non-null</td>
+ <td>&nbsp;</td>
+ <td>The name/key of the attribute.</td>
+ </tr>
+ <tr>
+ <th><code>value</code></th>
+ <td>Text</td>
+ <td>Non-null</td>
+ <td><code>""</code></td>
+ <td><ul><li>For <code>label</code> attributes, a free-form value of the attribute.</li><li>For <code>relation</code> attributes, the ID of the <a href="notes.md">note</a> the relation is pointing to.</li></ul></td>
+ </tr>
+ <tr>
+ <th><code>position</code></th>
+ <td>Integer</td>
+ <td>Non-null</td>
+ <td>0</td>
+ <td>The position of the attribute compared to the other attributes. Some predefined attributes such as <code>originalFileName</code> have a value of 1000.</td>
+ </tr>
+ <tr>
+ <th><code>utcDateModified</code></th>
+ <td>Text</td>
+ <td>Non-null</td>
+ <td>&nbsp;</td>
+ <td>Modification date in UTC format (e.g. <code>2023-11-08 16:43:44.204Z</code>)</td>
+ </tr>
+ <tr>
+ <th><code>isDeleted</code></th>
+ <td>Integer</td>
+ <td>Non-null</td>
+ <td>&nbsp;</td>
+ <td><code>1</code> if the entity is <a href="../../../Concepts/Deleted%20notes.md">deleted</a>, <code>0</code> otherwise.</td>
+ </tr>
+ <tr>
+ <th><code>deleteId</code></th>
+ <td>Text</td>
+ <td>Nullable</td>
+ <td><code>null</code></td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <th><code>isInheritable</code></th>
+ <td>Integer</td>
+ <td>Nullable</td>
+ <td>0</td>
+ <td>&nbsp;</td>
+ </tr>
+ </tbody>
+</table>
\ No newline at end of file
diff --git a/docs/Developer Guide/Developer Guide/Architecture/Database/Database structure/blobs.md b/docs/Developer Guide/Developer Guide/Architecture/Database/Database structure/blobs.md
index 63bf8c24d9..aeb1b1f1ee 100644
--- a/docs/Developer Guide/Developer Guide/Architecture/Database/Database structure/blobs.md
+++ b/docs/Developer Guide/Developer Guide/Architecture/Database/Database structure/blobs.md
@@ -1,2 +1,42 @@
# blobs
-<table><thead><tr><th>Column Name</th><th>Data Type</th><th>Nullity</th><th>Default value</th><th>Description</th></tr></thead><tbody><tr><th><code>blobId</code></th><td>Text</td><td>Non-null</td><td>&nbsp;</td><td><p>The unique ID of the blob (e.g. <code>XXbfAJXqWrYnSXcelLFA</code>).</p><aside class="admonition important"><p>The ID is actually a hash of the content, see <code>AbstractBeccaEntity#saveBlob</code>! It is a logic error to modify an existing blob.</p></aside></td></tr><tr><th><code>content</code></th><td>Text</td><td>Nullable</td><td><code>null</code></td><td><p>The content of the blob, can be either:</p><ul><li data-list-item-id="e1f1b8623c64f95f19751bbe494063d0f">text (for plain text notes or HTML notes).</li><li data-list-item-id="e5bbdee6fe5e5b12361fc74e339c9f1db">binary (for images and other types of attachments)</li></ul></td></tr><tr><th><code>dateModified</code></th><td>Text</td><td>Non-null</td><td>&nbsp;</td><td>Creation date with timezone offset (e.g. <code>2023-11-08 18:43:44.204+0200</code>)</td></tr><tr><th><code>utcDateModified</code></th><td>Text</td><td>Non-null</td><td>&nbsp;</td><td><p>Creation date in UTC format (e.g. <code>2023-11-08 16:43:44.204Z</code>).</p><p>Blobs cannot be modified, so this timestamp specifies when the blob was created.</p></td></tr></tbody></table>
\ No newline at end of file
+<table>
+ <thead>
+ <tr>
+ <th>Column Name</th>
+ <th>Data Type</th>
+ <th>Nullity</th>
+ <th>Default value</th>
+ <th>Description</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th><code>blobId</code></th>
+ <td>Text</td>
+ <td>Non-null</td>
+ <td>&nbsp;</td>
+ <td><p>The unique ID of the blob (e.g. <code>XXbfAJXqWrYnSXcelLFA</code>).</p><aside class="admonition important"><p>The ID is actually a hash of the content, see <code>AbstractBeccaEntity#saveBlob</code>! It is a logic error to modify an existing blob.</p></aside></td>
+ </tr>
+ <tr>
+ <th><code>content</code></th>
+ <td>Text</td>
+ <td>Nullable</td>
+ <td><code>null</code></td>
+ <td><p>The content of the blob, can be either:</p><ul><li data-list-item-id="e1f1b8623c64f95f19751bbe494063d0f">text (for plain text notes or HTML notes).</li><li data-list-item-id="e5bbdee6fe5e5b12361fc74e339c9f1db">binary (for images and other types of attachments)</li></ul></td>
+ </tr>
+ <tr>
+ <th><code>dateModified</code></th>
+ <td>Text</td>
+ <td>Non-null</td>
+ <td>&nbsp;</td>
+ <td>Creation date with timezone offset (e.g. <code>2023-11-08 18:43:44.204+0200</code>)</td>
+ </tr>
+ <tr>
+ <th><code>utcDateModified</code></th>
+ <td>Text</td>
+ <td>Non-null</td>
+ <td>&nbsp;</td>
+ <td><p>Creation date in UTC format (e.g. <code>2023-11-08 16:43:44.204Z</code>).</p><p>Blobs cannot be modified, so this timestamp specifies when the blob was created.</p></td>
+ </tr>
+ </tbody>
+</table>
\ No newline at end of file
diff --git a/docs/Developer Guide/Developer Guide/Concepts/Icons.md b/docs/Developer Guide/Developer Guide/Concepts/Icons.md
index 826ebc9bb5..1c092bc8bd 100644
--- a/docs/Developer Guide/Developer Guide/Concepts/Icons.md
+++ b/docs/Developer Guide/Developer Guide/Concepts/Icons.md
@@ -21,7 +21,51 @@ These are stored in `images`:
## App icons
-<table><thead><tr><th>Name</th><th>Resolution</th><th>Description</th></tr></thead><tbody><tr><td><code>ios/apple-touch-icon.png</code></td><td>180x180</td><td>Used as <code>apple-touch-icon</code>, but only in <code>login.ejs</code> and <code>set_password.ejs</code> for some reason.</td></tr><tr><td><code>mac/icon.icns</code></td><td>512x512</td><td>Provided as <code>--icon</code> to <code>electron-packager</code> for <code>mac-arm64</code> and <code>mac-x64</code> <a href="../Building/Build%20deliveries%20locally.md">builds</a>.</td></tr><tr><td><code>png/128x128.png</code></td><td>128x128</td><td>Used in <code>linux-x64</code> <a href="../Building/Build%20deliveries%20locally.md">build</a>, to provide an <code>icon.png</code>.</td></tr><tr><td><code>png/256x256-dev.png</code></td><td>256x256</td><td>Used by the Electron window icon, if in dev mode.</td></tr><tr><td><code>png/256x256.png</code></td><td>Used by the Electron window icon, if not in dev mode.</td></tr><tr><td><code>win/icon.ico</code></td><td><ul><li>ICO 16x16</li><li>ICO 32x32</li><li>ICO 48x48</li><li>ICO 64x64</li><li>ICO 128x128</li><li>PNG 256x256</li></ul></td><td><ul><li>Used by the <code>win-x64</code> <a href="../Building/Build%20deliveries%20locally.md">build</a>.</li><li>Used by Squirrel Windows installer for: setup icon, app icon, control panel icon</li><li>Used as the favicon.</li></ul></td></tr><tr><td><code>win/setup-banner.gif</code></td><td>640x480</td><td>Used by the Squirrel Windows installer during the installation process. Has only one frame.</td></tr></tbody></table>
+<table>
+ <thead>
+ <tr>
+ <th>Name</th>
+ <th>Resolution</th>
+ <th>Description</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><code>ios/apple-touch-icon.png</code></td>
+ <td>180x180</td>
+ <td>Used as <code>apple-touch-icon</code>, but only in <code>login.ejs</code> and <code>set_password.ejs</code> for some reason.</td>
+ </tr>
+ <tr>
+ <td><code>mac/icon.icns</code></td>
+ <td>512x512</td>
+ <td>Provided as <code>--icon</code> to <code>electron-packager</code> for <code>mac-arm64</code> and <code>mac-x64</code> <a href="../Building/Build%20deliveries%20locally.md">builds</a>.</td>
+ </tr>
+ <tr>
+ <td><code>png/128x128.png</code></td>
+ <td>128x128</td>
+ <td>Used in <code>linux-x64</code> <a href="../Building/Build%20deliveries%20locally.md">build</a>, to provide an <code>icon.png</code>.</td>
+ </tr>
+ <tr>
+ <td><code>png/256x256-dev.png</code></td>
+ <td>256x256</td>
+ <td>Used by the Electron window icon, if in dev mode.</td>
+ </tr>
+ <tr>
+ <td><code>png/256x256.png</code></td>
+ <td>Used by the Electron window icon, if not in dev mode.</td>
+ </tr>
+ <tr>
+ <td><code>win/icon.ico</code></td>
+ <td><ul><li>ICO 16x16</li><li>ICO 32x32</li><li>ICO 48x48</li><li>ICO 64x64</li><li>ICO 128x128</li><li>PNG 256x256</li></ul></td>
+ <td><ul><li>Used by the <code>win-x64</code> <a href="../Building/Build%20deliveries%20locally.md">build</a>.</li><li>Used by Squirrel Windows installer for: setup icon, app icon, control panel icon</li><li>Used as the favicon.</li></ul></td>
+ </tr>
+ <tr>
+ <td><code>win/setup-banner.gif</code></td>
+ <td>640x480</td>
+ <td>Used by the Squirrel Windows installer during the installation process. Has only one frame.</td>
+ </tr>
+ </tbody>
+</table>
## Additional locations where the branding is used
diff --git a/docs/Developer Guide/Developer Guide/Dependencies/Per-dependency checks.md b/docs/Developer Guide/Developer Guide/Dependencies/Per-dependency checks.md
index 309042ffca..0640925536 100644
--- a/docs/Developer Guide/Developer Guide/Dependencies/Per-dependency checks.md
+++ b/docs/Developer Guide/Developer Guide/Dependencies/Per-dependency checks.md
@@ -1,2 +1,189 @@
# Per-dependency checks
-<table class="ck-table-resized"><colgroup><col> <col> <col> <col> <col></colgroup><thead><tr><th>Dependency</th><th>Name in <code>library_loader</code></th><th>Things to check for a basic sanity check</th><th>&nbsp;</th><th>Protected by unit tests</th></tr></thead><tbody><tr><td><code>better-sqlite3</code></td><td>&nbsp;</td><td>See&nbsp;<a class="reference-link" href="Per-dependency%20checks/bettersqlite%20binaries.md">bettersqlite binaries</a>.</td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td><code>jsdom</code></td><td>&nbsp;</td><td><ul><li>Note map</li><li>Clipper</li><li>Note similarity</li></ul></td><td>Protected by typings, should catch any potential changes in API.</td><td>Yes</td></tr><tr><td><code>async-mutex</code></td><td>&nbsp;</td><td><ul><li>Sync</li></ul></td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td><code>axios</code></td><td>&nbsp;</td><td><ul><li>Can't be directly tested, as it's exposed only via the backend script API.</li></ul></td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td><code>sax</code></td><td>&nbsp;</td><td><ul><li>EverNote imports</li></ul></td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td><ul><li><code>ws</code></li><li><code>debounce</code></li></ul></td><td>&nbsp;</td><td><ul><li>Check any action is reported from server to client (e.g. delete a note).</li></ul></td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td><code>ejs</code></td><td>&nbsp;</td><td><ul><li>Onboarding / first setup</li></ul></td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td><code>dayjs</code></td><td>&nbsp;</td><td><ul><li>Day notes</li></ul></td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td><code>semver</code></td><td>&nbsp;</td><td><ul><li>Application should start.</li></ul></td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td><code>https-proxy-agent</code></td><td>&nbsp;</td><td>???</td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td><code>sax</code></td><td>&nbsp;</td><td><ul><li>EverNote import</li></ul></td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td><code>ini</code></td><td>&nbsp;</td><td><ul><li>Affects config, generally if the application starts then it should be OK.</li></ul></td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td><code>jsplumb</code></td><td><code>RELATION_MAP</code></td><td><ul><li>Relation map note type</li></ul></td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td><code>jquery.mark.es6</code></td><td><code>MARKJS</code></td><td><ul><li>In search, when highlighting the text that matched.</li><li>In search in HTML, which might not actually be used since it seems to have been replaced by CKEditor's own find &amp; replace dialog.</li></ul></td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td><code>knockout.js</code></td><td>&nbsp;</td><td><ul><li>Used in rendering the login and main layout of the application.</li></ul></td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td><code>normalize.min.css</code></td><td>&nbsp;</td><td><ul><li>Used in shared notes.</li></ul></td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td><code>wheel-zoom.min.js</code></td><td><code>WHEEL_ZOOM</code></td><td><ul><li>When opening a image that is in attachment.</li><li>When opening a stand-alone image note.</li><li>When zooming in a mermaid chart.</li></ul></td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td><code>fancytree</code></td><td>&nbsp;</td><td><ul><li>The note tree should be fully functional.</li></ul></td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td><code>bootstrap</code></td><td>&nbsp;</td><td><ul><li>Check mostly the on-boarding pages, when there is no database.</li></ul></td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td><code>electron-debug</code></td><td>&nbsp;</td><td><ul><li>Run electron using <code>npm run start-electron</code> and check that the debug hotkeys are still working (Ctrl+Shift+I on Windows/Linux, Cmd+Alt+I for dev tools, Cmd/Ctrl+R for reload).</li></ul></td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td><code>electron-dl</code></td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td><code>eslint</code></td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td><code>marked</code></td><td>&nbsp;</td><td><ul><li>Importing a markdown note.</li></ul></td><td>&nbsp;</td><td>Yes</td></tr><tr><td><code>force-graph</code></td><td>&nbsp;</td><td><ul><li>Note map</li></ul></td><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table>
\ No newline at end of file
+<table class="ck-table-resized">
+ <colgroup>
+ <col>
+ <col>
+ <col>
+ <col>
+ <col>
+ </colgroup>
+ <thead>
+ <tr>
+ <th>Dependency</th>
+ <th>Name in <code>library_loader</code></th>
+ <th>Things to check for a basic sanity check</th>
+ <th>&nbsp;</th>
+ <th>Protected by unit tests</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><code>better-sqlite3</code></td>
+ <td>&nbsp;</td>
+ <td>See&nbsp;<a class="reference-link" href="Per-dependency%20checks/bettersqlite%20binaries.md">bettersqlite binaries</a>.</td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td><code>jsdom</code></td>
+ <td>&nbsp;</td>
+ <td><ul><li>Note map</li><li>Clipper</li><li>Note similarity</li></ul></td>
+ <td>Protected by typings, should catch any potential changes in API.</td>
+ <td>Yes</td>
+ </tr>
+ <tr>
+ <td><code>async-mutex</code></td>
+ <td>&nbsp;</td>
+ <td><ul><li>Sync</li></ul></td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td><code>axios</code></td>
+ <td>&nbsp;</td>
+ <td><ul><li>Can't be directly tested, as it's exposed only via the backend script API.</li></ul></td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td><code>sax</code></td>
+ <td>&nbsp;</td>
+ <td><ul><li>EverNote imports</li></ul></td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td><ul><li><code>ws</code></li><li><code>debounce</code></li></ul></td>
+ <td>&nbsp;</td>
+ <td><ul><li>Check any action is reported from server to client (e.g. delete a note).</li></ul></td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td><code>ejs</code></td>
+ <td>&nbsp;</td>
+ <td><ul><li>Onboarding / first setup</li></ul></td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td><code>dayjs</code></td>
+ <td>&nbsp;</td>
+ <td><ul><li>Day notes</li></ul></td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td><code>semver</code></td>
+ <td>&nbsp;</td>
+ <td><ul><li>Application should start.</li></ul></td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td><code>https-proxy-agent</code></td>
+ <td>&nbsp;</td>
+ <td>???</td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td><code>sax</code></td>
+ <td>&nbsp;</td>
+ <td><ul><li>EverNote import</li></ul></td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td><code>ini</code></td>
+ <td>&nbsp;</td>
+ <td><ul><li>Affects config, generally if the application starts then it should be OK.</li></ul></td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td><code>jsplumb</code></td>
+ <td><code>RELATION_MAP</code></td>
+ <td><ul><li>Relation map note type</li></ul></td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td><code>jquery.mark.es6</code></td>
+ <td><code>MARKJS</code></td>
+ <td><ul><li>In search, when highlighting the text that matched.</li><li>In search in HTML, which might not actually be used since it seems to have been replaced by CKEditor's own find &amp; replace dialog.</li></ul></td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td><code>knockout.js</code></td>
+ <td>&nbsp;</td>
+ <td><ul><li>Used in rendering the login and main layout of the application.</li></ul></td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td><code>normalize.min.css</code></td>
+ <td>&nbsp;</td>
+ <td><ul><li>Used in shared notes.</li></ul></td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td><code>wheel-zoom.min.js</code></td>
+ <td><code>WHEEL_ZOOM</code></td>
+ <td><ul><li>When opening a image that is in attachment.</li><li>When opening a stand-alone image note.</li><li>When zooming in a mermaid chart.</li></ul></td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td><code>fancytree</code></td>
+ <td>&nbsp;</td>
+ <td><ul><li>The note tree should be fully functional.</li></ul></td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td><code>bootstrap</code></td>
+ <td>&nbsp;</td>
+ <td><ul><li>Check mostly the on-boarding pages, when there is no database.</li></ul></td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td><code>electron-debug</code></td>
+ <td>&nbsp;</td>
+ <td><ul><li>Run electron using <code>npm run start-electron</code> and check that the debug hotkeys are still working (Ctrl+Shift+I on Windows/Linux, Cmd+Alt+I for dev tools, Cmd/Ctrl+R for reload).</li></ul></td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td><code>electron-dl</code></td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td><code>eslint</code></td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td><code>marked</code></td>
+ <td>&nbsp;</td>
+ <td><ul><li>Importing a markdown note.</li></ul></td>
+ <td>&nbsp;</td>
+ <td>Yes</td>
+ </tr>
+ <tr>
+ <td><code>force-graph</code></td>
+ <td>&nbsp;</td>
+ <td><ul><li>Note map</li></ul></td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+ </tbody>
+</table>
\ No newline at end of file
diff --git a/docs/Developer Guide/Developer Guide/Testing.md b/docs/Developer Guide/Developer Guide/Testing.md
index a8d836f81a..9342613c16 100644
--- a/docs/Developer Guide/Developer Guide/Testing.md
+++ b/docs/Developer Guide/Developer Guide/Testing.md
@@ -51,7 +51,14 @@ Using `vitest`, there are some unit and integration tests done for both the clie
These tests can be found by looking for the corresponding `.spec.ts` in the same directory as the source file.
-<table><tbody><tr><td><p>To run the server-side tests:</p><pre><code class="language-text-x-trilium-auto">npm run server:test</code></pre><p>To view the code coverage for the server:</p><pre><code class="language-text-x-trilium-auto">npm run server:coverage</code></pre><p>Afterwards, a friendly HTML report can be found in <code>/coverage/index.html</code>.</p></td><td><p>To run the client-side tests:</p><pre><code class="language-text-x-trilium-auto">npm run client:test</code></pre><p>To view the code coverage for the client:</p><pre><code class="language-text-x-trilium-auto">npm run client:coverage</code></pre><p>Afterwards, a friendly HTML report can be found in <code>/src/public/app/coverage/index.html</code>.</p></td></tr></tbody></table>
+<table>
+ <tbody>
+ <tr>
+ <td><p>To run the server-side tests:</p><pre><code class="language-text-x-trilium-auto">npm run server:test</code></pre><p>To view the code coverage for the server:</p><pre><code class="language-text-x-trilium-auto">npm run server:coverage</code></pre><p>Afterwards, a friendly HTML report can be found in <code>/coverage/index.html</code>.</p></td>
+ <td><p>To run the client-side tests:</p><pre><code class="language-text-x-trilium-auto">npm run client:test</code></pre><p>To view the code coverage for the client:</p><pre><code class="language-text-x-trilium-auto">npm run client:coverage</code></pre><p>Afterwards, a friendly HTML report can be found in <code>/src/public/app/coverage/index.html</code>.</p></td>
+ </tr>
+ </tbody>
+</table>
To run both client and server-side tests:
diff --git a/docs/User Guide/User Guide/Advanced Usage/Hidden Notes.md b/docs/User Guide/User Guide/Advanced Usage/Hidden Notes.md
index 99907bb819..cf723299eb 100644
--- a/docs/User Guide/User Guide/Advanced Usage/Hidden Notes.md
+++ b/docs/User Guide/User Guide/Advanced Usage/Hidden Notes.md
@@ -15,4 +15,65 @@ From the <a class="reference-link" href="../Basic%20Concepts%20and%20Features/U
Here is a brief summary of all the notes within the hidden tree:
-<table class="ck-table-resized"><colgroup><col style="width:19.93%;"><col style="width:80.07%;"></colgroup><thead><tr><th>Note</th><th>Description</th></tr></thead><tbody><tr><td><a class="reference-link" href="#root/_hidden/_globalNoteMap">Note Map</a></td><td><p>This note is actually opened when the&nbsp;<a class="reference-link" href="../Note%20Types/Note%20Map.md">Note Map</a>&nbsp;feature that is accessed from the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Launch%20Bar.md">Launch Bar</a>.</p><p>It is possible to create any child notes in it without any additional meaning. For example, it can be used to store a list of note maps which can be linked to from other notes or <a href="../Basic%20Concepts%20and%20Features/Navigation/Bookmarks.md">bookmarked</a>.</p></td></tr><tr><td><a class="reference-link" href="#root/_hidden/_sqlConsole">SQL Console History</a></td><td><p>When SQL queries or commands are executed in the&nbsp;<a class="reference-link" href="Database/Manually%20altering%20the%20database/SQL%20Console.md">SQL Console</a>, they are stored here, grouped by month. Only the query is stored and not the results.</p><p>This section can be accessed without going to the hidden tree by simply going to the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a>&nbsp;and selecting Advanced → Open SQL Console History.</p><p>Notes can be added as children of this tree, but it's generally not recommended to do so to not interfere with the normal history process.</p></td></tr><tr><td><a class="reference-link" href="#root/_hidden/_search">Search History</a></td><td><p>Whenever a search is executed from the full&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/Navigation/Search.md">Search</a>, the query will be stored here, grouped by month. Only the search parameters are stored and not the results themselves.</p><p>This section can be accessed without going to the hidden tree by simply going to the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a>&nbsp;and selecting Advanced → Open Search History.</p><p>Notes can be added as children of this tree, but it's generally not recommended to do so to not interfere with the normal history process.</p></td></tr><tr><td><a class="reference-link" href="#root/_hidden/_bulkAction">Bulk Action</a></td><td><p>This section is used for&nbsp;<a class="reference-link" href="Bulk%20Actions.md">Bulk Actions</a>. The last configuration for bulk actions will be stored as part of this note, each action in its own <code>action</code> label.</p><p>Notes can be added as children of this tree, but there won't be any benefit in doing so.</p></td></tr><tr><td><a class="reference-link" href="#root/_hidden/_backendLog">Backend Log</a></td><td><p>This note corresponds to the backend log feature (see&nbsp;<a class="reference-link" href="../Troubleshooting/Error%20logs.md">Error logs</a>).</p><p>This item can be accessed without going to the hidden try by going to the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a>&nbsp;and selecting Advanced → Show backend log.</p></td></tr><tr><td><a class="reference-link" href="#root/_hidden/_userHidden">User Hidden</a></td><td>This section can be used by <a href="../Scripting.md">scripts</a> to create their own notes that should not be directly visible to the user. The note can be identified by scripts by its unique ID: <code>_userHidden</code></td></tr><tr><td><a class="reference-link" href="#root/_hidden/_lbTplRoot">Launch Bar Templates</a></td><td><p>This section contains the templates for the creation of launchers in the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Launch%20Bar.md">Launch Bar</a>. It is not possible to create child notes here.</p><p>Theoretically some of the notes here can be customized, but there's not much benefit to be had in doing so.</p></td></tr><tr><td><a class="reference-link" href="#root/_hidden/_share">Shared Notes</a></td><td><p>This tree lists all of the notes that are <a href="Sharing.md">shared</a> publicly. It can be useful to track down which notes are shared regardless of their position in the note tree.</p><p>This section can be accessed without going to the hidden tree simply by going to the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a>&nbsp;and selecting <em>Show Shared Notes Subtree</em>.</p><p>Sub-notes cannot be created here.</p></td></tr><tr><td><a class="reference-link" href="#root/_hidden/_lbRoot">Launch Bar</a></td><td><p>The tree contains both available and displayed items of the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Launch%20Bar.md">Launch Bar</a>.</p><p>This section can be accessed without going to the hidden tree by:</p><ul><li>Going to the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a>&nbsp;and selecting <em>Configure Launchbar</em>.</li><li>Right-clicking an empty space on the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Launch%20Bar.md">Launch Bar</a>&nbsp;and selecting <em>Configure Launchbar</em>.</li></ul><p>Sub-notes cannot be created here.</p></td></tr><tr><td><a class="reference-link" href="#root/_hidden/_options">Options</a></td><td><p>This section stores the list of&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Options.md">Options</a>.</p><p>This section can be accessed without going to the hidden tree by:</p><ul><li>Going to the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a>&nbsp;and selecting <em>Options</em>.</li><li>Pressing the dedicated Options icon in the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Launch%20Bar.md">Launch Bar</a>.</li></ul></td></tr><tr><td><a class="reference-link" href="#root/_hidden/_lbMobileRoot">Mobile Launch Bar</a></td><td><p>This is very similar to the <em>Launch Bar</em>, but is dedicated for the mobile UI only.</p><p>Accessing it outside the <em>Launch Bar</em> is the same as the Launch Bar, but needs to be done so from the mobile interface.</p></td></tr><tr><td><a class="reference-link" href="#root/_hidden/_help">User Guide</a></td><td>This is where the note structure for the User Guide is actually stored. Only the metadata is stored, as the help itself is present as actual files in the application directory.</td></tr></tbody></table>
\ No newline at end of file
+<table class="ck-table-resized">
+ <colgroup>
+ <col style="width:19.93%;">
+ <col style="width:80.07%;">
+ </colgroup>
+ <thead>
+ <tr>
+ <th>Note</th>
+ <th>Description</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><a class="reference-link" href="#root/_hidden/_globalNoteMap">Note Map</a></td>
+ <td><p>This note is actually opened when the&nbsp;<a class="reference-link" href="../Note%20Types/Note%20Map.md">Note Map</a>&nbsp;feature that is accessed from the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Launch%20Bar.md">Launch Bar</a>.</p><p>It is possible to create any child notes in it without any additional meaning. For example, it can be used to store a list of note maps which can be linked to from other notes or <a href="../Basic%20Concepts%20and%20Features/Navigation/Bookmarks.md">bookmarked</a>.</p></td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_hidden/_sqlConsole">SQL Console History</a></td>
+ <td><p>When SQL queries or commands are executed in the&nbsp;<a class="reference-link" href="Database/Manually%20altering%20the%20database/SQL%20Console.md">SQL Console</a>, they are stored here, grouped by month. Only the query is stored and not the results.</p><p>This section can be accessed without going to the hidden tree by simply going to the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a>&nbsp;and selecting Advanced → Open SQL Console History.</p><p>Notes can be added as children of this tree, but it's generally not recommended to do so to not interfere with the normal history process.</p></td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_hidden/_search">Search History</a></td>
+ <td><p>Whenever a search is executed from the full&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/Navigation/Search.md">Search</a>, the query will be stored here, grouped by month. Only the search parameters are stored and not the results themselves.</p><p>This section can be accessed without going to the hidden tree by simply going to the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a>&nbsp;and selecting Advanced → Open Search History.</p><p>Notes can be added as children of this tree, but it's generally not recommended to do so to not interfere with the normal history process.</p></td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_hidden/_bulkAction">Bulk Action</a></td>
+ <td><p>This section is used for&nbsp;<a class="reference-link" href="Bulk%20Actions.md">Bulk Actions</a>. The last configuration for bulk actions will be stored as part of this note, each action in its own <code>action</code> label.</p><p>Notes can be added as children of this tree, but there won't be any benefit in doing so.</p></td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_hidden/_backendLog">Backend Log</a></td>
+ <td><p>This note corresponds to the backend log feature (see&nbsp;<a class="reference-link" href="../Troubleshooting/Error%20logs.md">Error logs</a>).</p><p>This item can be accessed without going to the hidden try by going to the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a>&nbsp;and selecting Advanced → Show backend log.</p></td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_hidden/_userHidden">User Hidden</a></td>
+ <td>This section can be used by <a href="../Scripting.md">scripts</a> to create their own notes that should not be directly visible to the user. The note can be identified by scripts by its unique ID: <code>_userHidden</code></td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_hidden/_lbTplRoot">Launch Bar Templates</a></td>
+ <td><p>This section contains the templates for the creation of launchers in the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Launch%20Bar.md">Launch Bar</a>. It is not possible to create child notes here.</p><p>Theoretically some of the notes here can be customized, but there's not much benefit to be had in doing so.</p></td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_hidden/_share">Shared Notes</a></td>
+ <td><p>This tree lists all of the notes that are <a href="Sharing.md">shared</a> publicly. It can be useful to track down which notes are shared regardless of their position in the note tree.</p><p>This section can be accessed without going to the hidden tree simply by going to the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a>&nbsp;and selecting <em>Show Shared Notes Subtree</em>.</p><p>Sub-notes cannot be created here.</p></td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_hidden/_lbRoot">Launch Bar</a></td>
+ <td><p>The tree contains both available and displayed items of the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Launch%20Bar.md">Launch Bar</a>.</p><p>This section can be accessed without going to the hidden tree by:</p><ul><li>Going to the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a>&nbsp;and selecting <em>Configure Launchbar</em>.</li><li>Right-clicking an empty space on the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Launch%20Bar.md">Launch Bar</a>&nbsp;and selecting <em>Configure Launchbar</em>.</li></ul><p>Sub-notes cannot be created here.</p></td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_hidden/_options">Options</a></td>
+ <td><p>This section stores the list of&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Options.md">Options</a>.</p><p>This section can be accessed without going to the hidden tree by:</p><ul><li>Going to the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a>&nbsp;and selecting <em>Options</em>.</li><li>Pressing the dedicated Options icon in the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Launch%20Bar.md">Launch Bar</a>.</li></ul></td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_hidden/_lbMobileRoot">Mobile Launch Bar</a></td>
+ <td><p>This is very similar to the <em>Launch Bar</em>, but is dedicated for the mobile UI only.</p><p>Accessing it outside the <em>Launch Bar</em> is the same as the Launch Bar, but needs to be done so from the mobile interface.</p></td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_hidden/_help">User Guide</a></td>
+ <td>This is where the note structure for the User Guide is actually stored. Only the metadata is stored, as the help itself is present as actual files in the application directory.</td>
+ </tr>
+ </tbody>
+</table>
\ No newline at end of file
diff --git a/docs/User Guide/User Guide/Advanced Usage/Sharing.md b/docs/User Guide/User Guide/Advanced Usage/Sharing.md
index 0d075a8c37..5c9ee0b43b 100644
--- a/docs/User Guide/User Guide/Advanced Usage/Sharing.md
+++ b/docs/User Guide/User Guide/Advanced Usage/Sharing.md
@@ -16,7 +16,87 @@ Trilium allows you to share selected notes as **publicly accessible** read-only
### By note type
-<table class="ck-table-resized"><colgroup><col style="width:19.92%;"><col style="width:41.66%;"><col style="width:38.42%;"></colgroup><thead><tr><th>&nbsp;</th><th>Supported features</th><th>Limitations</th></tr></thead><tbody><tr><th><a class="reference-link" href="../Note%20Types/Text.md">Text</a></th><td><ul><li data-list-item-id="e26b4ce9ba4e9dfe224d04e0f341925ed">Table of contents.</li><li data-list-item-id="e9707fdfa2c92d66690cf932f7e647253">Syntax highlight of code blocks, provided a language is selected (does not work if “Auto-detected” is enabled).</li><li data-list-item-id="e84420a10c6d64bd107edb6e867c91d4b">Rendering for math equations.</li><li data-list-item-id="e10834dcd0619d77ae2e94d3695bedf58"><a href="../Note%20Types/Text/Include%20Note.md">Including notes</a> (only if the included notes are also shared).</li></ul></td><td><ul><li data-list-item-id="e41cc4139377f9f88d653d1eb8ca47bb4">Inline Mermaid diagrams are not rendered.</li></ul></td></tr><tr><th><a class="reference-link" href="../Note%20Types/Code.md">Code</a></th><td><ul><li data-list-item-id="e291ae6d5130677b4c99f7c3bdbe974b4">Basic support (displaying the contents of the note in a monospace font).</li></ul></td><td><ul><li data-list-item-id="e0270680bbdd7a129306e61e11691e36d">No syntax highlight.</li></ul></td></tr><tr><th><a class="reference-link" href="../Note%20Types/Saved%20Search.md">Saved Search</a></th><td>Not supported.</td><td>&nbsp;</td></tr><tr><th><a class="reference-link" href="../Note%20Types/Relation%20Map.md">Relation Map</a></th><td>Not supported.</td><td>&nbsp;</td></tr><tr><th><a class="reference-link" href="../Note%20Types/Note%20Map.md">Note Map</a></th><td>Not supported.</td><td>&nbsp;</td></tr><tr><th><a class="reference-link" href="../Note%20Types/Render%20Note.md">Render Note</a></th><td>Not supported.</td><td>&nbsp;</td></tr><tr><th><a class="reference-link" href="../Collections.md">Collections</a></th><td><ul><li data-list-item-id="ea031e1d4149eb443ace756234490c5a4">The child notes are displayed in a fixed format.&nbsp;</li></ul></td><td><ul><li data-list-item-id="ea4a9d424aec2afbaecc07bbf64b7bebd">More advanced view types such as the calendar view are not supported.</li></ul></td></tr><tr><th><a class="reference-link" href="../Note%20Types/Mermaid%20Diagrams.md">Mermaid Diagrams</a></th><td><ul><li data-list-item-id="e582d283f2b1b30cbe5ae35d8e01b2bf2">The diagram is displayed as a vector image.</li></ul></td><td><ul><li data-list-item-id="e33268686446e3c217077201bb5964364">No further interaction supported.</li></ul></td></tr><tr><th><a class="reference-link" href="../Note%20Types/Canvas.md">Canvas</a></th><td><ul><li data-list-item-id="e443dd0e97c30cb12c77e8906a71569ea">The diagram is displayed as a vector image.</li></ul></td><td><ul><li data-list-item-id="efe151ef3f3826c825416417525fb5fb2">No further interaction supported.</li></ul></td></tr><tr><th><a class="reference-link" href="../Note%20Types/Web%20View.md">Web View</a></th><td>Not supported.</td><td>&nbsp;</td></tr><tr><th><a class="reference-link" href="../Note%20Types/Mind%20Map.md">Mind Map</a></th><td>The diagram is displayed as a vector image.</td><td><ul><li data-list-item-id="ed3b4fb473042f6e32b4502d4fa11a767">No further interaction supported.</li></ul></td></tr><tr><th><a class="reference-link" href="../Collections/Geo%20Map.md">Geo Map</a></th><td>Not supported.</td><td>&nbsp;</td></tr><tr><th><a class="reference-link" href="../Note%20Types/File.md">File</a></th><td>Basic interaction (downloading the file).</td><td><ul><li data-list-item-id="ed87e836a39d127ebcbb33e9e59045afb">No further interaction supported.</li></ul></td></tr></tbody></table>
+<table class="ck-table-resized">
+ <colgroup>
+ <col style="width:19.92%;">
+ <col style="width:41.66%;">
+ <col style="width:38.42%;">
+ </colgroup>
+ <thead>
+ <tr>
+ <th>&nbsp;</th>
+ <th>Supported features</th>
+ <th>Limitations</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th><a class="reference-link" href="../Note%20Types/Text.md">Text</a></th>
+ <td><ul><li data-list-item-id="e26b4ce9ba4e9dfe224d04e0f341925ed">Table of contents.</li><li data-list-item-id="e9707fdfa2c92d66690cf932f7e647253">Syntax highlight of code blocks, provided a language is selected (does not work if “Auto-detected” is enabled).</li><li data-list-item-id="e84420a10c6d64bd107edb6e867c91d4b">Rendering for math equations.</li><li data-list-item-id="e10834dcd0619d77ae2e94d3695bedf58"><a href="../Note%20Types/Text/Include%20Note.md">Including notes</a> (only if the included notes are also shared).</li></ul></td>
+ <td><ul><li data-list-item-id="e41cc4139377f9f88d653d1eb8ca47bb4">Inline Mermaid diagrams are not rendered.</li></ul></td>
+ </tr>
+ <tr>
+ <th><a class="reference-link" href="../Note%20Types/Code.md">Code</a></th>
+ <td><ul><li data-list-item-id="e291ae6d5130677b4c99f7c3bdbe974b4">Basic support (displaying the contents of the note in a monospace font).</li></ul></td>
+ <td><ul><li data-list-item-id="e0270680bbdd7a129306e61e11691e36d">No syntax highlight.</li></ul></td>
+ </tr>
+ <tr>
+ <th><a class="reference-link" href="../Note%20Types/Saved%20Search.md">Saved Search</a></th>
+ <td>Not supported.</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <th><a class="reference-link" href="../Note%20Types/Relation%20Map.md">Relation Map</a></th>
+ <td>Not supported.</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <th><a class="reference-link" href="../Note%20Types/Note%20Map.md">Note Map</a></th>
+ <td>Not supported.</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <th><a class="reference-link" href="../Note%20Types/Render%20Note.md">Render Note</a></th>
+ <td>Not supported.</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <th><a class="reference-link" href="../Collections.md">Collections</a></th>
+ <td><ul><li data-list-item-id="ea031e1d4149eb443ace756234490c5a4">The child notes are displayed in a fixed format.&nbsp;</li></ul></td>
+ <td><ul><li data-list-item-id="ea4a9d424aec2afbaecc07bbf64b7bebd">More advanced view types such as the calendar view are not supported.</li></ul></td>
+ </tr>
+ <tr>
+ <th><a class="reference-link" href="../Note%20Types/Mermaid%20Diagrams.md">Mermaid Diagrams</a></th>
+ <td><ul><li data-list-item-id="e582d283f2b1b30cbe5ae35d8e01b2bf2">The diagram is displayed as a vector image.</li></ul></td>
+ <td><ul><li data-list-item-id="e33268686446e3c217077201bb5964364">No further interaction supported.</li></ul></td>
+ </tr>
+ <tr>
+ <th><a class="reference-link" href="../Note%20Types/Canvas.md">Canvas</a></th>
+ <td><ul><li data-list-item-id="e443dd0e97c30cb12c77e8906a71569ea">The diagram is displayed as a vector image.</li></ul></td>
+ <td><ul><li data-list-item-id="efe151ef3f3826c825416417525fb5fb2">No further interaction supported.</li></ul></td>
+ </tr>
+ <tr>
+ <th><a class="reference-link" href="../Note%20Types/Web%20View.md">Web View</a></th>
+ <td>Not supported.</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <th><a class="reference-link" href="../Note%20Types/Mind%20Map.md">Mind Map</a></th>
+ <td>The diagram is displayed as a vector image.</td>
+ <td><ul><li data-list-item-id="ed3b4fb473042f6e32b4502d4fa11a767">No further interaction supported.</li></ul></td>
+ </tr>
+ <tr>
+ <th><a class="reference-link" href="../Collections/Geo%20Map.md">Geo Map</a></th>
+ <td>Not supported.</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <th><a class="reference-link" href="../Note%20Types/File.md">File</a></th>
+ <td>Basic interaction (downloading the file).</td>
+ <td><ul><li data-list-item-id="ed87e836a39d127ebcbb33e9e59045afb">No further interaction supported.</li></ul></td>
+ </tr>
+ </tbody>
+</table>
While the sharing feature is powerful, it has some limitations:
@@ -150,7 +230,64 @@ The URL must be absolute and include the scheme (e.g. `https://`).
## Attribute reference
-<table class="ck-table-resized"><colgroup><col style="width:18.38%;"><col style="width:81.62%;"></colgroup><thead><tr><th>Attribute</th><th>Description</th></tr></thead><tbody><tr><td><code spellcheck="false">#shareHiddenFromTree</code></td><td>this note is hidden from left navigation tree, but still accessible with its URL</td></tr><tr><td><code spellcheck="false">#shareExternalLink</code></td><td>when a link points to this note (from the share index, a subpage list, or an inline link in another shared note), it redirects to the given external URL in a new tab instead of the note's shared page. Value is the absolute URL, e.g. <code spellcheck="false">https://example.com</code>.</td></tr><tr><td><code spellcheck="false">#shareAlias</code></td><td>define an alias using which the note will be available under <code spellcheck="false">https://your_trilium_host/share/[your_alias]</code></td></tr><tr><td><code spellcheck="false">#shareOmitDefaultCss</code></td><td>default share page CSS will be omitted. Use when you make extensive styling changes.</td></tr><tr><td><code spellcheck="false">#shareRoot</code></td><td>marks note which is served on /share root.</td></tr><tr><td><code spellcheck="false">#shareDescription</code></td><td>define text to be added to the HTML meta tag for description</td></tr><tr><td><code spellcheck="false">#shareRaw</code></td><td>Note will be served in its raw format, without HTML wrapper. See also&nbsp;<a class="reference-link" href="Sharing/Serving%20directly%20the%20content%20of%20a%20note.md">Serving directly the content of a note</a>&nbsp;for an alternative method without setting an attribute.</td></tr><tr><td><code spellcheck="false">#shareDisallowRobotIndexing</code></td><td><p>Indicates to web crawlers that the page should not be indexed of this note by:</p><ul><li data-list-item-id="e6baa9f60bf59d085fd31aa2cce07a0e7">Setting the <code spellcheck="false">X-Robots-Tag: noindex</code> HTTP header.</li><li data-list-item-id="ec0d067db136ef9794e4f1033405880b7">Setting the <code spellcheck="false">noindex, follow</code> meta tag.</li></ul></td></tr><tr><td><code spellcheck="false">#shareCredentials</code></td><td>require credentials to access this shared note. Value is expected to be in format <code spellcheck="false">username:password</code>. Don't forget to make this inheritable to apply to child-notes/images.</td></tr><tr><td><code spellcheck="false">#shareIndex</code></td><td>Note with this label will list all roots of shared notes.</td></tr><tr><td><code spellcheck="false">#shareHtmlLocation</code></td><td>defines where custom HTML injected via <code spellcheck="false">~shareHtml</code> relation should be placed. Applied to the HTML snippet note itself. Format: <code spellcheck="false">location:position</code> where location is <code spellcheck="false">head</code>, <code spellcheck="false">body</code>, or <code spellcheck="false">content</code> and position is <code spellcheck="false">start</code> or <code spellcheck="false">end</code>. Defaults to <code spellcheck="false">content:end</code>.</td></tr></tbody></table>
+<table class="ck-table-resized">
+ <colgroup>
+ <col style="width:18.38%;">
+ <col style="width:81.62%;">
+ </colgroup>
+ <thead>
+ <tr>
+ <th>Attribute</th>
+ <th>Description</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><code spellcheck="false">#shareHiddenFromTree</code></td>
+ <td>this note is hidden from left navigation tree, but still accessible with its URL</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#shareExternalLink</code></td>
+ <td>when a link points to this note (from the share index, a subpage list, or an inline link in another shared note), it redirects to the given external URL in a new tab instead of the note's shared page. Value is the absolute URL, e.g. <code spellcheck="false">https://example.com</code>.</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#shareAlias</code></td>
+ <td>define an alias using which the note will be available under <code spellcheck="false">https://your_trilium_host/share/[your_alias]</code></td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#shareOmitDefaultCss</code></td>
+ <td>default share page CSS will be omitted. Use when you make extensive styling changes.</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#shareRoot</code></td>
+ <td>marks note which is served on /share root.</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#shareDescription</code></td>
+ <td>define text to be added to the HTML meta tag for description</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#shareRaw</code></td>
+ <td>Note will be served in its raw format, without HTML wrapper. See also&nbsp;<a class="reference-link" href="Sharing/Serving%20directly%20the%20content%20of%20a%20note.md">Serving directly the content of a note</a>&nbsp;for an alternative method without setting an attribute.</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#shareDisallowRobotIndexing</code></td>
+ <td><p>Indicates to web crawlers that the page should not be indexed of this note by:</p><ul><li data-list-item-id="e6baa9f60bf59d085fd31aa2cce07a0e7">Setting the <code spellcheck="false">X-Robots-Tag: noindex</code> HTTP header.</li><li data-list-item-id="ec0d067db136ef9794e4f1033405880b7">Setting the <code spellcheck="false">noindex, follow</code> meta tag.</li></ul></td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#shareCredentials</code></td>
+ <td>require credentials to access this shared note. Value is expected to be in format <code spellcheck="false">username:password</code>. Don't forget to make this inheritable to apply to child-notes/images.</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#shareIndex</code></td>
+ <td>Note with this label will list all roots of shared notes.</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#shareHtmlLocation</code></td>
+ <td>defines where custom HTML injected via <code spellcheck="false">~shareHtml</code> relation should be placed. Applied to the HTML snippet note itself. Format: <code spellcheck="false">location:position</code> where location is <code spellcheck="false">head</code>, <code spellcheck="false">body</code>, or <code spellcheck="false">content</code> and position is <code spellcheck="false">start</code> or <code spellcheck="false">end</code>. Defaults to <code spellcheck="false">content:end</code>.</td>
+ </tr>
+ </tbody>
+</table>
### Customizing logo
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.md
index e9fe8449e2..bcba587c09 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
@@ -38,7 +38,20 @@ Starting with v0.104.0, when a root note is imported, it will be imported as a c
You can easily move the notes onto the root using the tree's <a class="reference-link" href="UI%20Elements/Note%20Tree/Multiple%20selection.md">Multiple selection</a> and delete the redundant root note.
-<table><thead><tr><th scope="col">Before</th><th scope="col">After</th></tr></thead><tbody><tr><td><ul><li data-list-item-id="e8c5b61fca3b22a75ee4f651a12b0cd2b">root<ul><li data-list-item-id="e1e4f62c9fe4499cabfefcba28bf64c7e">one</li><li data-list-item-id="e8088b4ea90e8371d88182db886b8fd1f">two</li></ul></li></ul></td><td><ul><li data-list-item-id="e74bf0ef3d3f2aff13bb3918d1e23e06f">root (existing)<ul><li data-list-item-id="efcba337fd0db50e4d83740d986d04b00">root (from import)<ul><li data-list-item-id="e50b95f63c2069dbf902c281256c32155">one</li><li data-list-item-id="e406337a40071ddfc3c5b1432ba235a2e">two</li></ul></li></ul></li></ul></td></tr></tbody></table>
+<table>
+ <thead>
+ <tr>
+ <th scope="col">Before</th>
+ <th scope="col">After</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><ul><li data-list-item-id="e8c5b61fca3b22a75ee4f651a12b0cd2b">root<ul><li data-list-item-id="e1e4f62c9fe4499cabfefcba28bf64c7e">one</li><li data-list-item-id="e8088b4ea90e8371d88182db886b8fd1f">two</li></ul></li></ul></td>
+ <td><ul><li data-list-item-id="e74bf0ef3d3f2aff13bb3918d1e23e06f">root (existing)<ul><li data-list-item-id="efcba337fd0db50e4d83740d986d04b00">root (from import)<ul><li data-list-item-id="e50b95f63c2069dbf902c281256c32155">one</li><li data-list-item-id="e406337a40071ddfc3c5b1432ba235a2e">two</li></ul></li></ul></li></ul></td>
+ </tr>
+ </tbody>
+</table>
> [!TIP]
> Instead of exporting full ZIPs (including the root note), consider using [backups](../Installation%20%26%20Setup/Backup.md) instead. Backups always contain the entire structure, as well as additional information a ZIP export does not have: maintains note IDs, contains the options/tokens and handle <a class="reference-link" href="Notes/Protected%20Notes.md">Protected Notes</a> better.
\ No newline at end of file
diff --git a/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Anytype.md b/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Anytype.md
index fc61a8eb32..4e8bb385b6 100644
--- a/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Anytype.md
+++ b/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Anytype.md
@@ -71,7 +71,44 @@ The following view modes are supported:
The following types are supported:
-<table><thead><tr><th scope="col">Anytype property type</th><th scope="col">Trilium</th></tr></thead><tbody><tr><td>Text / Select</td><td>Single-valued <code spellcheck="false">text</code> label</td></tr><tr><td>Number</td><td>Single-valued <code spellcheck="false">number</code> label</td></tr><tr><td>Multi-select</td><td>One <code spellcheck="false">text</code> label per option (multi)</td></tr><tr><td>Date / Date with time</td><td><ul><li data-list-item-id="eb2f417ce240ac72c1773231746ecf0c6"><code spellcheck="false">datetime</code> if the time is included.</li><li data-list-item-id="ee9dcf32dba7753df568315409159aa7d"><code spellcheck="false">date</code> if only dates.</li></ul></td></tr><tr><td>File</td><td>The files are preserved as attachments, and a link to them is prepended to the content of the note for visibility.</td></tr><tr><td>Checkbox</td><td><code spellcheck="false">boolean</code> label (<code spellcheck="false">true</code>/<code spellcheck="false">false</code>).</td></tr><tr><td>URL / Email / Phone</td><td><code spellcheck="false">url</code> label (<code spellcheck="false">mailto:</code>, <code spellcheck="false">tel:</code> prefix)</td></tr></tbody></table>
+<table>
+ <thead>
+ <tr>
+ <th scope="col">Anytype property type</th>
+ <th scope="col">Trilium</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>Text / Select</td>
+ <td>Single-valued <code spellcheck="false">text</code> label</td>
+ </tr>
+ <tr>
+ <td>Number</td>
+ <td>Single-valued <code spellcheck="false">number</code> label</td>
+ </tr>
+ <tr>
+ <td>Multi-select</td>
+ <td>One <code spellcheck="false">text</code> label per option (multi)</td>
+ </tr>
+ <tr>
+ <td>Date / Date with time</td>
+ <td><ul><li data-list-item-id="eb2f417ce240ac72c1773231746ecf0c6"><code spellcheck="false">datetime</code> if the time is included.</li><li data-list-item-id="ee9dcf32dba7753df568315409159aa7d"><code spellcheck="false">date</code> if only dates.</li></ul></td>
+ </tr>
+ <tr>
+ <td>File</td>
+ <td>The files are preserved as attachments, and a link to them is prepended to the content of the note for visibility.</td>
+ </tr>
+ <tr>
+ <td>Checkbox</td>
+ <td><code spellcheck="false">boolean</code> label (<code spellcheck="false">true</code>/<code spellcheck="false">false</code>).</td>
+ </tr>
+ <tr>
+ <td>URL / Email / Phone</td>
+ <td><code spellcheck="false">url</code> label (<code spellcheck="false">mailto:</code>, <code spellcheck="false">tel:</code> prefix)</td>
+ </tr>
+ </tbody>
+</table>
## Reporting issues
diff --git a/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Notion.md b/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Notion.md
index 1aa01f48ad..0ff8ef3cad 100644
--- a/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Notion.md
+++ b/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Notion.md
@@ -59,7 +59,72 @@ Notion databases are imported into <a class="reference-link" href="../../../Col
The resulting collection will be <a class="reference-link" href="../../../Collections/Table.md">Table</a> regardless of the original view the database was exported in. That's because the active view is not saved in the export and the table collection is the most compatible with Notion.
-<table><thead><tr><th scope="col">Notion type</th><th scope="col">Trilium</th></tr></thead><tbody><tr><td>Text / Select / Status / Place</td><td>Single-valued <code spellcheck="false">text</code> label</td></tr><tr><td>Number</td><td>Single-valued <code spellcheck="false">number</code> label for plain numbers. Formatted values (currency, percent, thousands separators) are normalized to a bare number, e.g. <code spellcheck="false">$1,200.50</code> → <code spellcheck="false">1200.50</code>.</td></tr><tr><td>ID</td><td>Single-valued <code spellcheck="false">number</code> or <code spellcheck="false">text</code> label (depending on whether a prefix is configured)</td></tr><tr><td>Multi-select</td><td>One text label per option (multi)</td></tr><tr><td>URL / Email / Phone</td><td><code spellcheck="false">url</code> label (<code spellcheck="false">mailto:</code>, <code spellcheck="false">tel:</code> prefix)</td></tr><tr><td>Date</td><td><ul><li data-list-item-id="eee6673ab2869e699cab68ecf33d7f114"><code spellcheck="false">datetime</code> if at least one has time.</li><li data-list-item-id="e2b9de45b9e0044bdd49f52ccbc9d143b"><code spellcheck="false">date</code> if only dates.</li><li data-list-item-id="ea59885b04bf57523709c778687bc94a5">Two attributes if any of the dates have an end date.</li></ul></td></tr><tr><td>Checkbox</td><td><code spellcheck="false">boolean</code> label (<code spellcheck="false">true</code>/<code spellcheck="false">false</code>).</td></tr><tr><td>Person</td><td>One text label per user (multi)</td></tr><tr><td>Created by / Edited by</td><td>Single-valued <code spellcheck="false">text</code> label</td></tr><tr><td>Created time / Last edited time</td><td>Assigned to the note's creation and modification date.</td></tr><tr><td>Relation</td><td>Mapped to <a href="../../../Advanced%20Usage/Attributes/Relations.md">relations</a>, each link resolved to its target note via the existing cross-page map; targets outside the import are dropped.</td></tr><tr><td>Files &amp; Media</td><td>The files are preserved as attachments, and a link to them is prepended to the content of the note for visibility.</td></tr><tr><td>Formulas / Rollup</td><td><p>A <code spellcheck="false">text</code>, <code spellcheck="false">number</code> or <code spellcheck="false">boolean</code> label depending on the value. Dates are rendered as <code spellcheck="false">text</code> because the export doesn't offer any type information.</p><p>The Notion export does not preserve the formula/rollup configuration itself, instead it just exports the value.</p></td></tr><tr><td>Button / Verification / any other type</td><td>Unsupported, they will be dropped from the import.</td></tr></tbody></table>
+<table>
+ <thead>
+ <tr>
+ <th scope="col">Notion type</th>
+ <th scope="col">Trilium</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>Text / Select / Status / Place</td>
+ <td>Single-valued <code spellcheck="false">text</code> label</td>
+ </tr>
+ <tr>
+ <td>Number</td>
+ <td>Single-valued <code spellcheck="false">number</code> label for plain numbers. Formatted values (currency, percent, thousands separators) are normalized to a bare number, e.g. <code spellcheck="false">$1,200.50</code> → <code spellcheck="false">1200.50</code>.</td>
+ </tr>
+ <tr>
+ <td>ID</td>
+ <td>Single-valued <code spellcheck="false">number</code> or <code spellcheck="false">text</code> label (depending on whether a prefix is configured)</td>
+ </tr>
+ <tr>
+ <td>Multi-select</td>
+ <td>One text label per option (multi)</td>
+ </tr>
+ <tr>
+ <td>URL / Email / Phone</td>
+ <td><code spellcheck="false">url</code> label (<code spellcheck="false">mailto:</code>, <code spellcheck="false">tel:</code> prefix)</td>
+ </tr>
+ <tr>
+ <td>Date</td>
+ <td><ul><li data-list-item-id="eee6673ab2869e699cab68ecf33d7f114"><code spellcheck="false">datetime</code> if at least one has time.</li><li data-list-item-id="e2b9de45b9e0044bdd49f52ccbc9d143b"><code spellcheck="false">date</code> if only dates.</li><li data-list-item-id="ea59885b04bf57523709c778687bc94a5">Two attributes if any of the dates have an end date.</li></ul></td>
+ </tr>
+ <tr>
+ <td>Checkbox</td>
+ <td><code spellcheck="false">boolean</code> label (<code spellcheck="false">true</code>/<code spellcheck="false">false</code>).</td>
+ </tr>
+ <tr>
+ <td>Person</td>
+ <td>One text label per user (multi)</td>
+ </tr>
+ <tr>
+ <td>Created by / Edited by</td>
+ <td>Single-valued <code spellcheck="false">text</code> label</td>
+ </tr>
+ <tr>
+ <td>Created time / Last edited time</td>
+ <td>Assigned to the note's creation and modification date.</td>
+ </tr>
+ <tr>
+ <td>Relation</td>
+ <td>Mapped to <a href="../../../Advanced%20Usage/Attributes/Relations.md">relations</a>, each link resolved to its target note via the existing cross-page map; targets outside the import are dropped.</td>
+ </tr>
+ <tr>
+ <td>Files &amp; Media</td>
+ <td>The files are preserved as attachments, and a link to them is prepended to the content of the note for visibility.</td>
+ </tr>
+ <tr>
+ <td>Formulas / Rollup</td>
+ <td><p>A <code spellcheck="false">text</code>, <code spellcheck="false">number</code> or <code spellcheck="false">boolean</code> label depending on the value. Dates are rendered as <code spellcheck="false">text</code> because the export doesn't offer any type information.</p><p>The Notion export does not preserve the formula/rollup configuration itself, instead it just exports the value.</p></td>
+ </tr>
+ <tr>
+ <td>Button / Verification / any other type</td>
+ <td>Unsupported, they will be dropped from the import.</td>
+ </tr>
+ </tbody>
+</table>
> [!NOTE]
> **Technical information**
diff --git a/docs/User Guide/User Guide/Basic Concepts and Features/Notes/Sorting Notes.md b/docs/User Guide/User Guide/Basic Concepts and Features/Notes/Sorting Notes.md
index 4909c71770..848d758c84 100644
--- a/docs/User Guide/User Guide/Basic Concepts and Features/Notes/Sorting Notes.md
+++ b/docs/User Guide/User Guide/Basic Concepts and Features/Notes/Sorting Notes.md
@@ -14,7 +14,44 @@ The sorting dialog allows:
Child notes can be automatically sorted by attaching specific [labels](../../Advanced%20Usage/Attributes.md) to the parent note:
-<table><thead><tr><th>Label</th><th>Description</th></tr></thead><tbody><tr><td><code spellcheck="false">#sorted</code></td><td><p>Keeps child notes sorted by title alphabetically.</p><p>When given a value, it will sort by the value of another label instead. If one of the child notes doesn't have the specified label, the title will be used for them instead.</p></td></tr><tr><td><code spellcheck="false">#sortDirection</code></td><td><p>If <code spellcheck="false">sorted</code> is applied, specifies the direction of the sort:</p><ul><li data-list-item-id="e4df319827bd47bea6bb62c3c5b8e83a6"><code spellcheck="false">ASC</code>, ascending (default)</li><li data-list-item-id="ea986fb4e3f1218a29cba4435d397252b"><code spellcheck="false">DESC</code>, descending</li></ul></td></tr><tr><td><code spellcheck="false">#sortFoldersFirst</code></td><td>If <code spellcheck="false">sorted</code> is applied, folders (notes with children) will be sorted as a group at the top, and the rest will be sorted.</td></tr><tr><td><code spellcheck="false">#sortNatural</code></td><td>Sort numbers naturally instead of alphabetically, so 2 comes before 10.</td></tr><tr><td><code spellcheck="false">#sortLocale</code></td><td>The language code driving the natural sort (e.g. <code spellcheck="false">zh-CN</code>, <code spellcheck="false">de</code>). Only meaningful together with <code spellcheck="false">#sortNatural</code>.</td></tr><tr><td><code spellcheck="false">#top</code></td><td>If <code spellcheck="false">sorted</code> is applied to the parent note, keeps given note on top in its parent.</td></tr><tr><td><code spellcheck="false">#bottom</code></td><td>If <code spellcheck="false">sorted</code> is applied to the parent note, keeps given note on bottom in its parent.</td></tr></tbody></table>
+<table>
+ <thead>
+ <tr>
+ <th>Label</th>
+ <th>Description</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><code spellcheck="false">#sorted</code></td>
+ <td><p>Keeps child notes sorted by title alphabetically.</p><p>When given a value, it will sort by the value of another label instead. If one of the child notes doesn't have the specified label, the title will be used for them instead.</p></td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#sortDirection</code></td>
+ <td><p>If <code spellcheck="false">sorted</code> is applied, specifies the direction of the sort:</p><ul><li data-list-item-id="e4df319827bd47bea6bb62c3c5b8e83a6"><code spellcheck="false">ASC</code>, ascending (default)</li><li data-list-item-id="ea986fb4e3f1218a29cba4435d397252b"><code spellcheck="false">DESC</code>, descending</li></ul></td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#sortFoldersFirst</code></td>
+ <td>If <code spellcheck="false">sorted</code> is applied, folders (notes with children) will be sorted as a group at the top, and the rest will be sorted.</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#sortNatural</code></td>
+ <td>Sort numbers naturally instead of alphabetically, so 2 comes before 10.</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#sortLocale</code></td>
+ <td>The language code driving the natural sort (e.g. <code spellcheck="false">zh-CN</code>, <code spellcheck="false">de</code>). Only meaningful together with <code spellcheck="false">#sortNatural</code>.</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#top</code></td>
+ <td>If <code spellcheck="false">sorted</code> is applied to the parent note, keeps given note on top in its parent.</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#bottom</code></td>
+ <td>If <code spellcheck="false">sorted</code> is applied to the parent note, keeps given note on bottom in its parent.</td>
+ </tr>
+ </tbody>
+</table>
Sorting is done by comparing note properties or specific labels on child notes. There are four sorting levels, with the first having the highest priority. Lower priority levels are applied only if higher priority comparisons result in equality.
diff --git a/docs/User Guide/User Guide/Collections/Calendar.md b/docs/User Guide/User Guide/Collections/Calendar.md
index cbb8623a19..fac87a6135 100644
--- a/docs/User Guide/User Guide/Collections/Calendar.md
+++ b/docs/User Guide/User Guide/Collections/Calendar.md
@@ -60,7 +60,44 @@ In the _Collections_ tab in the <a class="reference-link" href="../Basic%20Conc
The following attributes can be added to the Collection type:
-<table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code spellcheck="false">#calendar:hideWeekends</code></td><td>When present (regardless of value), it will hide Saturday and Sundays from the calendar.</td></tr><tr><td><code spellcheck="false">#calendar:weekNumbers</code></td><td>When present (regardless of value), it will show the number of the week on the calendar.</td></tr><tr><td><code spellcheck="false">#calendar:initialDate</code></td><td>Change the date the calendar opens on. When not present, the calendar opens on the current date.</td></tr><tr><td><code spellcheck="false">#calendar:view</code></td><td><p>Which view to display in the calendar:</p><ul><li data-list-item-id="e2cd230dc41f41fe91ee74d7d1fa87381"><code spellcheck="false">timeGridDay</code> for the <em>day</em> view;</li><li data-list-item-id="e2cd230dc41f41fe91ee74d7d1fa87372"><code spellcheck="false">timeGridWeek</code> for the <em>week</em> view;</li><li data-list-item-id="eee1dba4c6cc51ebd53d0a0dd52044cd6"><code spellcheck="false">dayGridMonth</code> for the <em>month</em> view;</li><li data-list-item-id="ed8721a76a1865dac882415f662ed45b9"><code spellcheck="false">multiMonthYear</code> for the <em>year</em> view;</li><li data-list-item-id="edf09a13759102d98dac34c33eb690c05"><code spellcheck="false">listMonth</code> for the <em>list</em> view.</li></ul><p>Any other value will be dismissed and the default view (month) will be used instead.</p><p>The value of this label is automatically updated when changing the view using the UI buttons.</p></td></tr><tr><td><code spellcheck="false">#calendar:slotDuration</code></td><td>Sets how long each timeslot is on the calendar. Defaults to <code spellcheck="false">00:15:00</code> (15 minutes). Must have the format "HH:MM:SS". For example, to create timeslots for every 10 minutes, you would set <code spellcheck="false">#calendar:slotDuration="00:10:00"</code>.</td></tr><tr><td><code spellcheck="false">#calendar:slotLabelInterval</code></td><td>Sets how often the timeslots on the calendar should be labeled. Defaults to <code spellcheck="false">01:00:00</code> (1 hour). Must have the format "HH:MM:SS". For example, to label timeslots every 30 minutes, you would set <code spellcheck="false">#calendar:slotLabelInterval="00:30:00"</code>.</td></tr><tr><td><code spellcheck="false">~child:template</code></td><td>Defines the template for newly created notes in the calendar (via dragging or clicking).</td></tr></tbody></table>
+<table>
+ <thead>
+ <tr>
+ <th>Name</th>
+ <th>Description</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><code spellcheck="false">#calendar:hideWeekends</code></td>
+ <td>When present (regardless of value), it will hide Saturday and Sundays from the calendar.</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#calendar:weekNumbers</code></td>
+ <td>When present (regardless of value), it will show the number of the week on the calendar.</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#calendar:initialDate</code></td>
+ <td>Change the date the calendar opens on. When not present, the calendar opens on the current date.</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#calendar:view</code></td>
+ <td><p>Which view to display in the calendar:</p><ul><li data-list-item-id="e2cd230dc41f41fe91ee74d7d1fa87381"><code spellcheck="false">timeGridDay</code> for the <em>day</em> view;</li><li data-list-item-id="e2cd230dc41f41fe91ee74d7d1fa87372"><code spellcheck="false">timeGridWeek</code> for the <em>week</em> view;</li><li data-list-item-id="eee1dba4c6cc51ebd53d0a0dd52044cd6"><code spellcheck="false">dayGridMonth</code> for the <em>month</em> view;</li><li data-list-item-id="ed8721a76a1865dac882415f662ed45b9"><code spellcheck="false">multiMonthYear</code> for the <em>year</em> view;</li><li data-list-item-id="edf09a13759102d98dac34c33eb690c05"><code spellcheck="false">listMonth</code> for the <em>list</em> view.</li></ul><p>Any other value will be dismissed and the default view (month) will be used instead.</p><p>The value of this label is automatically updated when changing the view using the UI buttons.</p></td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#calendar:slotDuration</code></td>
+ <td>Sets how long each timeslot is on the calendar. Defaults to <code spellcheck="false">00:15:00</code> (15 minutes). Must have the format "HH:MM:SS". For example, to create timeslots for every 10 minutes, you would set <code spellcheck="false">#calendar:slotDuration="00:10:00"</code>.</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">#calendar:slotLabelInterval</code></td>
+ <td>Sets how often the timeslots on the calendar should be labeled. Defaults to <code spellcheck="false">01:00:00</code> (1 hour). Must have the format "HH:MM:SS". For example, to label timeslots every 30 minutes, you would set <code spellcheck="false">#calendar:slotLabelInterval="00:30:00"</code>.</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">~child:template</code></td>
+ <td>Defines the template for newly created notes in the calendar (via dragging or clicking).</td>
+ </tr>
+ </tbody>
+</table>
In addition, the first day of the week can be either Sunday or Monday and can be adjusted from the application settings.
@@ -194,7 +231,20 @@ By default, events are displayed on the calendar by their note title. However, i
To do so, assign `#calendar:title` to the child note (not the calendar/Collection note), with the value being `name` where `name` can be any label (make not to add the `#` prefix). The attribute can also come through inheritance such as a template attribute. If the note does not have the requested label, the title of the note will be used instead.
-<table><thead><tr><th>&nbsp;</th><th>&nbsp;</th></tr></thead><tbody><tr><td><pre><code class="language-text-x-trilium-auto">#startDate=2025-02-11 #endDate=2025-02-13 #name="My vacation" #calendar:title="name"</code></pre></td><td><p>&nbsp;</p><figure class="image image-style-align-center"><img style="aspect-ratio:445/124;" src="3_Calendar_image.png" width="445" height="124"></figure></td></tr></tbody></table>
+<table>
+ <thead>
+ <tr>
+ <th>&nbsp;</th>
+ <th>&nbsp;</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><pre><code class="language-text-x-trilium-auto">#startDate=2025-02-11 #endDate=2025-02-13 #name="My vacation" #calendar:title="name"</code></pre></td>
+ <td><p>&nbsp;</p><figure class="image image-style-align-center"><img style="aspect-ratio:445/124;" src="3_Calendar_image.png" width="445" height="124"></figure></td>
+ </tr>
+ </tbody>
+</table>
### Using a relation attribute as event title
@@ -202,8 +252,34 @@ Similarly to using an attribute, use `#calendar:title` and set it to `name` wher
Moreover, if there are more relations of the same name, they will be displayed as multiple events coming from the same note.
-<table><thead><tr><th>&nbsp;</th><th>&nbsp;</th></tr></thead><tbody><tr><td><pre><code class="language-text-x-trilium-auto">#startDate=2025-02-14 #endDate=2025-02-15 ~for=@John Smith ~for=@Jane Doe #calendar:title="for"</code></pre></td><td><img src="4_Calendar_image.png" width="294" height="151"></td></tr></tbody></table>
+<table>
+ <thead>
+ <tr>
+ <th>&nbsp;</th>
+ <th>&nbsp;</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><pre><code class="language-text-x-trilium-auto">#startDate=2025-02-14 #endDate=2025-02-15 ~for=@John Smith ~for=@Jane Doe #calendar:title="for"</code></pre></td>
+ <td><img src="4_Calendar_image.png" width="294" height="151"></td>
+ </tr>
+ </tbody>
+</table>
Note that it's even possible to have a `#calendar:title` on the target note (e.g. “John Smith”) which will try to render an attribute of it. Note that it's not possible to use a relation here as well for safety reasons (an accidental recursion  of attributes could cause the application to loop infinitely).
-<table><thead><tr><th>&nbsp;</th><th>&nbsp;</th></tr></thead><tbody><tr><td><pre><code class="language-text-x-trilium-auto">#calendar:title="shortName" #shortName="John S."</code></pre></td><td><figure class="image image-style-align-center"><img style="aspect-ratio:296/150;" src="1_Calendar_image.png" width="296" height="150"></figure></td></tr></tbody></table>
\ No newline at end of file
+<table>
+ <thead>
+ <tr>
+ <th>&nbsp;</th>
+ <th>&nbsp;</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><pre><code class="language-text-x-trilium-auto">#calendar:title="shortName" #shortName="John S."</code></pre></td>
+ <td><figure class="image image-style-align-center"><img style="aspect-ratio:296/150;" src="1_Calendar_image.png" width="296" height="150"></figure></td>
+ </tr>
+ </tbody>
+</table>
\ No newline at end of file
diff --git a/docs/User Guide/User Guide/Note Types/Text.md b/docs/User Guide/User Guide/Note Types/Text.md
index 909a86b228..5a36dc7bb6 100644
--- a/docs/User Guide/User Guide/Note Types/Text.md
+++ b/docs/User Guide/User Guide/Note Types/Text.md
@@ -16,7 +16,64 @@ Fore more information see <a class="reference-link" href="Text/Formatting%20too
Here's a list of various features supported by text notes:
-<table><thead><tr><th>Dedicated article</th><th>Feature</th></tr></thead><tbody><tr><td><a class="reference-link" href="Text/General%20formatting.md">General formatting</a></td><td><ul><li data-list-item-id="e04c84d59d44645ee89b2a8541ed99f90">Headings (section titles, paragraph)</li><li data-list-item-id="e39d25bd3d8bd06185b9d259e5827d451">Font size</li><li data-list-item-id="e1f7e2a2f4b03449d82bdf5b5c6ea8d44">Bold, italic, underline, strike-through</li><li data-list-item-id="e3decae72884f65b4d538151b6a297072">Superscript, subscript</li><li data-list-item-id="e59adf00fef65304c163ae190fac5e92a">Font color &amp; background color</li><li data-list-item-id="ed3f09156147a2769e91db111c76376e2">Remove formatting</li></ul></td></tr><tr><td><a class="reference-link" href="Text/Lists.md">Lists</a></td><td><ul><li data-list-item-id="ee87806a913900d85d8f018af81f41df8">Bulleted lists</li><li data-list-item-id="e3ae314e365fa418ca6e0f061d63834c5">Numbered lists</li><li data-list-item-id="ee84e08694165f95430046cb34f4cd123">To-do lists</li></ul></td></tr><tr><td><a class="reference-link" href="Text/Block%20quotes%20%26%20admonitions.md">Block quotes &amp; admonitions</a></td><td><ul><li data-list-item-id="e2892dc35a0d4b7ad65daffb8f9404daa">Block quotes</li><li data-list-item-id="e7297e3ad1002f8de15aa0bd66c6f3f22">Admonitions</li></ul></td></tr><tr><td><a class="reference-link" href="Text/Tables.md">Tables</a></td><td><ul><li data-list-item-id="eb358a4567d93f66004f4195df2dda05a">Basic tables</li><li data-list-item-id="e6135a555d6c63c30e4b84806a4870830">Merging cells</li><li data-list-item-id="e29ac76563d0998b28fb1baf94dbdac8c">Styling tables and cells.</li><li data-list-item-id="e372446e81fdedada64b8bed89ca93d1a">Table captions</li></ul></td></tr><tr><td><a class="reference-link" href="Text/Developer-specific%20formatting.md">Developer-specific formatting</a></td><td><ul><li data-list-item-id="eb260b76afcbc07bd9d4ceec4e000e8a0">Inline code</li><li data-list-item-id="e9864352286369ebe7b41c1599f498de8">Code blocks</li><li data-list-item-id="ee62fb9ed7f349178e8f2a2bd9ec8cd74">Keyboard shortcuts</li></ul></td></tr><tr><td><a class="reference-link" href="Text/Footnotes.md">Footnotes</a></td><td><ul><li data-list-item-id="edf62ec004eff35cfcb7e361deef19aaf">Footnotes</li></ul></td></tr><tr><td><a class="reference-link" href="Text/Images.md">Images</a></td><td><ul><li data-list-item-id="ebe6277e643041403489c3ceb30c36f7f">Images</li></ul></td></tr><tr><td><a class="reference-link" href="Text/Links.md">Links</a></td><td><ul><li data-list-item-id="e3f988be2f259bb40607cb61541955395">External links</li><li data-list-item-id="e3f91cc4f0cccd2c077cc306bacd68ef2">Internal Trilium links</li></ul></td></tr><tr><td><a class="reference-link" href="Text/Include%20Note.md">Include Note</a></td><td><ul><li data-list-item-id="eac8015a64bce7b749cc67d1599062007">Include note</li></ul></td></tr><tr><td><a class="reference-link" href="Text/Insert%20buttons.md">Insert buttons</a></td><td><ul><li data-list-item-id="e5cdf5d3885ec0ea67f924b4b8fe5c483">Symbols</li><li data-list-item-id="e95082e6642ed5b1eec6e4e116b899a40"><a class="reference-link" href="Text/Math%20Equations.md">Math Equations</a></li><li data-list-item-id="ecbef6a358a5b8d27f0d3e08bbc750aa9">Mermaid diagrams</li><li data-list-item-id="e6e97ee14dd29b7ccf53227107e5dc72d">Horizontal ruler</li><li data-list-item-id="e6198c7c535c249faec2e8906775f11de">Page break</li></ul></td></tr><tr><td><a class="reference-link" href="Text/Other%20features.md">Other features</a></td><td><ul><li data-list-item-id="e0c14456cb83d483b07ea432ef9d4728e">Indentation<ul><li data-list-item-id="e2029812c5e105c595590f70ee227631e">Markdown import</li></ul></li><li data-list-item-id="ea1ee012286e05190c89c9f4e64cf2036"><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">Premium features</a></td><td><ul><li data-list-item-id="e1ab173193a533ccf33dccfd0cb916f1f"><a class="reference-link" href="Text/Premium%20features/Slash%20Commands.md">Slash Commands</a></li><li data-list-item-id="e564b978c09fe5adf476b331b1e0640e3"><a class="reference-link" href="../Advanced%20Usage/Templates.md">Templates</a></li><li data-list-item-id="e756306c31d9beffbba3820b6d1b9bc61"><a class="reference-link" href="Text/Premium%20features/Format%20Painter.md">Format Painter</a></li></ul></td></tr></tbody></table>
+<table>
+ <thead>
+ <tr>
+ <th>Dedicated article</th>
+ <th>Feature</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><a class="reference-link" href="Text/General%20formatting.md">General formatting</a></td>
+ <td><ul><li data-list-item-id="e04c84d59d44645ee89b2a8541ed99f90">Headings (section titles, paragraph)</li><li data-list-item-id="e39d25bd3d8bd06185b9d259e5827d451">Font size</li><li data-list-item-id="e1f7e2a2f4b03449d82bdf5b5c6ea8d44">Bold, italic, underline, strike-through</li><li data-list-item-id="e3decae72884f65b4d538151b6a297072">Superscript, subscript</li><li data-list-item-id="e59adf00fef65304c163ae190fac5e92a">Font color &amp; background color</li><li data-list-item-id="ed3f09156147a2769e91db111c76376e2">Remove formatting</li></ul></td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="Text/Lists.md">Lists</a></td>
+ <td><ul><li data-list-item-id="ee87806a913900d85d8f018af81f41df8">Bulleted lists</li><li data-list-item-id="e3ae314e365fa418ca6e0f061d63834c5">Numbered lists</li><li data-list-item-id="ee84e08694165f95430046cb34f4cd123">To-do lists</li></ul></td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="Text/Block%20quotes%20%26%20admonitions.md">Block quotes &amp; admonitions</a></td>
+ <td><ul><li data-list-item-id="e2892dc35a0d4b7ad65daffb8f9404daa">Block quotes</li><li data-list-item-id="e7297e3ad1002f8de15aa0bd66c6f3f22">Admonitions</li></ul></td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="Text/Tables.md">Tables</a></td>
+ <td><ul><li data-list-item-id="eb358a4567d93f66004f4195df2dda05a">Basic tables</li><li data-list-item-id="e6135a555d6c63c30e4b84806a4870830">Merging cells</li><li data-list-item-id="e29ac76563d0998b28fb1baf94dbdac8c">Styling tables and cells.</li><li data-list-item-id="e372446e81fdedada64b8bed89ca93d1a">Table captions</li></ul></td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="Text/Developer-specific%20formatting.md">Developer-specific formatting</a></td>
+ <td><ul><li data-list-item-id="eb260b76afcbc07bd9d4ceec4e000e8a0">Inline code</li><li data-list-item-id="e9864352286369ebe7b41c1599f498de8">Code blocks</li><li data-list-item-id="ee62fb9ed7f349178e8f2a2bd9ec8cd74">Keyboard shortcuts</li></ul></td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="Text/Footnotes.md">Footnotes</a></td>
+ <td><ul><li data-list-item-id="edf62ec004eff35cfcb7e361deef19aaf">Footnotes</li></ul></td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="Text/Images.md">Images</a></td>
+ <td><ul><li data-list-item-id="ebe6277e643041403489c3ceb30c36f7f">Images</li></ul></td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="Text/Links.md">Links</a></td>
+ <td><ul><li data-list-item-id="e3f988be2f259bb40607cb61541955395">External links</li><li data-list-item-id="e3f91cc4f0cccd2c077cc306bacd68ef2">Internal Trilium links</li></ul></td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="Text/Include%20Note.md">Include Note</a></td>
+ <td><ul><li data-list-item-id="eac8015a64bce7b749cc67d1599062007">Include note</li></ul></td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="Text/Insert%20buttons.md">Insert buttons</a></td>
+ <td><ul><li data-list-item-id="e5cdf5d3885ec0ea67f924b4b8fe5c483">Symbols</li><li data-list-item-id="e95082e6642ed5b1eec6e4e116b899a40"><a class="reference-link" href="Text/Math%20Equations.md">Math Equations</a></li><li data-list-item-id="ecbef6a358a5b8d27f0d3e08bbc750aa9">Mermaid diagrams</li><li data-list-item-id="e6e97ee14dd29b7ccf53227107e5dc72d">Horizontal ruler</li><li data-list-item-id="e6198c7c535c249faec2e8906775f11de">Page break</li></ul></td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="Text/Other%20features.md">Other features</a></td>
+ <td><ul><li data-list-item-id="e0c14456cb83d483b07ea432ef9d4728e">Indentation<ul><li data-list-item-id="e2029812c5e105c595590f70ee227631e">Markdown import</li></ul></li><li data-list-item-id="ea1ee012286e05190c89c9f4e64cf2036"><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">Premium features</a></td>
+ <td><ul><li data-list-item-id="e1ab173193a533ccf33dccfd0cb916f1f"><a class="reference-link" href="Text/Premium%20features/Slash%20Commands.md">Slash Commands</a></li><li data-list-item-id="e564b978c09fe5adf476b331b1e0640e3"><a class="reference-link" href="../Advanced%20Usage/Templates.md">Templates</a></li><li data-list-item-id="e756306c31d9beffbba3820b6d1b9bc61"><a class="reference-link" href="Text/Premium%20features/Format%20Painter.md">Format Painter</a></li></ul></td>
+ </tr>
+ </tbody>
+</table>
## Read-Only vs. Editing Mode
diff --git a/docs/User Guide/User Guide/Scripting/Backend scripts/Events.md b/docs/User Guide/User Guide/Scripting/Backend scripts/Events.md
index 40a2aa4300..23f07c2ea9 100644
--- a/docs/User Guide/User Guide/Scripting/Backend scripts/Events.md
+++ b/docs/User Guide/User Guide/Scripting/Backend scripts/Events.md
@@ -5,7 +5,28 @@
Global events are attached to the script note via label. Simply create e.g. "run" label with some of these values and script note will be executed once the event occurs.
-<table><thead><tr><th>Label</th><th>Description</th></tr></thead><tbody><tr><td><code spellcheck="false">run</code></td><td><p>Defines on which events script should run. Possible values are:</p><ul><li data-list-item-id="e658488cf1a0862603088ef384e41b8b6"><code spellcheck="false">backendStartup</code> - when Trilium backend starts up</li><li data-list-item-id="ef40ba992fc450d33a18ca4cb031eca66"><code spellcheck="false">hourly</code> - run once an hour. You can use additional label <code spellcheck="false">runAtHour</code> to specify at which hour, on the back-end.</li><li data-list-item-id="e07458d4f55b6eb42468a5535b8425c5f"><code spellcheck="false">daily</code> - run once a day, on the back-end</li></ul></td></tr><tr><td><code spellcheck="false">runOnInstance</code></td><td>Specifies that the script should only run on a particular&nbsp;<a class="reference-link" href="../../Advanced%20Usage/Configuration%20(config.ini%20or%20environment%20variables)/Trilium%20instance.md">Trilium instance</a>.</td></tr><tr><td><code spellcheck="false">runAtHour</code></td><td>On which hour should this run. Should be used together with <code spellcheck="false">#run=hourly</code>. Can be defined multiple times for more runs during the day.</td></tr></tbody></table>
+<table>
+ <thead>
+ <tr>
+ <th>Label</th>
+ <th>Description</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><code spellcheck="false">run</code></td>
+ <td><p>Defines on which events script should run. Possible values are:</p><ul><li data-list-item-id="e658488cf1a0862603088ef384e41b8b6"><code spellcheck="false">backendStartup</code> - when Trilium backend starts up</li><li data-list-item-id="ef40ba992fc450d33a18ca4cb031eca66"><code spellcheck="false">hourly</code> - run once an hour. You can use additional label <code spellcheck="false">runAtHour</code> to specify at which hour, on the back-end.</li><li data-list-item-id="e07458d4f55b6eb42468a5535b8425c5f"><code spellcheck="false">daily</code> - run once a day, on the back-end</li></ul></td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">runOnInstance</code></td>
+ <td>Specifies that the script should only run on a particular&nbsp;<a class="reference-link" href="../../Advanced%20Usage/Configuration%20(config.ini%20or%20environment%20variables)/Trilium%20instance.md">Trilium instance</a>.</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">runAtHour</code></td>
+ <td>On which hour should this run. Should be used together with <code spellcheck="false">#run=hourly</code>. Can be defined multiple times for more runs during the day.</td>
+ </tr>
+ </tbody>
+</table>
## Entity events
diff --git a/docs/User Guide/User Guide/Scripting/Frontend Basics/Custom Widgets.md b/docs/User Guide/User Guide/Scripting/Frontend Basics/Custom Widgets.md
index 9963e37c1b..4d7e4a9195 100644
--- a/docs/User Guide/User Guide/Scripting/Frontend Basics/Custom Widgets.md
+++ b/docs/User Guide/User Guide/Scripting/Frontend Basics/Custom Widgets.md
@@ -63,7 +63,48 @@ export default defineWidget({
A widget can be placed in one of the following sections of the applications:
-<table class="ck-table-resized"><colgroup><col style="width:15.59%;"><col style="width:30.42%;"><col style="width:16.68%;"><col style="width:37.31%;"></colgroup><thead><tr><th>Value for <code spellcheck="false">parentWidget</code></th><th>Description</th><th>Sample widget</th><th>Special requirements</th></tr></thead><tbody><tr><th><code spellcheck="false">left-pane</code></th><td>Appears within the same pane that holds the&nbsp;<a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree.md">Note Tree</a>.</td><td>Same as above, with only a different <code spellcheck="false">parentWidget</code>.</td><td>None.</td></tr><tr><th><code spellcheck="false">center-pane</code></th><td>In the content area. If a split is open, the widget will span all of the splits.</td><td>See example above.</td><td>None.</td></tr><tr><th><code spellcheck="false">note-detail-pane</code></th><td><p>In the content area, inside the note detail area. If a split is open, the widget will be contained inside the split.</p><p>This is ideal if the widget is note-specific.</p></td><td><a class="reference-link" href="Custom%20Widgets/Note%20context%20aware%20widget.md">Note context aware widget</a></td><td><ul><li data-list-item-id="ec06332efcc3039721606c052f0d913fa">The widget must export a <code spellcheck="false">class</code> and not an instance of the class (e.g. <code spellcheck="false">no new</code>) because it needs to be multiplied for each note, so that splits work correctly.</li><li data-list-item-id="e8da690a2a8df148f6b5fc04ba1611688">Since the <code spellcheck="false">class</code> is exported instead of an instance, the <code spellcheck="false">parentWidget</code> getter must be <code spellcheck="false">static</code>, otherwise the widget is ignored.</li></ul></td></tr><tr><th><code spellcheck="false">right-pane</code></th><td>In the&nbsp;<a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Right%20Sidebar.md">Right Sidebar</a>, as a dedicated section.</td><td><a class="reference-link" href="Custom%20Widgets/Right%20pane%20widget.md">Right pane widget</a></td><td><ul><li data-list-item-id="efe008d361e224f422582552648e1afe7">Although not mandatory, it's best to use a <code spellcheck="false">RightPanelWidget</code> instead of a <code spellcheck="false">BasicWidget</code> or a <code spellcheck="false">NoteContextAwareWidget</code>.</li></ul></td></tr></tbody></table>
+<table class="ck-table-resized">
+ <colgroup>
+ <col style="width:15.59%;">
+ <col style="width:30.42%;">
+ <col style="width:16.68%;">
+ <col style="width:37.31%;">
+ </colgroup>
+ <thead>
+ <tr>
+ <th>Value for <code spellcheck="false">parentWidget</code></th>
+ <th>Description</th>
+ <th>Sample widget</th>
+ <th>Special requirements</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th><code spellcheck="false">left-pane</code></th>
+ <td>Appears within the same pane that holds the&nbsp;<a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree.md">Note Tree</a>.</td>
+ <td>Same as above, with only a different <code spellcheck="false">parentWidget</code>.</td>
+ <td>None.</td>
+ </tr>
+ <tr>
+ <th><code spellcheck="false">center-pane</code></th>
+ <td>In the content area. If a split is open, the widget will span all of the splits.</td>
+ <td>See example above.</td>
+ <td>None.</td>
+ </tr>
+ <tr>
+ <th><code spellcheck="false">note-detail-pane</code></th>
+ <td><p>In the content area, inside the note detail area. If a split is open, the widget will be contained inside the split.</p><p>This is ideal if the widget is note-specific.</p></td>
+ <td><a class="reference-link" href="Custom%20Widgets/Note%20context%20aware%20widget.md">Note context aware widget</a></td>
+ <td><ul><li data-list-item-id="ec06332efcc3039721606c052f0d913fa">The widget must export a <code spellcheck="false">class</code> and not an instance of the class (e.g. <code spellcheck="false">no new</code>) because it needs to be multiplied for each note, so that splits work correctly.</li><li data-list-item-id="e8da690a2a8df148f6b5fc04ba1611688">Since the <code spellcheck="false">class</code> is exported instead of an instance, the <code spellcheck="false">parentWidget</code> getter must be <code spellcheck="false">static</code>, otherwise the widget is ignored.</li></ul></td>
+ </tr>
+ <tr>
+ <th><code spellcheck="false">right-pane</code></th>
+ <td>In the&nbsp;<a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Right%20Sidebar.md">Right Sidebar</a>, as a dedicated section.</td>
+ <td><a class="reference-link" href="Custom%20Widgets/Right%20pane%20widget.md">Right pane widget</a></td>
+ <td><ul><li data-list-item-id="efe008d361e224f422582552648e1afe7">Although not mandatory, it's best to use a <code spellcheck="false">RightPanelWidget</code> instead of a <code spellcheck="false">BasicWidget</code> or a <code spellcheck="false">NoteContextAwareWidget</code>.</li></ul></td>
+ </tr>
+ </tbody>
+</table>
To position the widget somewhere else, just change the value passed to `get parentWidget()` for legacy widgets or the `parent` field for Preact. Do note that some positions such as `note-detail-pane` and `right-pane` have special requirements that need to be accounted for (see the table above).
diff --git a/docs/User Guide/User Guide/Scripting/Frontend Basics/Examples/New Task launcher button.md b/docs/User Guide/User Guide/Scripting/Frontend Basics/Examples/New Task launcher button.md
index dd2ad21b1e..1a88cc3fca 100644
--- a/docs/User Guide/User Guide/Scripting/Frontend Basics/Examples/New Task launcher button.md
+++ b/docs/User Guide/User Guide/Scripting/Frontend Basics/Examples/New Task launcher button.md
@@ -34,14 +34,45 @@ Since we set the script to be run on start-up, all we need to do is to [refresh
## Understanding how the script works
-<table class="ck-table-resized"><colgroup><col><col></colgroup><tbody><tr><td><pre><code class="language-application-javascript-env-frontend">api.addButtonToToolbar({
+<table class="ck-table-resized">
+ <colgroup>
+ <col>
+ <col>
+ </colgroup>
+ <tbody>
+ <tr>
+ <td><pre><code class="language-application-javascript-env-frontend">api.addButtonToToolbar({
title: "New task",
icon: "task",
shortcut: "alt+n",
action: async () =&gt; {
// [...]
}
-});</code></pre></td><td><p>This uses the <a href="../../Frontend%20Basics.md">Front-end API</a> to create a icon in the&nbsp;<a class="reference-link" href="../../../Basic%20Concepts%20and%20Features/UI%20Elements/Launch%20Bar.md">Launch Bar</a>, by specifying:</p><ul><li>A title</li><li>A corresponding boxicons icon (without the <code>bx-</code> prefix).</li><li>Optionally, a keyboard shortcut to assign to it.</li><li>The action, which will be executed when the button is pressed.</li></ul></td></tr><tr><td><pre><code class="language-application-javascript-env-frontend">const taskNoteId = await api.runOnBackend(() =&gt; {
+});</code></pre></td>
+ <td><p>This uses the <a href="../../Frontend%20Basics.md">Front-end API</a> to create a icon in the&nbsp;<a class="reference-link" href="../../../Basic%20Concepts%20and%20Features/UI%20Elements/Launch%20Bar.md">Launch Bar</a>, by specifying:</p><ul><li>A title</li><li>A corresponding boxicons icon (without the <code>bx-</code> prefix).</li><li>Optionally, a keyboard shortcut to assign to it.</li><li>The action, which will be executed when the button is pressed.</li></ul></td>
+ </tr>
+ <tr>
+ <td><pre><code class="language-application-javascript-env-frontend">const taskNoteId = await api.runOnBackend(() =&gt; {
// Shown below.
return resp.note.noteId;
-});</code></pre></td><td><ul><li>This portion of code is actually executed on the server (backend) and not on the client (i.e. browser).<ul><li>The reason is that the creating notes is the responsibility of the server.</li></ul></li><li>Here we can also see that it is possible to return results from the server execution and read them in the client (<code>taskNoteId</code>).</li></ul></td></tr><tr><td><pre><code class="language-application-javascript-env-frontend">const todoRootNote = api.getNoteWithLabel("taskTodoRoot");</code></pre></td><td><ul><li>Here we identify a note with the <a href="../../../Advanced%20Usage/Attributes.md">label</a> <code>#taskTodoRoot</code>. This is how the&nbsp;<a class="reference-link" href="../../../Advanced%20Usage/Advanced%20Showcases/Task%20Manager.md">Task Manager</a>&nbsp;showcase knows where to place all the different tasks.</li><li>Normally this might return a <code>null</code> value if no such note could be identified, but error handling is outside the scope of this example.&nbsp;</li></ul></td></tr><tr><td><pre><code class="language-application-javascript-env-frontend">const resp = api.createTextNote(todoRootNote.noteId, "New task", "")</code></pre></td><td><ul><li>We create a new child note within the to-do root note (first argument) with the title “New task" (second argument) and no content by default (third argument).</li></ul></td></tr><tr><td><pre><code class="language-application-javascript-env-frontend">await api.waitUntilSynced();</code></pre></td><td><ul><li>Back on the client, since we created a new note on the server, we now need to wait for the change to be reflected in the client.</li></ul></td></tr><tr><td><pre><code class="language-application-javascript-env-frontend">await api.activateNewNote(taskNoteId);</code></pre></td><td><ul><li>Since we know the <a href="../../../Advanced%20Usage/Note%20ID.md">ID</a> of the newly created note, all we have to do now is to show this note to the user.</li></ul></td></tr></tbody></table>
\ No newline at end of file
+});</code></pre></td>
+ <td><ul><li>This portion of code is actually executed on the server (backend) and not on the client (i.e. browser).<ul><li>The reason is that the creating notes is the responsibility of the server.</li></ul></li><li>Here we can also see that it is possible to return results from the server execution and read them in the client (<code>taskNoteId</code>).</li></ul></td>
+ </tr>
+ <tr>
+ <td><pre><code class="language-application-javascript-env-frontend">const todoRootNote = api.getNoteWithLabel("taskTodoRoot");</code></pre></td>
+ <td><ul><li>Here we identify a note with the <a href="../../../Advanced%20Usage/Attributes.md">label</a> <code>#taskTodoRoot</code>. This is how the&nbsp;<a class="reference-link" href="../../../Advanced%20Usage/Advanced%20Showcases/Task%20Manager.md">Task Manager</a>&nbsp;showcase knows where to place all the different tasks.</li><li>Normally this might return a <code>null</code> value if no such note could be identified, but error handling is outside the scope of this example.&nbsp;</li></ul></td>
+ </tr>
+ <tr>
+ <td><pre><code class="language-application-javascript-env-frontend">const resp = api.createTextNote(todoRootNote.noteId, "New task", "")</code></pre></td>
+ <td><ul><li>We create a new child note within the to-do root note (first argument) with the title “New task" (second argument) and no content by default (third argument).</li></ul></td>
+ </tr>
+ <tr>
+ <td><pre><code class="language-application-javascript-env-frontend">await api.waitUntilSynced();</code></pre></td>
+ <td><ul><li>Back on the client, since we created a new note on the server, we now need to wait for the change to be reflected in the client.</li></ul></td>
+ </tr>
+ <tr>
+ <td><pre><code class="language-application-javascript-env-frontend">await api.activateNewNote(taskNoteId);</code></pre></td>
+ <td><ul><li>Since we know the <a href="../../../Advanced%20Usage/Note%20ID.md">ID</a> of the newly created note, all we have to do now is to show this note to the user.</li></ul></td>
+ </tr>
+ </tbody>
+</table>
\ No newline at end of file