Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
docs(user): update the calendar documentation
Elian Doran5406c2052984
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Technologies used.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Technologies used.htmlindex 3788af2b2e..20a64ca726 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Technologies used.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Technologies used.html@@ -29,4 +29,12 @@href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/_help_gBbsAeiuUxI5">Mind Map</a> notetypes. The main library is available on <a href="https://github.com/SSShooter/mind-elixir-core/issues">GitHub as mind-elixir-core</a>.</p><p>Trilium ships its own UI which covers the toolbars, the contextual menu,- the zoom buttons and the right panel that shows when clicking a node.</p>\ No newline at end of file+ the zoom buttons and the right panel that shows when clicking a node.</p>+<h2>FullCalendar</h2>+<p><a href="https://fullcalendar.io/">FullCalendar</a> is the technology behind+ the <a class="reference-link" href="#root/pOsGYCXsbNQG/GTwFsgaA0lCt/_help_xWbu3jpNWapp">Calendar</a> collection,+ providing the various views (day, week, month, year) and the event management.+ Trilium also ships its own UI in the form of the popup that appears when+ editing, as well as the header that appears in the <a class="reference-link"+ href="#root/pOsGYCXsbNQG/GTwFsgaA0lCt/_help_CssoWBu8I7jF">Collection Properties</a>.</p>+<p>Licensed under the MIT license.</p>\ No newline at end of filediff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/1_Calendar_image.png b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/1_Calendar_image.pngindex 10ac2bb3d9..e2743dd637 100644Binary files a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/1_Calendar_image.png and b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/1_Calendar_image.png differdiff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/2_Calendar_image.png b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/2_Calendar_image.pngindex 0ec1e363e8..3db9e775e6 100644Binary files a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/2_Calendar_image.png and b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/2_Calendar_image.png differdiff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/3_Calendar_image.png b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/3_Calendar_image.pngindex 3db9e775e6..b147a7991e 100644Binary files a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/3_Calendar_image.png and b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/3_Calendar_image.png differdiff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/4_Calendar_image.png b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/4_Calendar_image.pngindex b147a7991e..920ffc6075 100644Binary files a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/4_Calendar_image.png and b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/4_Calendar_image.png differdiff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/5_Calendar_image.png b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/5_Calendar_image.pngindex 920ffc6075..e89fee4d02 100644Binary files a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/5_Calendar_image.png and b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/5_Calendar_image.png differdiff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/6_Calendar_image.png b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/6_Calendar_image.pngindex e89fee4d02..ae9c9a3c18 100644Binary files a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/6_Calendar_image.png and b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/6_Calendar_image.png differdiff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/7_Calendar_image.png b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/7_Calendar_image.pngindex ae9c9a3c18..875127df2e 100644Binary files a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/7_Calendar_image.png and b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/7_Calendar_image.png differdiff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/8_Calendar_image.png b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/8_Calendar_image.pngindex 875127df2e..7bdf27a6f4 100644Binary files a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/8_Calendar_image.png and b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/8_Calendar_image.png differdiff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/9_Calendar_image.png b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/9_Calendar_image.pngdeleted file mode 100644index 7bdf27a6f4..0000000000Binary files a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/9_Calendar_image.png and /dev/null differdiff --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.htmlindex d6400a3495..9383401ff5 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@@ -1,18 +1,20 @@-<figure class="image image-style-align-center">- <img style="aspect-ratio:767/606;" src="2_Calendar_image.png"- width="767" height="606">+<figure class="image">+ <img style="aspect-ratio:2016/1413;" src="1_Calendar_image.png"+ width="2016" height="1413"></figure><p>The Calendar view will display each child note in a calendar that hasa start date and optionally an end date, as an event.</p><p>The Calendar view has multiple display modes:</p><ul>+ <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>Week view, where all the 7 days of the week (or 5 if the weekends arehidden) are displayed in columns. This mode allows entering and displayingtime-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>Day view, which views only a single day. Especially useful for heavy agendas+ or mobile views.</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></ul><p>Unlike other Collection view types, the Calendar view also allows somekind of interaction, such as moving events around as well as creating new@@ -22,46 +24,83 @@href="#root/_help_oPVyFC7WL2Lp">Note Tree</a> and select <em>Insert child note</em> andlook for <em>Calendar</em>.</p><h2>Creating a new event/note</h2>+<p>To create a new event:</p><ul>- <li>Clicking on a day will create a new child note and assign it to that particular- day.- <ul>- <li>You will be asked for the name of the new note. If the popup is dismissed- by pressing the close button or escape, then the note will not be created.</li>- </ul>- </li>- <li>It's possible to drag across multiple days to set both the start and end- date of a particular note.- <br>- <img src="Calendar_image.png">- </li>- <li>Creating new notes from the calendar will respect the <code spellcheck="false">~child:template</code> relation- if set on the Collection note.</li>+ <li>First, click the desired day (month & year views) or the desired timeslot+ (day view).</li>+ <li>Alternatively, drag across multiple days (or time slots) to set both the+ start and end date.</li></ul>+<p>In either cases, a small popup will show with a prompt for a title and+ the date & time of the event that will be created.</p>+<p>At this point, the event hasn't been created yet to protect against accidental+ clicks. Add a title optionally and press the <em>Create</em> button. If no+ title is provided, the event will follow the <a class="reference-link"+ href="#root/pOsGYCXsbNQG/tC7s2alapj8V/_help_47ZrP6FNuoG8">Default Note Title</a> rules.</p>+<p>After creating the event, it will show up on the calendar. To edit the+ content of the event (including recurrence), click on it to bring it into+ the popup view.</p>+<aside class="admonition note">+ <p>Creating new notes from the calendar will respect the <code spellcheck="false">~child:template</code> relation+ if set on the Collection note.</p>+</aside><h2>Interacting with events</h2><ul><li>Hovering the mouse over an event will display information about the note.<br>- <img src="5_Calendar_image.png">- </li>- <li>Left clicking the event will open a <a class="reference-link" href="#root/_help_ZjLYv08Rp3qC">Quick edit</a> to- edit the note in a popup while allowing easy return to the calendar by- just dismissing the popup.- <ul>- <li>Middle clicking will open the note in a new tab.</li>- <li>Right click will offer more options including opening the note in a new- split or window.</li>- </ul>+ <img src="4_Calendar_image.png"></li>+ <li>Left clicking the event will open a dedicated popup to quickly configure+ the event or edit its note content.</li>+ <li>Right click will offer more options including opening the note in a new+ split or window.</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 rightedge of the event and dragging the mouse around.</li></ul>+<h3>Popup view</h3>+<p>When an event is clicked, a popup will show near the event which contains+ the following inforamtion:</p>+<ul>+ <li>The title and icon of the event, both editable.</li>+ <li>Buttons to interact with the event:+ <ul>+ <li>Open the event in the same pane, new tab, etc.</li>+ <li>Color picker to change the color of the event.</li>+ <li>Button to remove the event from the calendar, which can optionally delete+ its corresponding note.</li>+ </ul>+ </li>+ <li>Calendar-specific features:+ <ul>+ <li>A toggle for all-day events.</li>+ <li>A start/end date & time selector.</li>+ <li>A full recurrence editor, to have the same event show up weekly, monthly,+ etc.</li>+ </ul>+ </li>+ <li>The <a class="reference-link" href="#root/pOsGYCXsbNQG/tC7s2alapj8V/zEY4DaJG4YT5/_help_OFXdgB2nNk1F">Promoted Attributes</a> of+ the marker, if any.</li>+ <li>The note's content which can be edited directly from the panel.</li>+</ul>+<p>To dismiss the popup:</p>+<ul>+ <li>Press the X button at the top-right of the popup.</li>+ <li>In the calendar, press anywhere outside the popup.</li>+ <li>Or simply press the <kbd spellcheck="false">Escape</kbd> key.</li>+</ul>+<p>It is possible to switch between events by clicking on them even when+ the popup view is already open.</p>+<p>Events can have <a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/iPIMuisry3hd/QEAPj01N5f7w/_help_hrZ1D00cLbal">Internal (reference) links</a> between+ them and clicking on such a link will automatically navigate the calendar+ to the right date and the popup view to the new note.</p><h2>Interaction on mobile</h2><p>When Trilium is on mobile, the interaction with the calendar is slightlydifferent:</p><ul>- <li>Clicking on an event triggers the contextual menu, including the option+ <li>Clicking on an event displays the popup view, which allows editing the+ event.</li>+ <li>Long-presing an event triggers the contextual menu, including the optionto open in <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,the empty space will become colored to indicate the selection.@@ -230,7 +269,7 @@ class="table"><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> + <td><strong>❌️ Removed since v0.100.0. Use</strong> <code spellcheck="false">#color</code> <strong>instead.</strong> <br><br>Similar to <code spellcheck="false">#color</code>, but applies the coloronly for the event in the calendar and not for other places such as the@@ -257,7 +296,7 @@ class="table">like this: <br><br>- <img src="7_Calendar_image.png"> + <img src="6_Calendar_image.png"> <br><br><code spellcheck="false">#weight="70" #Mood="Good" #calendar:displayedAttributes="weight,Mood"</code> <br>@@ -299,26 +338,31 @@ class="table"></figure><h2>How the calendar works</h2><p>- <img src="9_Calendar_image.png">+ <img src="8_Calendar_image.png"></p><p>The calendar displays all the child notes of the Collection that havea <code spellcheck="false">#startDate</code>. An <code spellcheck="false">#endDate</code> canoptionally 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"+ <p>The start date & end date can easily be edited from the calendar collection+ itself by clicking on the event. To edit the date while in the event note+ itself, 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">+ <img src="7_Calendar_image.png"></p><p>When not used in a Journal, the calendar is recursive. That is, it willlook for events not just in its child notes but also in the children ofthese 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. </p>+ <p>The built in calendar view also supports repeating tasks (e.g. every week,+ every month as well as more complex recurrency rules).</p>+ <p>Starting with v0.105.0, recurrence can be directly edited from the calendar+ by clicking on an event and then selecting the <em>Repeats</em> option.</p>+ <h3>Custom recurrence using a subset of RRULE</h3>+ <p>If the existing recurrence editor from the event popup is not sufficient,+ more complex rules can be manually set via the <code spellcheck="false">#recurrence</code> label.</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>@@ -335,7 +379,6 @@ class="table"></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> stringssee <a href="https://icalendar.org/rrule-tool.html">https://icalendar.org/rrule-tool.html</a>@@ -485,6 +528,8 @@ class="table"><p>It is possible to integrate the calendar view into the Journal with daynotes. In order to do so change the note type of the Journal note (calendarroot) to Collection and then select the Calendar View.</p>+ <p>While in journal mode, the popup editor will not show dates, recurrence,+ colors or removal, since day notes aren't editable events.</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 thefollowing:</p>@@ -500,10 +545,12 @@ class="table">of the child notes will not be displayed.</li></ul><p>- <img src="6_Calendar_image.png" width="1217" height="724">+ <img src="5_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.+ <p>+ <img class="image-style-align-right" src="2_Calendar_image.png"+ width="445" height="124">By default, events are displayed on the calendar by their note title.However, it is possible to configure a different attribute to be displayedinstead.</p><p>To do so, assign <code spellcheck="false">#calendar:title</code> to the@@ -512,80 +559,19 @@ class="table">spellcheck="false">name</code>where <code spellcheck="false">name</code> can be any label (makenot to add the <code spellcheck="false">#</code> prefix). The attribute canalso 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> </th>- <th> </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> </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> </th>- <th> </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 of attributes could cause the application- to loop infinitely).</p>- <figure class="table">- <table>- <thead>- <tr>- <th> </th>- <th> </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+ does not have the requested label, the title of the note will be used instead.</p><pre><code class="language-text-x-trilium-auto">#startDate=2025-02-11 #endDate=2025-02-13 #name="My vacation" #calendar:title="name"</code></pre>+ <h3>Using a relation attribute as event title</h3>+ <p>+ <img class="image-style-align-right image_resized" style="aspect-ratio:294/151;width:21.22%;"+ src="3_Calendar_image.png" width="294" height="151">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><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>+ <p>+ <img class="image-style-align-left" src="Calendar_image.png"+ width="296" height="150">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 of attributes could cause the application+ to loop infinitely).</p><pre><code class="language-text-x-trilium-auto">#calendar:title="shortName" #shortName="John S."</code></pre>\ No newline at end of filediff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Calendar_image.png b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Calendar_image.pngindex 238efaea71..10ac2bb3d9 100644Binary files a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Calendar_image.png and b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Calendar_image.png differdiff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Geo Map.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Geo Map.htmlindex 64ea923899..5648b360e0 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Geo Map.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Geo Map.html@@ -132,7 +132,7 @@ class="admonition note"><li>A button to maximize the popup.</li><li>Buttons to interact with the markers:<ul>- <li>Buttons to open the marker in the same pane, new tab, etc.</li>+ <li>Open the marker in the same pane, new tab, etc.</li><li>A button to open the location in a dedicated application (e.g. GoogleMaps on mobile).</li><li>Color picker to change the color of the marker.</li>@@ -147,6 +147,12 @@ class="admonition note">the marker, if any.</li><li>The note's content which can be edited directly from the panel.</li></ul>+ <p>To dismiss the popup:</p>+ <ul>+ <li>Press the X button at the top-right of the popup.</li>+ <li>In the map, press anywhere outside the popup.</li>+ <li>Or simply press the <kbd spellcheck="false">Escape</kbd> key.</li>+ </ul><p>When a marker is clicked, the map will automatically adjust the viewportso that the marker is still visible with the popup open. The currentlyselected marker is shown slightly bigger.</p>diff --git a/docs/User Guide/!!!meta.json b/docs/User Guide/!!!meta.jsonindex f76a9020f8..e5bed7d6f6 100644--- a/docs/User Guide/!!!meta.json+++ b/docs/User Guide/!!!meta.json@@ -14351,13 +14351,34 @@"value": "calendar","isInheritable": false,"position": 30+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "OFXdgB2nNk1F",+ "isInheritable": false,+ "position": 40+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "hrZ1D00cLbal",+ "isInheritable": false,+ "position": 50+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "47ZrP6FNuoG8",+ "isInheritable": false,+ "position": 60}],"format": "markdown","dataFileName": "Calendar.md","attachments": [{- "attachmentId": "37CfbqKYcOtd",+ "attachmentId": "akAHcIEcGnWR","title": "image.png","role": "image","mime": "image/png",@@ -14365,28 +14386,20 @@"dataFileName": "Calendar_image.png"},{- "attachmentId": "akAHcIEcGnWR",+ "attachmentId": "fFHaahtywLrl","title": "image.png","role": "image","mime": "image/png","position": 10,"dataFileName": "1_Calendar_image.png"},- {- "attachmentId": "fOdCNTs2BuI0",- "title": "image.png",- "role": "image",- "mime": "image/png",- "position": 10,- "dataFileName": "2_Calendar_image.png"- },{"attachmentId": "HfBu0m3WXtn2","title": "image.png","role": "image","mime": "image/png","position": 10,- "dataFileName": "3_Calendar_image.png"+ "dataFileName": "2_Calendar_image.png"},{"attachmentId": "ho00OJTNrxVI",@@ -14394,7 +14407,7 @@"role": "image","mime": "image/png","position": 10,- "dataFileName": "4_Calendar_image.png"+ "dataFileName": "3_Calendar_image.png"},{"attachmentId": "irfNX8n4159U",@@ -14402,7 +14415,7 @@"role": "image","mime": "image/png","position": 10,- "dataFileName": "5_Calendar_image.png"+ "dataFileName": "4_Calendar_image.png"},{"attachmentId": "KF56rdNuOwWd",@@ -14410,7 +14423,7 @@"role": "image","mime": "image/png","position": 10,- "dataFileName": "6_Calendar_image.png"+ "dataFileName": "5_Calendar_image.png"},{"attachmentId": "oBWr5GL6cUAZ",@@ -14418,7 +14431,7 @@"role": "image","mime": "image/png","position": 10,- "dataFileName": "7_Calendar_image.png"+ "dataFileName": "6_Calendar_image.png"},{"attachmentId": "oS6yUoQtfhpg",@@ -14426,7 +14439,7 @@"role": "image","mime": "image/png","position": 10,- "dataFileName": "8_Calendar_image.png"+ "dataFileName": "7_Calendar_image.png"},{"attachmentId": "u2c09UpZghff",@@ -14434,7 +14447,7 @@"role": "image","mime": "image/png","position": 10,- "dataFileName": "9_Calendar_image.png"+ "dataFileName": "8_Calendar_image.png"}]},@@ -19078,6 +19091,20 @@"value": "gBbsAeiuUxI5","isInheritable": false,"position": 100+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "xWbu3jpNWapp",+ "isInheritable": false,+ "position": 110+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "CssoWBu8I7jF",+ "isInheritable": false,+ "position": 120}],"format": "markdown",diff --git a/docs/User Guide/User Guide/Advanced Usage/Technologies used.md b/docs/User Guide/User Guide/Advanced Usage/Technologies used.mdindex 8bc8f28216..7b9ff3119e 100644--- a/docs/User Guide/User Guide/Advanced Usage/Technologies used.md+++ b/docs/User Guide/User Guide/Advanced Usage/Technologies used.md@@ -23,4 +23,10 @@ Trilium v0.105.0 introduces [MapLibre GL JS](https://github.com/maplibre/maplibrMindElixir is the library we are using for <a class="reference-link" href="../Note%20Types/Mind%20Map.md">Mind Map</a> note types. The main library is available on [GitHub as mind-elixir-core](https://github.com/SSShooter/mind-elixir-core/issues).-Trilium ships its own UI which covers the toolbars, the contextual menu, the zoom buttons and the right panel that shows when clicking a node.\ No newline at end of file+Trilium ships its own UI which covers the toolbars, the contextual menu, the zoom buttons and the right panel that shows when clicking a node.++## FullCalendar++[FullCalendar](https://fullcalendar.io/) is the technology behind the <a class="reference-link" href="../Collections/Calendar.md">Calendar</a> collection, providing the various views (day, week, month, year) and the event management. Trilium also ships its own UI in the form of the popup that appears when editing, as well as the header that appears in the <a class="reference-link" href="../Collections/Collection%20Properties.md">Collection Properties</a>.++Licensed under the MIT license.\ No newline at end of filediff --git a/docs/User Guide/User Guide/Collections/1_Calendar_image.png b/docs/User Guide/User Guide/Collections/1_Calendar_image.pngindex 10ac2bb3d9..e2743dd637 100644Binary files a/docs/User Guide/User Guide/Collections/1_Calendar_image.png and b/docs/User Guide/User Guide/Collections/1_Calendar_image.png differdiff --git a/docs/User Guide/User Guide/Collections/2_Calendar_image.png b/docs/User Guide/User Guide/Collections/2_Calendar_image.pngindex 0ec1e363e8..3db9e775e6 100644Binary files a/docs/User Guide/User Guide/Collections/2_Calendar_image.png and b/docs/User Guide/User Guide/Collections/2_Calendar_image.png differdiff --git a/docs/User Guide/User Guide/Collections/3_Calendar_image.png b/docs/User Guide/User Guide/Collections/3_Calendar_image.pngindex 3db9e775e6..b147a7991e 100644Binary files a/docs/User Guide/User Guide/Collections/3_Calendar_image.png and b/docs/User Guide/User Guide/Collections/3_Calendar_image.png differdiff --git a/docs/User Guide/User Guide/Collections/4_Calendar_image.png b/docs/User Guide/User Guide/Collections/4_Calendar_image.pngindex b147a7991e..920ffc6075 100644Binary files a/docs/User Guide/User Guide/Collections/4_Calendar_image.png and b/docs/User Guide/User Guide/Collections/4_Calendar_image.png differdiff --git a/docs/User Guide/User Guide/Collections/5_Calendar_image.png b/docs/User Guide/User Guide/Collections/5_Calendar_image.pngindex 920ffc6075..e89fee4d02 100644Binary files a/docs/User Guide/User Guide/Collections/5_Calendar_image.png and b/docs/User Guide/User Guide/Collections/5_Calendar_image.png differdiff --git a/docs/User Guide/User Guide/Collections/6_Calendar_image.png b/docs/User Guide/User Guide/Collections/6_Calendar_image.pngindex e89fee4d02..ae9c9a3c18 100644Binary files a/docs/User Guide/User Guide/Collections/6_Calendar_image.png and b/docs/User Guide/User Guide/Collections/6_Calendar_image.png differdiff --git a/docs/User Guide/User Guide/Collections/7_Calendar_image.png b/docs/User Guide/User Guide/Collections/7_Calendar_image.pngindex ae9c9a3c18..875127df2e 100644Binary files a/docs/User Guide/User Guide/Collections/7_Calendar_image.png and b/docs/User Guide/User Guide/Collections/7_Calendar_image.png differdiff --git a/docs/User Guide/User Guide/Collections/8_Calendar_image.png b/docs/User Guide/User Guide/Collections/8_Calendar_image.pngindex 875127df2e..7bdf27a6f4 100644Binary files a/docs/User Guide/User Guide/Collections/8_Calendar_image.png and b/docs/User Guide/User Guide/Collections/8_Calendar_image.png differdiff --git a/docs/User Guide/User Guide/Collections/9_Calendar_image.png b/docs/User Guide/User Guide/Collections/9_Calendar_image.pngdeleted file mode 100644index 7bdf27a6f4..0000000000Binary files a/docs/User Guide/User Guide/Collections/9_Calendar_image.png and /dev/null differdiff --git a/docs/User Guide/User Guide/Collections/Calendar.md b/docs/User Guide/User Guide/Collections/Calendar.mdindex 9716ca3546..3877cd803a 100644--- a/docs/User Guide/User Guide/Collections/Calendar.md+++ b/docs/User Guide/User Guide/Collections/Calendar.md@@ -1,14 +1,15 @@# Calendar-<figure class="image image-style-align-center"><img style="aspect-ratio:767/606;" src="2_Calendar_image.png" width="767" height="606"></figure>+<figure class="image"><img style="aspect-ratio:2016/1413;" src="1_Calendar_image.png" width="2016" height="1413"></figure>The Calendar view will display each child note in a calendar that has a start date and optionally an end date, as an event.The Calendar view has multiple display modes:-* Week view, where all the 7 days of the week (or 5 if the weekends are hidden) are displayed in columns. This mode allows entering and displaying time-specific events, not just all-day events.* 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.-* Year view, which displays the entire year for quick reference.+* Week view, where all the 7 days of the week (or 5 if the weekends are hidden) are displayed in columns. This mode allows entering and displaying time-specific events, not just all-day events.+* Day view, which views only a single day. Especially useful for heavy agendas or mobile views.* List view, which displays all the events of a given month in sequence.+* Year view, which displays the entire year for quick reference.Unlike other Collection view types, the Calendar view also allows some kind of interaction, such as moving events around as well as creating new ones.@@ -18,27 +19,61 @@ Right click on an existing note in the <a class="reference-link" href="../Basic## Creating a new event/note-* Clicking on a day will create a new child note and assign it to that particular day.- * You will be asked for the name of the new note. If the popup is dismissed by pressing the close button or escape, then the note will not be created.-* It's possible to drag across multiple days to set both the start and end date of a particular note.- -* Creating new notes from the calendar will respect the `~child:template` relation if set on the Collection note.+To create a new event:++* First, click the desired day (month & year views) or the desired timeslot (day view).+* Alternatively, drag across multiple days (or time slots) to set both the start and end date.++In either cases, a small popup will show with a prompt for a title and the date & time of the event that will be created.++At this point, the event hasn't been created yet to protect against accidental clicks. Add a title optionally and press the _Create_ button. If no title is provided, the event will follow the <a class="reference-link" href="../Advanced%20Usage/Default%20Note%20Title.md">Default Note Title</a> rules.++After creating the event, it will show up on the calendar. To edit the content of the event (including recurrence), click on it to bring it into the popup view.++> [!NOTE]+> Creating new notes from the calendar will respect the `~child:template` relation if set on the Collection note.## Interacting with events* Hovering the mouse over an event will display information about the note.- -* Left clicking the event will open a <a class="reference-link" href="../Basic%20Concepts%20and%20Features/Navigation/Quick%20edit.md">Quick edit</a> to edit the note in a popup while allowing easy return to the calendar by just dismissing the popup.- * Middle clicking will open the note in a new tab.- * Right click will offer more options including opening the note in a new split or window.+ +* Left clicking the event will open a dedicated popup to quickly configure the event or edit its note content.+* Right click will offer more options including opening the note in a new split or window.* Drag and drop an event on the calendar to move it to another day.* The length of an event can be changed by placing the mouse to the right edge of the event and dragging the mouse around.+### Popup view++When an event is clicked, a popup will show near the event which contains the following inforamtion:++* The title and icon of the event, both editable.+* Buttons to interact with the event:+ * Open the event in the same pane, new tab, etc.+ * Color picker to change the color of the event.+ * Button to remove the event from the calendar, which can optionally delete its corresponding note.+* Calendar-specific features:+ * A toggle for all-day events.+ * A start/end date & time selector.+ * A full recurrence editor, to have the same event show up weekly, monthly, etc.+* The <a class="reference-link" href="../Advanced%20Usage/Attributes/Promoted%20Attributes.md">Promoted Attributes</a> of the marker, if any.+* The note's content which can be edited directly from the panel.++To dismiss the popup:++* Press the X button at the top-right of the popup.+* In the calendar, press anywhere outside the popup.+* Or simply press the <kbd spellcheck="false">Escape</kbd> key.++It is possible to switch between events by clicking on them even when the popup view is already open.++Events can have <a class="reference-link" href="../Note%20Types/Text/Links/Internal%20(reference)%20links.md">Internal (reference) links</a> between them and clicking on such a link will automatically navigate the calendar to the right date and the popup view to the new note.+## Interaction on mobileWhen Trilium is on mobile, the interaction with the calendar is slightly different:-* Clicking on an event triggers the contextual menu, including the option to open in <a class="reference-link" href="../Basic%20Concepts%20and%20Features/Navigation/Quick%20edit.md">Quick edit</a>.+* Clicking on an event displays the popup view, which allows editing the event.+* Long-presing an event triggers the contextual menu, including the option to open in <a class="reference-link" href="../Basic%20Concepts%20and%20Features/Navigation/Quick%20edit.md">Quick edit</a>.* To insert a new event, touch and hold the empty space. When successful, the empty space will become colored to indicate the selection.* Before releasing, drag across multiple spaces to create multi-day events.* When released, a prompt will appear to enter the note title.@@ -113,10 +148,10 @@ For each note of the calendar, the following attributes can be used:| `#endTime` | Similar to `startTime`, it mentions the time at which the event ends (in relation with `endDate` if present, or `startDate`). || `#recurrence` | This is an optional CalDAV `RRULE` string that if present, determines whether a task should repeat or not. Note that it does not include the `DTSTART` attribute, which is derived from the `#startDate` and `#startTime` directly. For examples of valid `RRULE` strings see [https://icalendar.org/rrule-tool.html](https://icalendar.org/rrule-tool.html) || `#color` | Displays the event with a specified color (named such as `red`, `gray` or hex such as `#FF0000`). This will also change the color of the note in other places such as the note tree. |-| `#calendar:color` | **❌️ Removed since v0.100.0. Use** `**#color**` **instead.** <br> <br>Similar to `#color`, but applies the color only for the event in the calendar and not for other places such as the note tree. |+| `#calendar:color` | **❌️ Removed since v0.100.0. Use** `#color` **instead.** <br> <br>Similar to `#color`, but applies the color only for the event in the calendar and not for other places such as the note tree. || `#iconClass` | If present, the icon of the note will be displayed to the left of the event title. || `#calendar:title` | 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 `#` or `~` symbol). See _Use-cases_ for more information. |-| `#calendar:displayedAttributes` | Allows displaying the value of one or more attributes in the calendar like this: <br> <br> <br> <br>`#weight="70" #Mood="Good" #calendar:displayedAttributes="weight,Mood"` <br> <br>It can also be used with relations, case in which it will display the title of the target note: <br> <br>`~assignee=@My assignee #calendar:displayedAttributes="assignee"` |+| `#calendar:displayedAttributes` | Allows displaying the value of one or more attributes in the calendar like this: <br> <br> <br> <br>`#weight="70" #Mood="Good" #calendar:displayedAttributes="weight,Mood"` <br> <br>It can also be used with relations, case in which it will display the title of the target note: <br> <br>`~assignee=@My assignee #calendar:displayedAttributes="assignee"` || `#calendar:startDate` | Allows using a different label to represent the start date, other than `startDate` (e.g. `expiryDate`). The label name **must not be** prefixed with `#`. If the label is not defined for a note, the default will be used instead. || `#calendar:endDate` | Similar to `#calendar:startDate`, allows changing the attribute which is being used to read the end date. || `#calendar:startTime` | Similar to `#calendar:startDate`, allows changing the attribute which is being used to read the start time. |@@ -124,11 +159,11 @@ For each note of the calendar, the following attributes can be used:## How the calendar works-+The calendar displays all the child notes of the Collection that have a `#startDate`. An `#endDate` can optionally be added.-If editing the start date and end date from the note itself is desirable, the following attributes can be added to the Collection note:+The start date & end date can easily be edited from the calendar collection itself by clicking on the event. To edit the date while in the event note itself, the following attributes can be added to the Collection note:```#viewType=calendar #label:startDate(inheritable)="promoted,alias=Start Date,single,date"@@ -138,13 +173,19 @@ If editing the start date and end date from the note itself is desirable, the foThis will result in:-+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.## Recurrence-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.+The built in calendar view also supports repeating tasks (e.g. every week, every month as well as more complex recurrency rules).++Starting with v0.105.0, recurrence can be directly edited from the calendar by clicking on an event and then selecting the _Repeats_ option.++### Custom recurrence using a subset of RRULE++If the existing recurrence editor from the event popup is not sufficient, more complex rules can be manually set via the `#recurrence` label.For example, to make a note repeat on the calendar:@@ -155,7 +196,6 @@ For example, to make a note repeat on the calendar:* Every 3 months - `#recurrence="FREQ=MONTHLY;INTERVAL=3"`* Every 2 months on the First Sunday - `#recurrence="FREQ=MONTHLY;INTERVAL=2;BYDAY=1SU"`* Every month on the Last Friday - `#recurrence="FREQ=MONTHLY;INTERVAL=1;BYDAY=-1FR"`-* And so on.For other examples of valid `RRULE` strings see [https://icalendar.org/rrule-tool.html](https://icalendar.org/rrule-tool.html)@@ -216,6 +256,8 @@ Both values use `HH:mm:ss` format. Hours can go up to `24` (`24:00:00`), while mIt 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.+While in journal mode, the popup editor will not show dates, recurrence, colors or removal, since day notes aren't editable events.+Based on the `#calendarRoot` (or `#workspaceCalendarRoot`) attribute, the calendar will know that it's in a calendar and apply the following:* The calendar events are now rendered based on their `dateNote` attribute rather than `startDate`.@@ -223,63 +265,30 @@ Based on the `#calendarRoot` (or `#workspaceCalendarRoot`) attribute, the calend* Clicking on the empty space on a date will automatically open that day's note or create it if it does not exist.* Direct children of a day note will be displayed on the calendar despite not having a `dateNote` attribute. Children of the child notes will not be displayed.-<img src="6_Calendar_image.png" width="1217" height="724">+<img src="5_Calendar_image.png" width="1217" height="724">### Using a different attribute as event title-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.+<img class="image-style-align-right" src="2_Calendar_image.png" width="445" height="124">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.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> </th>- <th> </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> </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>+```+#startDate=2025-02-11 #endDate=2025-02-13 #name="My vacation" #calendar:title="name"+```### Using a relation attribute as event title-Similarly to using an attribute, use `#calendar:title` and set it to `name` where `name` is the name of the relation to use.+<img class="image-style-align-right image_resized" style="aspect-ratio:294/151;width:21.22%;" src="3_Calendar_image.png" width="294" height="151">Similarly to using an attribute, use `#calendar:title` and set it to `name` where `name` is the name of the relation to use.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> </th>- <th> </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>+```+#startDate=2025-02-14 #endDate=2025-02-15 ~for=@John Smith ~for=@Jane Doe #calendar:title="for"+```-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).+<img class="image-style-align-left" src="Calendar_image.png" width="296" height="150">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> </th>- <th> </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+```+#calendar:title="shortName" #shortName="John S."+```\ No newline at end of filediff --git a/docs/User Guide/User Guide/Collections/Calendar_image.png b/docs/User Guide/User Guide/Collections/Calendar_image.pngindex 238efaea71..10ac2bb3d9 100644Binary files a/docs/User Guide/User Guide/Collections/Calendar_image.png and b/docs/User Guide/User Guide/Collections/Calendar_image.png differdiff --git a/docs/User Guide/User Guide/Collections/Geo Map.md b/docs/User Guide/User Guide/Collections/Geo Map.mdindex bd58ebbfce..1da71db8b7 100644--- a/docs/User Guide/User Guide/Collections/Geo Map.md+++ b/docs/User Guide/User Guide/Collections/Geo Map.md@@ -101,13 +101,19 @@ When a marker or a track is clicked, a popup will open to the right which contai* An indicator for the coordinates; clicking it will copy the coordinates to clipboard.* A button to maximize the popup.* Buttons to interact with the markers:- * Buttons to open the marker in the same pane, new tab, etc.+ * Open the marker in the same pane, new tab, etc.* A button to open the location in a dedicated application (e.g. Google Maps on mobile).* Color picker to change the color of the marker.* Button to remove the marker from the map, which can optionally delete its corresponding note. Removing a marker without deleting the note will only remove its `#geolocation` attribute (case in which the coordinates have to be manually added back in in order to get the note to show on the map again).* The <a class="reference-link" href="../Advanced%20Usage/Attributes/Promoted%20Attributes.md">Promoted Attributes</a> of the marker, if any.* The note's content which can be edited directly from the panel.+To dismiss the popup:++* Press the X button at the top-right of the popup.+* In the map, press anywhere outside the popup.+* Or simply press the <kbd spellcheck="false">Escape</kbd> key.+When a marker is clicked, the map will automatically adjust the viewport so that the marker is still visible with the popup open. The currently selected marker is shown slightly bigger.It is possible to switch between markers by clicking on them even when the popup view is already open.