Skip to content

Build your personal knowledge base with Trilium Notes

feat(mobile): edit attributes in the note panel's Attributes tab

Elian Doran1d0d26f4645a
diff --git a/apps/client/src/layouts/layout_commons.tsx b/apps/client/src/layouts/layout_commons.tsx
index b4b802cedc..aa34f31071 100644
--- a/apps/client/src/layouts/layout_commons.tsx
+++ b/apps/client/src/layouts/layout_commons.tsx
@@ -45,7 +45,6 @@ export function applyModals(rootContainer: RootContainer) {
.child(<LazyDialog triggerEvents={["showOptions"]} loader={() => import("../widgets/dialogs/OptionsDialog.jsx")} />)
.child(<LazyDialog triggerEvents={["showContentLanguagesDialog"]} loader={() => import("../widgets/dialogs/content_languages.js")} />)
.child(<LazyDialog triggerEvents={["showOcrTextDialog"]} loader={() => import("../widgets/dialogs/ocr_text.js")} />)
- .child(<LazyDialog triggerEvents={["showNoteAttributes"]} loader={() => import("../widgets/dialogs/note_attributes.jsx")} />)
.child(<LazyDialog triggerEvents={["showUploadAttachmentsDialog"]} loader={() => import("../widgets/dialogs/upload_attachments.js")} />)
.child(<LazyDialog triggerEvents={["openInTreePopup"]} loader={() => import("../widgets/dialogs/TreePopupEditor.jsx")} />)
// The following three are deliberately eager (not wrapped in LazyDialog):
diff --git a/apps/client/src/stylesheets/theme-next/ios.css b/apps/client/src/stylesheets/theme-next/ios.css
index 3894886d10..1b5e2d865d 100644
--- a/apps/client/src/stylesheets/theme-next/ios.css
+++ b/apps/client/src/stylesheets/theme-next/ios.css
@@ -90,6 +90,17 @@ body.mobile.ios {
.modal.mobile-note-panel {
--modal-background-color: var(--grouped-background-color);
+
+ /* The tab strip fills the header up to the close button instead of being centred as a title. */
+ .modal-header :is(.modal-title, .tn-master-detail-header) {
+ padding-inline-start: 0;
+ }
+
+ &:not(.mobile-master-detail) .modal-header > .modal-title,
+ .modal-header .tn-master-detail-title > .modal-title {
+ display: flex;
+ }
+
--note-panel-group-radius: var(--grouped-card-radius);
--note-panel-group-spacing: 22px;
--note-panel-group-background: var(--grouped-card-background-color);
diff --git a/apps/client/src/widgets/dialogs/note_attributes.css b/apps/client/src/widgets/dialogs/note_attributes.css
deleted file mode 100644
index a29dc8ea04..0000000000
--- a/apps/client/src/widgets/dialogs/note_attributes.css
+++ /dev/null
@@ -1,206 +0,0 @@
-/*
- * The panel lays its sections out in cards, which the right pane is what dresses (`#right-pane .card` in
- * style.css, and RightPanelContainer.css over it) — none of which reaches a modal, where the cards would
- * otherwise come out as Bootstrap draws them: bordered, rounded boxes of their own. What follows dresses
- * them for a modal instead, and dresses them differently on a phone (see the two blocks below).
- */
-.modal.note-attributes-modal {
- .modal-body {
- padding-block: 0;
- }
-
- .card-header {
- display: flex;
- align-items: center;
- justify-content: flex-start;
- border: 0;
- background: transparent;
- --icon-button-size: 26px;
-
- .icon-action {
- flex-shrink: 0;
- transition: transform 0.15s ease;
- }
- }
-
- /* Read as the sentences they are ("3 owned attributes"), rather than uppercased as the right pane
- heads its own cards: this is a page of its own on a phone, not a column of headings beside one. */
- .card-header-title {
- flex-grow: 1;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- font-weight: 600;
- color: var(--muted-text-color);
- }
-
- .card-header-buttons {
- display: flex;
- align-items: center;
- }
-}
-
-/*
- * On a desktop the sections are the pane's: transparent, one under the next, each headed by a line that
- * is pressed to fold it away.
- */
-body.desktop .modal.note-attributes-modal {
- .card {
- border: 0;
- border-bottom: 1px solid var(--main-border-color);
- border-radius: 0;
- background: transparent;
-
- &:last-of-type {
- border-bottom: 0;
- }
- }
-
- .card-header {
- padding: 4px 0;
- cursor: pointer;
- }
-
- .card.collapsed .card-header > .icon-action {
- transform: rotate(-90deg);
- }
-
- /* The one section a note has, having nothing to be put away in favour of (see RightPanelWidget), has
- no chevron either — so its title starts where the others' do. */
- .card.not-collapsible .card-header {
- cursor: default;
- padding-inline-start: 8px;
- }
-
- .card-body {
- padding: 0 0 8px;
- }
-}
-
-/*
- * On a phone the sections are the settings pages' own cards (OptionsSection, see AttributeList.tsx): a
- * title over a surface, with nothing to fold away — the modal is a page of its own, so a section has
- * nothing to be put away in favour of. All that is left here is fitting the rows to that card, the rows
- * being full-width menu items where a settings card holds inset controls.
- *
- * The sheet has a fixed height, as the revisions dialog's does, so that it neither grows with the
- * note's attributes nor jumps between the list and an attribute's page.
- */
-body.mobile .modal.note-attributes-modal {
- .options-section-card {
- /* The rows bring their own padding as menu items, and reach the card's edges — so the card
- spends none of its own on them, and cuts them to its corners. */
- --options-card-padding: 0;
-
- padding-block: 8px;
- overflow: hidden;
- }
-
- /* The rows are menu items and their list stands in as the menu that dresses them (see
- AttributeList.tsx), but it is not a menu that opens: it sits in a card, and keeps the items alone
- out of everything a floating menu would otherwise bring with it. */
- .attribute-rows.dropdown-menu {
- /* Overriding an `!important` of its own (style.css paints every menu), as the code-note switcher
- does for the same reason: a list of menu items that is not a menu. */
- background: none !important;
- box-shadow: none;
- min-width: 0;
- padding: 0;
-
- /* Nor a menu's standing above the app. `body.mobile .dropdown-menu` lifts every menu to 3000
- so that one opening floats over everything; this list opens over nothing, it sits in a
- card. The rule that un-fixes its position (`body.mobile .modal-dialog .dropdown-menu`)
- leaves that 3000 behind, and it does not lie idle as it would on any ordinary static box:
- the list is a flex item of the panel, and a flex item takes its z-index whether it is
- positioned or not. So the rows stood at 3000 and the selection's bar — a sticky 1 — was
- drawn underneath them, which is what a row scrolling past it looked like it was doing. */
- z-index: auto !important;
-
- /* The card is the surface now, so the rows keep only what tells them apart from one another: the
- dividers between them, and whatever a row is being pressed or read in. */
- .attribute-row {
- background: transparent;
- border-radius: 0;
- }
-
- /* `!important` to outweigh the menus' hover fill (`.dropdown-item:hover` in
- theme-next/menus.css), which a touch screen leaves on the last row tapped. */
- .attribute-row.selected {
- background-color: var(--selection-background-color) !important;
- }
- }
-
- /* The help button beside the title in every card, whether or not an add button follows it. */
- .options-section-header {
- justify-content: flex-start;
- gap: 4px;
- }
-
- .attribute-toolbar {
- --icon-button-size: 36px;
-
- height: 48px;
- border-bottom: 0;
- background-color: var(--modal-background-color);
-
- .form-checkbox label,
- .attribute-selection-count,
- .attribute-toolbar-read-only {
- font-size: 1em;
- }
- }
-
- /* What separates the note's own names from the ones Trilium reads for itself. Two segments of one
- card rather than a list with a line ruled across it: what divides them is the modal's own surface
- showing between them, edge to edge — the card being a wash over that surface rather than a colour
- of its own, so this is the card ending and starting again. Drawn as a line in that colour, as an
- options card divides its own contents (`.options-section-card hr` in theme-next/pages.css); as
- wide as the gap the theme leaves between two sections of a card (Card.css). */
- .attribute-rows-divider {
- margin: 0;
- border-top-width: 3px;
- border-top-color: var(--modal-background-color);
- opacity: 1;
- }
-
- .modal-dialog {
- height: 85vh;
- }
-
- .modal-content {
- flex: 1;
- min-height: 0;
- padding-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom));
- }
-
- .modal-body {
- flex: 1 1 auto;
- min-height: 0;
- overflow-y: auto;
- }
-}
-
-/*
- * Editing one attribute is a page of its own on a narrow screen rather than a form floating over the
- * list: a popup wide enough for the fields would cover the whole of it anyway, and it would be a page
- * over a page — a modal over a modal. The flow itself is the shared one (master_detail.css); what is
- * particular to this dialog is what the page holds.
- */
-body.mobile .modal.note-attributes-modal.mobile-master-detail {
- /* The panes carry what was the body's padding, so that a pane looks the same whether it is being
- slid (placed against the padding box) or at rest (see master_detail.css). */
- .tn-master-pane,
- .tn-detail-pane {
- padding-inline: var(--bs-modal-padding, 16px);
- }
-}
-
-.attribute-detail-page {
- /* The form was drawn as a popup, and a page needs neither of the two things a popup has to carry: a
- heading naming what is being edited (the page is headed with its name, and the badges beside it say
- the rest) and a button to close itself with (the way back is in that header). */
- .attr-detail-title,
- .close-attr-detail-button {
- display: none;
- }
-}
diff --git a/apps/client/src/widgets/dialogs/note_attributes.tsx b/apps/client/src/widgets/dialogs/note_attributes.tsx
deleted file mode 100644
index 46b39fa7e7..0000000000
--- a/apps/client/src/widgets/dialogs/note_attributes.tsx
+++ /dev/null
@@ -1,39 +0,0 @@
-import "./note_attributes.css";
-
-import { useState } from "preact/hooks";
-
-import { t } from "../../services/i18n";
-import { useTriliumEvent } from "../react/hooks";
-import { MasterDetailModal } from "../react/master_detail";
-import AttributeList from "../sidebar/AttributeList";
-
-/**
- * The attributes panel as a modal, for the layouts with no right pane to put it in — the mobile one,
- * where it is summoned from the note's own menu. The panel follows the note being read, so the modal is
- * summoned without being told which note it is about.
- *
- * A master-detail modal: on a screen too narrow to hold a form beside the list, the attribute being
- * edited is a page of its own that slides in over it. The panel announces that page itself (see
- * useMasterDetailPage), so all that is left here is the modal it happens in.
- */
-export default function NoteAttributesDialog() {
- const [ shown, setShown ] = useState(false);
-
- useTriliumEvent("showNoteAttributes", () => setShown(true));
-
- return (
- <MasterDetailModal
- className="note-attributes-modal"
- // Named as the menu entry that summons it names it; a page of its own is named by the
- // attribute on it instead.
- title={t("note_actions.note_attributes_title")}
- backTitle={t("attribute_list_panel.back")}
- size="md"
- show={shown}
- onHidden={() => setShown(false)}
- scrollable
- >
- <AttributeList />
- </MasterDetailModal>
- );
-}
diff --git a/apps/client/src/widgets/mobile_widgets/MobileNotePanel.css b/apps/client/src/widgets/mobile_widgets/MobileNotePanel.css
index a17af6d7de..2e836eaa56 100644
--- a/apps/client/src/widgets/mobile_widgets/MobileNotePanel.css
+++ b/apps/client/src/widgets/mobile_widgets/MobileNotePanel.css
@@ -3,6 +3,22 @@
}
body.mobile .modal.mobile-note-panel {
+ &:not(.mobile-master-detail) .modal-header > .modal-title,
+ .tn-master-detail-title:has(> .modal-title) {
+ display: flex;
+ flex: 1;
+ min-width: 0;
+ }
+
+ .tn-master-detail-title:has(> .modal-title) {
+ color: var(--main-text-color);
+ }
+
+ .tn-master-detail-title > .modal-title {
+ display: flex;
+ flex: 1;
+ min-width: 0;
+ }
.modal-dialog {
height: 85vh;
}
@@ -105,5 +121,92 @@ body.mobile .modal.mobile-note-panel {
flex-direction: column;
height: 60vh;
}
+
+ &[data-tab-id="attributes"] {
+ padding-inline: 16px;
+ }
+ }
+
+ /* The list and an attribute's page each scroll themselves and slide over each other, placed
+ against the tab body (see master_detail.css). */
+ &.mobile-master-detail #right-pane .right-pane-flat-tab-body[data-tab-id="attributes"] {
+ position: relative;
+ overflow: hidden;
+ padding: 0;
+
+ .tn-master-pane,
+ .tn-detail-pane {
+ padding-inline: 16px;
+ padding-bottom: calc(var(--note-panel-group-spacing, 16px) + var(--safe-area-inset-bottom, env(safe-area-inset-bottom)));
+ }
+ }
+
+ .options-section-card {
+ --options-card-padding: 0;
+
+ padding-block: 8px;
+ overflow: hidden;
+ }
+
+ /* The rows are menu items in a list that is not a menu: it sits in a card, so it keeps neither a
+ menu's fill nor its stacking. `z-index` must stay below the selection bar's sticky 1. */
+ .attribute-rows.dropdown-menu {
+ background: none !important;
+ box-shadow: none;
+ min-width: 0;
+ padding: 0;
+ z-index: auto !important;
+
+ .attribute-row {
+ background: transparent;
+ border-radius: 0;
+ }
+
+ /* Outweighs the menus' hover fill, which a touch screen leaves on the last row tapped. */
+ .attribute-row.selected {
+ background-color: var(--selection-background-color) !important;
+ }
+ }
+
+ .options-section-header {
+ justify-content: flex-start;
+ gap: 4px;
+
+ h4 {
+ margin: 0;
+ font-size: 0.95em;
+ font-weight: 600;
+ letter-spacing: normal;
+ text-transform: none;
+ color: var(--muted-text-color);
+ }
+ }
+
+ .attribute-toolbar {
+ --icon-button-size: 36px;
+
+ height: 48px;
+ border-bottom: 0;
+ background-color: var(--modal-background-color);
+
+ .form-checkbox label,
+ .attribute-selection-count,
+ .attribute-toolbar-read-only {
+ font-size: 1em;
+ }
+ }
+
+ .attribute-rows-divider {
+ margin: 0;
+ border-top-width: 3px;
+ border-top-color: var(--modal-background-color);
+ opacity: 1;
+ }
+}
+
+.attribute-detail-page {
+ .attr-detail-title,
+ .close-attr-detail-button {
+ display: none;
}
}
diff --git a/apps/client/src/widgets/mobile_widgets/MobileNotePanel.tsx b/apps/client/src/widgets/mobile_widgets/MobileNotePanel.tsx
index faa1b11df8..9931c011ce 100644
--- a/apps/client/src/widgets/mobile_widgets/MobileNotePanel.tsx
+++ b/apps/client/src/widgets/mobile_widgets/MobileNotePanel.tsx
@@ -6,8 +6,8 @@ import { useState } from "preact/hooks";
import type { WidgetsByParent } from "../../services/bundle";
import { t } from "../../services/i18n";
import ActionButton from "../react/ActionButton";
-import { useNoteContext } from "../react/hooks";
-import Modal from "../react/Modal";
+import { useNoteContext, useTriliumEvent } from "../react/hooks";
+import { MasterDetailModal } from "../react/master_detail";
import TabStrip from "../react/TabStrip";
import NoteMap from "../sidebar/NoteMap";
import PdfPages from "../sidebar/pdf/PdfPages";
@@ -17,11 +17,18 @@ import { RightPaneTabId } from "../sidebar/RightPaneTabs";
/**
* The title-row button that opens the desktop right pane's tabs in a modal, for the mobile layout.
- * The attributes tab is left out, since the note menu already opens `NoteAttributesDialog`.
+ * `showNoteAttributes` opens it on the attributes tab.
*/
export default function MobileNotePanel({ widgetsByParent }: { widgetsByParent: WidgetsByParent }) {
const [ shown, setShown ] = useState(false);
- const { note } = useNoteContext();
+ const [ selectedTabId, setSelectedTabId ] = useState<RightPaneTabId>();
+ const { note, noteContext } = useNoteContext();
+
+ useTriliumEvent("showNoteAttributes", ({ ntxId }) => {
+ if (!noteContext?.isCommandTarget(ntxId)) return;
+ setSelectedTabId("attributes");
+ setShown(true);
+ });
return (
<div className="mobile-note-panel-button">
@@ -30,23 +37,39 @@ export default function MobileNotePanel({ widgetsByParent }: { widgetsByParent:
text={t("mobile_detail_menu.note_panel")}
onClick={() => setShown(true)}
/>}
- {createPortal(<MobileNotePanelModal shown={shown} onHidden={() => setShown(false)} widgetsByParent={widgetsByParent} />, document.body)}
+ {createPortal((
+ <MobileNotePanelModal
+ shown={shown} onHidden={() => setShown(false)} widgetsByParent={widgetsByParent}
+ selectedTabId={selectedTabId} setSelectedTabId={setSelectedTabId}
+ />
+ ), document.body)}
</div>
);
}
-function MobileNotePanelModal({ shown, onHidden, widgetsByParent }: { shown: boolean; onHidden: () => void; widgetsByParent: WidgetsByParent }) {
- const tabs = useRightPaneTabs(shown, widgetsByParent)
- .filter((tab) => tab.id !== "attributes")
- .map(withFixedHeightWidgetsLast);
- const [ selectedTabId, setSelectedTabId ] = useState<RightPaneTabId>();
+function MobileNotePanelModal({ shown, onHidden, widgetsByParent, selectedTabId, setSelectedTabId }: {
+ shown: boolean;
+ onHidden: () => void;
+ widgetsByParent: WidgetsByParent;
+ selectedTabId: RightPaneTabId | undefined;
+ setSelectedTabId: (tabId: RightPaneTabId) => void;
+}) {
+ const tabs = useRightPaneTabs(shown, widgetsByParent).map(withFixedHeightWidgetsLast);
const activeTab = tabs.find((tab) => tab.id === selectedTabId) ?? tabs[0];
return (
- <Modal
+ // A master-detail modal, so that editing an attribute is a page of its own, headed by a way
+ // back (see `useMasterDetailPage()` in AttributeList.tsx).
+ <MasterDetailModal
className="mobile-note-panel"
size="md"
- title={<TabStrip labelled tabs={tabs} activeTabId={activeTab?.id} onSelect={setSelectedTabId} />}
+ // In `.modal-title`, which master_detail.css hides in favour of `MasterDetailHeader`.
+ title={(
+ <div className="modal-title">
+ <TabStrip labelled tabs={tabs} activeTabId={activeTab?.id} onSelect={setSelectedTabId} />
+ </div>
+ )}
+ backTitle={t("attribute_list_panel.back")}
ariaLabel={t("mobile_detail_menu.note_panel")}
show={shown}
onHidden={onHidden}
@@ -58,7 +81,7 @@ function MobileNotePanelModal({ shown, onHidden, widgetsByParent }: { shown: boo
<RightPaneTabBodies tabs={tabs} activeTabId={activeTab?.id} flat />
</NavigatedInNote.Provider>
</div>
- </Modal>
+ </MasterDetailModal>
);
}
diff --git a/apps/client/src/widgets/react/hooks.tsx b/apps/client/src/widgets/react/hooks.tsx
index ce56ce6774..d14c72a5cf 100644
--- a/apps/client/src/widgets/react/hooks.tsx
+++ b/apps/client/src/widgets/react/hooks.tsx
@@ -1757,7 +1757,9 @@ export function useSyncedRef<T>(
): RefObject<T | null> {
const ref = useRef<T>(initialValue);
- useEffect(() => {
+ // A layout effect, so that the external ref holds the element before any parent's `useEffect`
+ // reads it, as a ref passed straight to the element would.
+ useLayoutEffect(() => {
if (typeof externalRef === "function") {
externalRef(ref.current);
} else if (externalRef) {
diff --git a/apps/server/src/assets/help/help_content.json b/apps/server/src/assets/help/help_content.json
index 5c9929b9d8..ad99b1592d 100644
--- a/apps/server/src/assets/help/help_content.json
+++ b/apps/server/src/assets/help/help_content.json
@@ -50,7 +50,7 @@
"_help_luNhaphA37EO": "<p>In Trilium, is possible to work with two or more notes side-by-side.</p><figure class=\"image image-style-align-center\"><img style=\"aspect-ratio:1398/1015;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Split%20View_2_Split%20View_image.png\" width=\"1398\" height=\"1015\"></figure><h2>Interactions</h2><ul><li>Press the&nbsp;<span class=\"tn-icon bx bx-dock-right\"></span> button to the right of a note's title to open a new split to the right of it.<ul><li>It is possible to have as many splits as desired, simply press again the button.</li><li>Only horizontal splits are possible, vertical or drag &amp; dropping is not supported.</li></ul></li><li>When at least one split is open, press the&nbsp;<span class=\"tn-icon bx bx-x\"></span> button next to it to close it.</li><li>Use the&nbsp;<span class=\"tn-icon bx bx-chevron-right\"></span> or the&nbsp;<span class=\"tn-icon bx bx-chevron-left\"></span> button to move around the splits.</li><li>Creating, closing and moving a split can also be triggered from a <a href=\"#root/_help_A9Oc6YKKc65v\">keyboard shortcut</a> (<em>Create New Split</em>, <em>Close Active Split</em>, <em>Move Split Left</em> and <em>Move Split Right</em>, all unassigned by default) or through the <a href=\"#root/_help_F1r9QtzQLZqm\">command palette</a>.</li><li>The focus can be moved from one split to the one next to it with the <em>Focus Split to the Left</em> and <em>Focus Split to the Right</em> actions, which stop at either end of the tab instead of continuing into the next tab. They are unassigned by default as well.</li><li>Each <a href=\"#root/_help_3seOhtN8uLIY\">tab</a> has its own split view configuration (e.g. one tab can have two notes in a split view, whereas the others are one-note views).<ul><li>The tab's title will indicate all the note titles, in the order of the splits from the left to right and separated by a bullet symbol.</li><li>The tab's icon will indicate the icon of the last active split, which will be automatically focused when clicking on the tab.</li></ul></li></ul><h2>Splits and the note tree &amp; hoisting</h2><p>Clicking on the content of a split will focus that split. While focused, the&nbsp;<a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>&nbsp;will also indicate the note that is being edited.</p><p>It is possible for each of the splits to have their own&nbsp;<a class=\"reference-link\" href=\"#root/_help_OR8WJ7Iz9K4U\">Note Hoisting</a>.</p><p>When a new split is created, it will share the same note hoisting as the previous one. An easy solution to this is to simply hoist the notes after the split is created.</p><p>This is generally quite useful for reorganizing notes from one place to the other, by hoisting the old place in the first split and hoisting the new place to the second one. This will allow easy cut and paste without the tree jumping around from switching between notes.</p><h2>Mobile support</h2><p>Since v0.100.0, it's possible to have a split view on the mobile view as well, with the following differences from the desktop version of the split:</p><ul><li>On smartphones, the split views are laid out vertically (one on the top and one on the bottom), instead of horizontally as on the desktop.</li><li>There can be only one split open per tab.</li><li>It's not possible to resize the two split panes.</li><li>When the keyboard is opened, the active note will be “maximized”, thus allowing for more space even when a split is open. When the keyboard is closed, the splits become equal in size again.</li></ul><p>Interaction:</p><ul><li>To create a new split, click the three dots button on the right of the note title and tap <span class=\"tn-icon bx bx-dock-right\"></span>&nbsp;<em>New split</em> in the row of icons at the top.<ul><li>This option will only be available if there is no split already open in the current tab.</li></ul></li><li>To close a split, click the three dots button on the right of the note title and select <em>Close this pane</em>.<ul><li>Note that this option will only be available on the second note in the split (the one at the bottom on smartphones, the one on the right on tablets).</li></ul></li><li>When long-pressing a link, a contextual menu will show up with an option to <em>Open note in a new split</em>.<ul><li>If there's already a split, the option will replace the existing split instead.</li></ul></li></ul>",
"_help_RnaPdbciOfeq": "<figure class=\"image\"><img style=\"aspect-ratio:1990/1168;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Right%20Sidebar_image.png\" width=\"1990\" height=\"1168\"></figure><p>The right sidebar displays specific content for the current note. The sidebar is grouped into multiple tabs:</p><ul><li><a class=\"reference-link\" href=\"#root/_help_2dcGDhp9WFKb\">Outline tab</a>, which displays the table of contents, highlights and other navigation-related sections depending on the note type.</li><li><a class=\"reference-link\" href=\"#root/_help_uNtgN0cUKEBc\">Attributes tab</a>, which provides a visual editor for the current note's&nbsp;<a class=\"reference-link\" href=\"#root/_help_zEY4DaJG4YT5\">Attributes</a>.</li><li><a class=\"reference-link\" href=\"#root/_help_LrKznOtw9cQD\">AI chat tab</a>, which uses the&nbsp;<a class=\"reference-link\" href=\"#root/_help_GBBMSlVSOIGP\">AI</a>&nbsp;integration to chat, with optional access to the current note.</li><li><a class=\"reference-link\" href=\"#root/_help_KRlZFoIH0j6p\">Connections tab</a>, which groups together the note map, note paths, backlinks and similar notes.</li></ul><p>Each window keeps its own selected tab, so switching tabs in one window does not affect the others. A newly opened window starts on the tab that was selected last.</p><h2>Toggling the right sidebar</h2><p>There are two ways to toggle the right sidebar:</p><ul><li>Via the&nbsp;<span class=\"tn-icon bx bx-sidebar bx-flip-horizontal\"></span> icon near the title bar, which toggles whether the sidebar is docked.</li><li>Via the <em>Toggle right pane</em> <a href=\"#root/_help_A9Oc6YKKc65v\">keyboard shortcut</a>, which is not assigned by default.</li></ul><h2>Peeking the sidebar</h2><p>There is a small strip near the right edge of the app which shows an arrow icon.</p><ul><li>When the sidebar is hidden, pressing the edge will <em>peek</em> the sidebar.<ul><li>In this mode the sidebar is shown temporarily above the content, without shifting the content of your notes.</li><li>Clicking outside the sidebar while in peek mode will simply hide the sidebar. Same goes for the X button and clicking on the right edge.</li><li>Pressing the pin icon will dock the sidebar.</li></ul></li><li>When the sidebar is docked, pressing the edge will hide the sidebar (similar to the toggle icon at the top).</li></ul><p>The <em>Peek Right Pane</em> <a href=\"#root/_help_A9Oc6YKKc65v\">keyboard shortcut</a>, <kbd>Alt</kbd>+<kbd>]</kbd> by default, does the same as pressing the strip.</p>",
"_help_2dcGDhp9WFKb": "<p>The Outline tab appears in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_RnaPdbciOfeq\">Right Sidebar</a>&nbsp;and displays the headings and highlights for the current note.</p><h2>Table of contents</h2><p>The table of contents displays the titles / headings in the current note and allows easy navigation.</p><p>The following note types are supported:</p><ul><li><a class=\"reference-link\" href=\"#root/_help_iPIMuisry3hd\">Text</a></li><li><a class=\"reference-link\" href=\"#root/_help_6RM1Q7ppFVoj\">Markdown</a></li><li><a class=\"reference-link\" href=\"#root/_help_XJGJrpu7F9sh\">PDFs</a></li><li><a class=\"reference-link\" href=\"#root/_help_GBBMSlVSOIGP\">AI</a>&nbsp;chat notes</li><li>The pages of the in-app documentation</li></ul><figure class=\"image image-style-align-right image_resized\" style=\"width:47%;\"><img style=\"aspect-ratio:556/205;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Right%20Sidebar/1_Outline%20tab_image.png\" width=\"556\" height=\"205\"></figure><h3>Interaction</h3><ul><li>Clicking on a heading will scroll the document to the position of the heading.</li><li>As the document is scrolled, the heading being read is highlighted and the list scrolls to keep it in view. If that heading is hidden inside a collapsed section, the collapsed heading is highlighted instead.</li><li>Nested items can be collapsed by pressing the corresponding&nbsp;<span class=\"tn-icon bx bx-chevron-down\"></span> button.</li></ul><h2>Highlights</h2><figure class=\"image image-style-align-right image_resized\" style=\"width:46.04%;\"><img style=\"aspect-ratio:489/240;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Right%20Sidebar/Outline%20tab_image.png\" width=\"489\" height=\"240\"></figure><p>Similar to the&nbsp;table of contents, but instead of headings this feature will list highlighted text from a text note and allow easy navigation to them.</p><p>Unlike table of contents which supports multiple note types, the highlights are specific to the&nbsp;<a class=\"reference-link\" href=\"#root/_help_iPIMuisry3hd\">Text</a>&nbsp;notes.</p><p>Highlighted text is defined as:</p><ul><li>Bold text.</li><li>Italic text.</li><li>Underlined text.</li><li>Text with a foreground color set.</li><li>Text with a background color/highlight set.</li></ul><h3>Interaction</h3><ul><li>Clicking on a highlighted text will scroll the document to its position.</li></ul><h3>Configuration</h3><ul><li>Globally, it's possible to toggle the display of each category of highlighted text (as defined above)&nbsp;<ul><li>Pressing the gear button in the top-right part of the section will reveal a menu to toggle between the highlight categories.</li><li>Alternatively, they can be changed by going to&nbsp;<a class=\"reference-link\" href=\"#root/_hidden/_options/_optionsTextNotes\">Text Notes</a>&nbsp;settings and looking for the <em>Highlights List</em> section.</li></ul></li></ul><h2>PDF-specific outline</h2><p>When&nbsp;<a class=\"reference-link\" href=\"#root/_help_XJGJrpu7F9sh\">PDFs</a>&nbsp;are opened in Trilium, the&nbsp;<a class=\"reference-link\" href=\"#root/_help_RnaPdbciOfeq\">Right Sidebar</a>&nbsp;is augmented with PDF-specific navigation, with the following features:</p><ul><li>Table of contents/outline<ul><li>All the headings and “bookmarks” will be displayed hierarchically.</li><li>The heading on the current page is also highlighted (note that it can be slightly offset depending on how many headings are on the same page).</li><li>Clicking on a heading will jump to the corresponding position in the PDF.</li></ul></li><li>Pages<ul><li>A preview of all the pages with a small thumbnail.</li><li>Clicking on a page will automatically navigate to that page.</li><li>Right-clicking a page and selecting <em>Copy reference</em> copies a link that opens the PDF at that page.</li></ul></li><li>Annotations<ul><li>Highlight and comment annotations are listed here.</li><li>Right-clicking an annotation and selecting <em>Copy reference</em> copies a link that opens the PDF at that annotation.</li></ul></li><li>Attachments<ul><li>If the PDF has its own attachments (not to be confused with Trilium's&nbsp;<a class=\"reference-link\" href=\"#root/_help_0vhv7lsOLy82\">Attachments</a>), they will be displayed in a list.</li><li>Some information such as the name and size of the attachment are displayed.</li><li>It's possible to download the attachment by clicking on the download button.</li></ul></li><li>Layers<ul><li>A less common feature, if the PDF has toggle-able layers, these layers will be displayed in a list here.</li><li>It's possible to toggle the visibility for each individual layer.</li></ul></li></ul>",
- "_help_uNtgN0cUKEBc": "<figure class=\"image image-style-align-right image_resized\" style=\"width:34.71%;\"><img style=\"aspect-ratio:596/1688;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Right%20Sidebar/Attributes%20tab_image.png\" width=\"596\" height=\"1688\"></figure><p>The attributes tab provides a more graphical way to view and edit <a href=\"#root/_help_zEY4DaJG4YT5\">attributes</a>.</p><h2>Sections</h2><p>The attributes are grouped into collapsible sections, each showing the number of attributes it holds next to its name:</p><ul><li><em>Owned</em> contains a list of the attributes that belong to this note.</li><li><em>Inherited</em> contains the attributes that apply to the current note but come through <a class=\"reference-link\" href=\"#root/_help_bwZpz2ajCEwO\">Attribute Inheritance</a>. This section is only displayed if the note inherits attributes.</li><li><em>Definitions</em> describe the type of attributes and are used in <a class=\"reference-link\" href=\"#root/_help_OFXdgB2nNk1F\">Promoted Attributes</a> and <a class=\"reference-link\" href=\"#root/_help_2FvYrpmOXm29\">Table</a> collections. This section is only displayed if the note has or inherits definitions.</li></ul><p>Clicking the name of a section collapses or expands it, and the collapsed state is remembered.</p><h2>Toolbar</h2><p>Above the sections there is a toolbar with:</p><ul><li>A <em>Select all</em> checkbox, which selects every attribute (see <a href=\"#selecting-attributes\">Selecting attributes</a>).</li><li>A <span class=\"tn-icon bx bx-paste\"></span> button, which only appears after attributes are copied. It lists the copied attributes and offers to paste them into the current note or to clear them.</li><li>A <span class=\"tn-icon bx bx-plus\"></span> <em>Add a new attribute</em> button, which offers to add a label, a relation, a label definition or a relation definition. This shows the full detail popup.</li></ul><p>On a note that cannot be edited (such as a page of the in-app help), the paste and add buttons are replaced by a <span class=\"tn-icon bx bx-lock-alt\"></span> <em>Read-only</em> indicator. Attributes can still be selected and copied from such a note.</p><h2>Owned attributes</h2><p>Every item is structured as such:</p><ul><li>The icon of each item indicates whether it's a <a href=\"#root/_help_HI6GBBIduIgv\">label</a> (<span class=\"tn-icon bx bx-hash\"></span>) or a <a href=\"#root/_help_Cq5X6iKQop6R\">relation</a> (<span class=\"tn-icon bx bx-transfer\"></span>, link to another note).</li><li>The first text is the name of the label.</li><li>The value of the attribute is displayed after the name, if present.<ul><li>The value is shown in a graphical way: a relation's value is a clickable note link; a color label shows a color chip.</li></ul></li></ul><p>System attributes (that have a special meaning in Trilium) show a small <span class=\"tn-icon bx bx-cog\"></span> cog near the icon and are grouped separately from the user-defined ones.</p><p>Interaction:</p><ul><li>Clicking on the item (apart from the value and links) reveals a dedicated popup where the name, value and <a class=\"reference-link\" href=\"#root/_help_bwZpz2ajCEwO\">Attribute Inheritance</a> can be defined.</li><li>The value of the attributes can be edited in-place:<ul><li>The input box follows the type defined in a corresponding label definition (date, color, dropdown, numbers), as well as for system attributes that have a specific type (e.g. <code>color</code>).</li><li>For labels, clicking on the value edits its in-place.<ul><li>Press <kbd>Enter</kbd> to confirm or click outside the input box, or <kbd>Esc</kbd> to dismiss.</li><li>For multi-line text, <kbd>Ctrl</kbd>+<kbd>Enter</kbd> confirms whereas <kbd>Enter</kbd> creates a newline.</li></ul></li><li>For checkbox attributes, clicking on the checkbox will toggle its state.</li><li>For labels without a value, a value can be added by clicking on the <em>No value</em> text which appears while the mouse is hovered on the item.</li><li>For relations, there is a dedicated <span class=\"tn-icon bx bx-pencil\"></span> button instead.</li></ul></li><li>An attribute can be deleted by pressing the <span class=\"tn-icon bx bx-trash\"></span> button to its right, which only appears while hovered. A confirmation screen is displayed first to ensure the attribute is not accidentally deleted.</li></ul><p>Attributes can be added in two ways:</p><ul><li>A new label, relation or attribute definition can be added from the <span class=\"tn-icon bx bx-plus\"></span> button in the <a href=\"#toolbar\">toolbar</a>. This shows the full detail popup.</li><li>To quickly add a label or a relation directly from the sidebar, click the <em>Add attribute</em> (<span class=\"tn-icon bx bx-plus\"></span>) item at the end of the list.<ul><li>The name field will be focused first. By default, a label will be created instead but it can be toggled to a relation by typing <kbd>~</kbd> or pressing the <span class=\"tn-icon bx bx-hash\"></span> icon (similarly, typing <code>#</code> will switch back to a label instead of a relation).</li><li>Once the name is filled, press <kbd>Enter</kbd> to continue to the value. Type in a value if desired and then press <kbd>Enter</kbd> again to create the attribute.</li><li>Clicking outside the editor will also create the attribute, but only if a name is specified.</li></ul></li></ul><h2>Inherited attributes</h2><p>Inherited labels or relations are shown in the same fashion as the owned ones.</p><p>The only differences are:</p><ul><li>To the right of the inherited attribute there is a link to the note where the attribute comes from, as well as an <span class=\"tn-icon bx bx-sitemap\"></span> icon to indicate that it's inheritable.</li><li>Clicking on an inherited attribute will reveal the same popup as owned attributes, but it is not editable. To edit it, first navigate to the note where the attribute is defined.</li></ul><h2>Definitions</h2><p>For attribute definition (see <a class=\"reference-link\" href=\"#root/_help_OFXdgB2nNk1F\">Promoted Attributes</a>):</p><ul><li>The icon indicates the type of the attribute (text, number).<ul><li>If an attribute is promoted, it has a small <span class=\"tn-icon bx bx-chevron-up\"></span> chevron icon overlaid on top of it.</li></ul></li><li>The name indicates the name of the attribute it defines (without the <code>label:</code> or <code>relation:</code> prefix).</li><li>To the right of the name a short summary is displayed which indicates the display name (alias), whether it has multiple values or an inverse relation.</li><li>Clicking on a definition reveals a popup, where the name, type, display name and other aspects can be configured.</li><li>To add a label definition, click the <em>Add definition</em> (<span class=\"tn-icon bx bx-plus\"></span>) item at the end of the list; its type can be changed to a relation from the popup. Both kinds of definitions can also be added from the <span class=\"tn-icon bx bx-plus\"></span> button in the <a href=\"#toolbar\">toolbar</a>.</li><li>For inherited definition, there is a link to the note where the definition comes from, as well as an <span class=\"tn-icon bx bx-sitemap\"></span> icon to indicate that it's inherited.</li></ul><h2>Selecting attributes</h2><p>Multiple attributes can be selected in order to copy or delete them together:</p><ul><li>Hovering over an attribute shows a checkbox in place of its icon. Click it to select the attribute.</li><li>Alternatively, hold <kbd>Ctrl</kbd> (<kbd>Cmd</kbd> on macOS) while clicking an attribute to select it, or <kbd>Shift</kbd> to select a range of attributes. A range can span multiple sections.</li><li>Once at least one attribute is selected, every attribute shows its checkbox, and clicking anywhere on an attribute selects or deselects it instead of opening the detail popup.</li><li>The <em>Select all</em> checkbox in the toolbar selects every attribute; while attributes are selected, it shows how many. Clicking it again clears the selection, as does pressing <kbd>Esc</kbd>.</li></ul><p>While attributes are selected, the toolbar shows:</p><ul><li>A <span class=\"tn-icon bx bx-copy\"></span> button, which copies the selected attributes.</li><li>A <span class=\"tn-icon bx bx-trash\"></span> button, which deletes the selected attributes after a confirmation. It only appears if all the selected attributes belong to the current note, since inherited attributes can only be deleted from the note they come from.</li></ul><p>Right-clicking an attribute shows a menu with the same actions, as well as pasting. If the attribute is not part of the selection, the menu applies only to that attribute.</p><h2>Copying and pasting attributes</h2><p>Attributes can be copied from one note and pasted into another:</p><ul><li>To copy, select the attributes and press <kbd>Ctrl</kbd>+<kbd>C</kbd>, or use the <span class=\"tn-icon bx bx-copy\"></span> button in the toolbar or the context menu.</li><li>To paste, navigate to the destination note and press <kbd>Ctrl</kbd>+<kbd>V</kbd> after clicking anywhere in the attributes tab, or use the <span class=\"tn-icon bx bx-paste\"></span> button in the toolbar. Right-clicking an attribute or an empty area of a section also offers to paste.</li></ul><p>Attributes are copied as text, in the same format as the attributes editor (for example <code>#author=John ~template=#root/abc123 #tag(inheritable)</code>). As a result:</p><ul><li>Copied attributes can be pasted into the attributes editor or into a note, and the text of the attributes editor can be pasted into the attributes tab.</li><li>Attributes can be written by hand in any other application and then pasted into Trilium.</li></ul><p>When pasting, the attributes become owned attributes of the current note, even if they were inherited in the source note:</p><ul><li>If the note already has an attribute with the same name, its value is replaced by the pasted one.</li><li>If a definition marks the attribute as having multiple values (see <a class=\"reference-link\" href=\"#root/_help_OFXdgB2nNk1F\">Promoted Attributes</a>), the pasted value is added alongside the existing ones instead, unless the same value is already present.</li></ul><aside class=\"admonition note\"><p><kbd>Ctrl</kbd>+<kbd>V</kbd> pastes what the system clipboard holds, whereas the <span class=\"tn-icon bx bx-paste\"></span> button and the context menu paste the attributes last copied in Trilium. The two differ if something else was copied in the meantime.</p></aside><h2>Mobile</h2><p>The attributes can also be edited visually on mobile, but not as part of the sidebar. Go to <a class=\"reference-link\" href=\"#root/_help_8YBEPzcpUgxw\">Note menu</a> and select <em>Attributes</em>, below <em>Backlinks</em> and <em>Note paths</em>, which opens the attributes in a sheet at the bottom of the screen.</p><p>On mobile, each section is displayed as a separate card:</p><ul><li>Attributes are added from the <span class=\"tn-icon bx bx-plus\"></span> button in the toolbar, or from the <span class=\"tn-icon bx bx-plus\"></span> button in the header of the <em>Definitions</em> card.</li><li>To select an attribute, press and hold it. Once an attribute is selected, tapping other attributes selects them as well.</li><li>Copying, pasting and deleting work the same way as on desktop, from the toolbar.</li></ul>",
+ "_help_uNtgN0cUKEBc": "<figure class=\"image image-style-align-right image_resized\" style=\"width:34.71%;\"><img style=\"aspect-ratio:596/1688;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Right%20Sidebar/Attributes%20tab_image.png\" width=\"596\" height=\"1688\"></figure><p>The attributes tab provides a more graphical way to view and edit <a href=\"#root/_help_zEY4DaJG4YT5\">attributes</a>.</p><h2>Sections</h2><p>The attributes are grouped into collapsible sections, each showing the number of attributes it holds next to its name:</p><ul><li><em>Owned</em> contains a list of the attributes that belong to this note.</li><li><em>Inherited</em> contains the attributes that apply to the current note but come through <a class=\"reference-link\" href=\"#root/_help_bwZpz2ajCEwO\">Attribute Inheritance</a>. This section is only displayed if the note inherits attributes.</li><li><em>Definitions</em> describe the type of attributes and are used in <a class=\"reference-link\" href=\"#root/_help_OFXdgB2nNk1F\">Promoted Attributes</a> and <a class=\"reference-link\" href=\"#root/_help_2FvYrpmOXm29\">Table</a> collections. This section is only displayed if the note has or inherits definitions.</li></ul><p>Clicking the name of a section collapses or expands it, and the collapsed state is remembered.</p><h2>Toolbar</h2><p>Above the sections there is a toolbar with:</p><ul><li>A <em>Select all</em> checkbox, which selects every attribute (see <a href=\"#selecting-attributes\">Selecting attributes</a>).</li><li>A <span class=\"tn-icon bx bx-paste\"></span> button, which only appears after attributes are copied. It lists the copied attributes and offers to paste them into the current note or to clear them.</li><li>A <span class=\"tn-icon bx bx-plus\"></span> <em>Add a new attribute</em> button, which offers to add a label, a relation, a label definition or a relation definition. This shows the full detail popup.</li></ul><p>On a note that cannot be edited (such as a page of the in-app help), the paste and add buttons are replaced by a <span class=\"tn-icon bx bx-lock-alt\"></span> <em>Read-only</em> indicator. Attributes can still be selected and copied from such a note.</p><h2>Owned attributes</h2><p>Every item is structured as such:</p><ul><li>The icon of each item indicates whether it's a <a href=\"#root/_help_HI6GBBIduIgv\">label</a> (<span class=\"tn-icon bx bx-hash\"></span>) or a <a href=\"#root/_help_Cq5X6iKQop6R\">relation</a> (<span class=\"tn-icon bx bx-transfer\"></span>, link to another note).</li><li>The first text is the name of the label.</li><li>The value of the attribute is displayed after the name, if present.<ul><li>The value is shown in a graphical way: a relation's value is a clickable note link; a color label shows a color chip.</li></ul></li></ul><p>System attributes (that have a special meaning in Trilium) show a small <span class=\"tn-icon bx bx-cog\"></span> cog near the icon and are grouped separately from the user-defined ones.</p><p>Interaction:</p><ul><li>Clicking on the item (apart from the value and links) reveals a dedicated popup where the name, value and <a class=\"reference-link\" href=\"#root/_help_bwZpz2ajCEwO\">Attribute Inheritance</a> can be defined.</li><li>The value of the attributes can be edited in-place:<ul><li>The input box follows the type defined in a corresponding label definition (date, color, dropdown, numbers), as well as for system attributes that have a specific type (e.g. <code>color</code>).</li><li>For labels, clicking on the value edits its in-place.<ul><li>Press <kbd>Enter</kbd> to confirm or click outside the input box, or <kbd>Esc</kbd> to dismiss.</li><li>For multi-line text, <kbd>Ctrl</kbd>+<kbd>Enter</kbd> confirms whereas <kbd>Enter</kbd> creates a newline.</li></ul></li><li>For checkbox attributes, clicking on the checkbox will toggle its state.</li><li>For labels without a value, a value can be added by clicking on the <em>No value</em> text which appears while the mouse is hovered on the item.</li><li>For relations, there is a dedicated <span class=\"tn-icon bx bx-pencil\"></span> button instead.</li></ul></li><li>An attribute can be deleted by pressing the <span class=\"tn-icon bx bx-trash\"></span> button to its right, which only appears while hovered. A confirmation screen is displayed first to ensure the attribute is not accidentally deleted.</li></ul><p>Attributes can be added in two ways:</p><ul><li>A new label, relation or attribute definition can be added from the <span class=\"tn-icon bx bx-plus\"></span> button in the <a href=\"#toolbar\">toolbar</a>. This shows the full detail popup.</li><li>To quickly add a label or a relation directly from the sidebar, click the <em>Add attribute</em> (<span class=\"tn-icon bx bx-plus\"></span>) item at the end of the list.<ul><li>The name field will be focused first. By default, a label will be created instead but it can be toggled to a relation by typing <kbd>~</kbd> or pressing the <span class=\"tn-icon bx bx-hash\"></span> icon (similarly, typing <code>#</code> will switch back to a label instead of a relation).</li><li>Once the name is filled, press <kbd>Enter</kbd> to continue to the value. Type in a value if desired and then press <kbd>Enter</kbd> again to create the attribute.</li><li>Clicking outside the editor will also create the attribute, but only if a name is specified.</li></ul></li></ul><h2>Inherited attributes</h2><p>Inherited labels or relations are shown in the same fashion as the owned ones.</p><p>The only differences are:</p><ul><li>To the right of the inherited attribute there is a link to the note where the attribute comes from, as well as an <span class=\"tn-icon bx bx-sitemap\"></span> icon to indicate that it's inheritable.</li><li>Clicking on an inherited attribute will reveal the same popup as owned attributes, but it is not editable. To edit it, first navigate to the note where the attribute is defined.</li></ul><h2>Definitions</h2><p>For attribute definition (see <a class=\"reference-link\" href=\"#root/_help_OFXdgB2nNk1F\">Promoted Attributes</a>):</p><ul><li>The icon indicates the type of the attribute (text, number).<ul><li>If an attribute is promoted, it has a small <span class=\"tn-icon bx bx-chevron-up\"></span> chevron icon overlaid on top of it.</li></ul></li><li>The name indicates the name of the attribute it defines (without the <code>label:</code> or <code>relation:</code> prefix).</li><li>To the right of the name a short summary is displayed which indicates the display name (alias), whether it has multiple values or an inverse relation.</li><li>Clicking on a definition reveals a popup, where the name, type, display name and other aspects can be configured.</li><li>To add a label definition, click the <em>Add definition</em> (<span class=\"tn-icon bx bx-plus\"></span>) item at the end of the list; its type can be changed to a relation from the popup. Both kinds of definitions can also be added from the <span class=\"tn-icon bx bx-plus\"></span> button in the <a href=\"#toolbar\">toolbar</a>.</li><li>For inherited definition, there is a link to the note where the definition comes from, as well as an <span class=\"tn-icon bx bx-sitemap\"></span> icon to indicate that it's inherited.</li></ul><h2>Selecting attributes</h2><p>Multiple attributes can be selected in order to copy or delete them together:</p><ul><li>Hovering over an attribute shows a checkbox in place of its icon. Click it to select the attribute.</li><li>Alternatively, hold <kbd>Ctrl</kbd> (<kbd>Cmd</kbd> on macOS) while clicking an attribute to select it, or <kbd>Shift</kbd> to select a range of attributes. A range can span multiple sections.</li><li>Once at least one attribute is selected, every attribute shows its checkbox, and clicking anywhere on an attribute selects or deselects it instead of opening the detail popup.</li><li>The <em>Select all</em> checkbox in the toolbar selects every attribute; while attributes are selected, it shows how many. Clicking it again clears the selection, as does pressing <kbd>Esc</kbd>.</li></ul><p>While attributes are selected, the toolbar shows:</p><ul><li>A <span class=\"tn-icon bx bx-copy\"></span> button, which copies the selected attributes.</li><li>A <span class=\"tn-icon bx bx-trash\"></span> button, which deletes the selected attributes after a confirmation. It only appears if all the selected attributes belong to the current note, since inherited attributes can only be deleted from the note they come from.</li></ul><p>Right-clicking an attribute shows a menu with the same actions, as well as pasting. If the attribute is not part of the selection, the menu applies only to that attribute.</p><h2>Copying and pasting attributes</h2><p>Attributes can be copied from one note and pasted into another:</p><ul><li>To copy, select the attributes and press <kbd>Ctrl</kbd>+<kbd>C</kbd>, or use the <span class=\"tn-icon bx bx-copy\"></span> button in the toolbar or the context menu.</li><li>To paste, navigate to the destination note and press <kbd>Ctrl</kbd>+<kbd>V</kbd> after clicking anywhere in the attributes tab, or use the <span class=\"tn-icon bx bx-paste\"></span> button in the toolbar. Right-clicking an attribute or an empty area of a section also offers to paste.</li></ul><p>Attributes are copied as text, in the same format as the attributes editor (for example <code>#author=John ~template=#root/abc123 #tag(inheritable)</code>). As a result:</p><ul><li>Copied attributes can be pasted into the attributes editor or into a note, and the text of the attributes editor can be pasted into the attributes tab.</li><li>Attributes can be written by hand in any other application and then pasted into Trilium.</li></ul><p>When pasting, the attributes become owned attributes of the current note, even if they were inherited in the source note:</p><ul><li>If the note already has an attribute with the same name, its value is replaced by the pasted one.</li><li>If a definition marks the attribute as having multiple values (see <a class=\"reference-link\" href=\"#root/_help_OFXdgB2nNk1F\">Promoted Attributes</a>), the pasted value is added alongside the existing ones instead, unless the same value is already present.</li></ul><aside class=\"admonition note\"><p><kbd>Ctrl</kbd>+<kbd>V</kbd> pastes what the system clipboard holds, whereas the <span class=\"tn-icon bx bx-paste\"></span> button and the context menu paste the attributes last copied in Trilium. The two differ if something else was copied in the meantime.</p></aside><h2>Mobile</h2><p>On mobile, the attributes are the <em>Attributes</em> tab of the note panel, which opens as a sheet at the bottom of the screen from the <span class=\"tn-icon bx bx-dock-bottom\"></span> button beside the <a class=\"reference-link\" href=\"#root/_help_8YBEPzcpUgxw\">Note menu</a>. Selecting <em>Attributes</em> in the note menu, below <em>Backlinks</em> and <em>Note paths</em>, opens the panel on that tab. Tapping an attribute opens it on a page of its own, with a <span class=\"tn-icon bx bx-chevron-left\"></span> button to return to the list.</p><p>On mobile, each section is displayed as a separate card:</p><ul><li>Attributes are added from the <span class=\"tn-icon bx bx-plus\"></span> button in the toolbar, or from the <span class=\"tn-icon bx bx-plus\"></span> button in the header of the <em>Definitions</em> card.</li><li>To select an attribute, press and hold it. Once an attribute is selected, tapping other attributes selects them as well.</li><li>Copying, pasting and deleting work the same way as on desktop, from the toolbar.</li></ul>",
"_help_LrKznOtw9cQD": "<p>Once the&nbsp;<a class=\"reference-link\" href=\"#root/_help_GBBMSlVSOIGP\">AI</a>&nbsp;integration is activated, a <em>Chat</em> entry will appear in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_RnaPdbciOfeq\">Right Sidebar</a>.</p><ul><li>Unlike the dedicated note type, the side bar has optional access to the current note, making it easy to ask for information or modifications to a note without having to search for the note first.<ul><li>To toggle whether the current note is visible to the AI, simply click on the file icon at the bottom of the chat interface.</li></ul></li><li>On the top-right of the sidebar there are three buttons:<ul><li>Create a new conversation.</li><li>Go to a previous conversation</li><li>Save the current conversation as a dedicated note in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_l0tKav7yLHGF\">Day Notes</a>, which turns it into a dedicated chat note.</li></ul></li></ul><aside class=\"admonition note\"><p>The sidebar chats are stored in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_2mUhVmZK8RF3\">Hidden Notes</a>&nbsp;and can be seen in the <em>AI Chat History</em> section.</p></aside>",
"_help_KRlZFoIH0j6p": "<figure class=\"image image-style-align-right image_resized\" style=\"width:33.35%;\"><img style=\"aspect-ratio:490/1801;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Right%20Sidebar/Connections%20tab_image.png\" width=\"490\" height=\"1801\"></figure><p>The connections tab groups together all the information about the current note and how it relates to other notes, in four different sections.</p><aside class=\"admonition note\"><p>It's generally best to keep only the desired sections expanded as each of the sections have to retrieve additional data that might not otherwise be needed. While collapsed, the sections do not retrieve any additional data.</p></aside><h2>Note map</h2><p>The note map displays a graph which shows the relation between the current notes and other notes on the hierarchy. There are two types of visualizations, which can be selected from the top-right part of the section:</p><ul><li>The <em>Link map</em> (<span class=\"tn-icon bx bx-network-chart\"></span>), which displays the <a href=\"#root/_help_Cq5X6iKQop6R\">relations</a> between notes.</li><li>The <em>Tree map</em> (<span class=\"tn-icon bx bx-sitemap\"></span>), which displays the hierarchical structure.</li></ul><p>The sidebar will remember which visualization is selected, as a global option. Note that note maps also have a <code>#mapType</code> which describes which visualization to use, but the sidebar deliberately ignores that to keep consistency when switching between notes.</p><p>The map can also be expanded by pressing the <span class=\"tn-icon bx bx-expand-alt\"></span> button in the top-right of the section. When expanded, the map is displayed in a separate dialog. Alternatively, all other sections can be collapsed, which will make the note map taller and the sidebar can be dragged to make for more lateral space.</p><p>The note map view inside the sidebar is deliberately more compact in order to fit the space: the link map would also show notes that don't have a link to the current note from the hierarchy (creating a cloud of dots) but this is only shown while the map is expanded. Similarly, the link strength and pin configuration buttons are not displayed here.</p><p>See also:</p><ul><li>The&nbsp;<a class=\"reference-link\" href=\"#root/_help_bdUJEHsAPYQR\">Note Map</a>&nbsp;note type</li><li><a class=\"reference-link\" href=\"#root/_help_BCkXAVs63Ttv\">Note Map (Link map, Tree map)</a>&nbsp;for more information on the concept as a whole.</li></ul><h2>Note paths</h2><p>The note paths section displays the locations in which the current note is <a href=\"#root/_help_IakOLONlIfGI\">cloned</a>. Each segment of the note path is clickable, in order to navigate to that note or clone. The root note is shown as its icon, the same as in the <a class=\"reference-link\" href=\"#root/_help_I6p2a06hdnL6\">Breadcrumb</a>; hovering it shows its title.</p><p>A new clone can be created from the <span class=\"tn-icon bx bx-duplicate\"></span> button at the top-right.</p><h2>Backlinks</h2><p>Backlinks list the notes that refer to the current note, as well as a preview of the content where the reference to the note is made.</p><p>For more information, see&nbsp;<a class=\"reference-link\" href=\"#root/_help_wfGXLmm7x27z\">Backlinks</a>.</p><h2>Similar notes</h2><p>Displays a list of notes that appear similar based on the content of the notes and their attributes. For more information, see&nbsp;<a class=\"reference-link\" href=\"#root/_help_xWtq5NUHOwql\">Similar Notes</a>.</p>",
"_help_r5JGHN99bVKn": "<figure class=\"image image-style-align-center image_resized\" style=\"width:50%;\"><img style=\"aspect-ratio:988/572;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Recent%20Changes_image.png\" width=\"988\" height=\"572\"></figure><h2>Accessing the recent changes</h2><ul><li>For an overview of the changes across all documents, press the&nbsp;<span class=\"tn-icon bx bx-history\"></span> button in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>.<ul><li>If there is a <a href=\"#root/_help_OR8WJ7Iz9K4U\">hoisted note</a> or a <a href=\"#root/_help_9sRHySam5fXb\">workspace</a>, the list of recent changes will be limited to the descendents of the hoisted note, or the workspace.</li><li>Right-clicking or pressing and holding the button lists up to 15 of the most recently changed notes that are not open in a tab. Selecting a note opens it in a new tab.</li></ul></li><li>To limit the list of recent changes to a note and its descendants, look for the corresponding option in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_YtSN43OrfzaA\">Note tree contextual menu</a>&nbsp;→ Advanced.</li><li>Right-clicking or pressing and holding the <span class=\"tn-icon bx bx-plus\"></span> button of the <a class=\"reference-link\" href=\"#root/_help_3seOhtN8uLIY\">Tabs</a> bar lists the most recently changed notes that are not open in a tab. <em>All recent changes</em>, at the bottom of that menu, opens this dialog.</li></ul><h2>Interaction</h2><ul><li>Notes which were changed will appear in reverse chronological order (latest update first).</li><li>The title of the note is displayed, as well as the note path. Clicking on the note title will dismiss the dialog and navigate to that particular note.</li><li>Deleted notes will also be listed here, at their time of deletion. Press the <em>Undelete</em> link next to them in order to recover them.</li></ul>",
diff --git a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Right Sidebar/Attributes tab.md b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Right Sidebar/Attributes tab.md
index 7b46c625b0..2b3c647292 100644
--- a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Right Sidebar/Attributes tab.md
+++ b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Right Sidebar/Attributes tab.md
@@ -114,7 +114,7 @@ When pasting, the attributes become owned attributes of the current note, even i
## Mobile
-The attributes can also be edited visually on mobile, but not as part of the sidebar. Go to <a class="reference-link" href="../Note%20menu.md">Note menu</a> and select _Attributes_, below _Backlinks_ and _Note paths_, which opens the attributes in a sheet at the bottom of the screen.
+On mobile, the attributes are the _Attributes_ tab of the note panel, which opens as a sheet at the bottom of the screen from the <span class="tn-icon bx bx-dock-bottom"></span> button beside the <a class="reference-link" href="../Note%20menu.md">Note menu</a>. Selecting _Attributes_ in the note menu, below _Backlinks_ and _Note paths_, opens the panel on that tab. Tapping an attribute opens it on a page of its own, with a <span class="tn-icon bx bx-chevron-left"></span> button to return to the list.
On mobile, each section is displayed as a separate card: