Skip to content

Build your personal knowledge base with Trilium Notes

refactor: name the former ribbon shortcuts after what they do

Elian Doran3e445dd81bd1
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json
index 7daa0c19f8..9638b9e732 100644
--- a/apps/client/src/translations/en/translation.json
+++ b/apps/client/src/translations/en/translation.json
@@ -2909,12 +2909,10 @@
"label": "Formatting toolbar",
"toolbar_style": "Toolbar style",
"floating": {
- "title": "Floating",
- "description": "editing tools appear near the cursor;"
+ "title": "Floating"
},
"fixed": {
- "title": "Fixed",
- "description": "editing tools appear in the \"Formatting\" ribbon tab."
+ "title": "Fixed"
},
"multiline-toolbar": "Display the toolbar on multiple lines if it doesn't fit"
}
diff --git a/apps/server/src/assets/translations/en/server.json b/apps/server/src/assets/translations/en/server.json
index 4b68990e43..491c2a5acc 100644
--- a/apps/server/src/assets/translations/en/server.json
+++ b/apps/server/src/assets/translations/en/server.json
@@ -52,8 +52,8 @@
"attributes-labels-and-relations": "Attributes (labels & relations)",
"add-new-label": "Create new label",
"create-new-relation": "Create new relation",
- "ribbon-tabs": "Ribbon tabs",
- "toggle-link-map": "Toggle Link Map",
+ "note-panels": "Note panels",
+ "show-note-map": "Shows the note map in the right pane",
"other": "Other",
"toggle-right-pane": "Toggle the display of the right pane, which includes Table of Contents and Highlights",
"peek-right-pane": "Peek the right pane as a temporary panel that floats over the content and closes when it loses focus",
@@ -68,8 +68,8 @@
"copy-without-formatting": "Copy selected text without formatting",
"force-save-revision": "Force creating / saving new note revision of the active note",
"save-named-revision": "Save a named revision of the active note",
- "toggle-book-properties": "Toggle Collection Properties",
- "toggle-classic-editor-toolbar": "Toggle the Formatting tab for the editor with fixed toolbar",
+ "focus-collection-properties": "Moves focus to the collection's view type selector",
+ "focus-formatting-toolbar": "Moves focus between the fixed formatting toolbar and the editor",
"toggle-zen-mode": "Enables/disables the zen mode (minimal UI for more focused editing)",
"create-new-split": "Open a new empty split to the right of the active one",
"close-active-split": "Close the active split, keeping the other splits of the tab open",
@@ -150,18 +150,18 @@
"edit-read-only-note": "Edit Read-Only Note",
"add-new-label": "Add New Label",
"add-new-relation": "Add New Relation",
- "toggle-ribbon-tab-classic-editor": "Toggle Ribbon Tab Classic Editor",
- "toggle-ribbon-tab-basic-properties": "Toggle Ribbon Tab Basic Properties",
- "toggle-ribbon-tab-book-properties": "Toggle Ribbon Tab Book Properties",
- "toggle-ribbon-tab-file-properties": "Toggle Ribbon Tab File Properties",
- "toggle-ribbon-tab-image-properties": "Toggle Ribbon Tab Image Properties",
- "toggle-ribbon-tab-owned-attributes": "Toggle Ribbon Tab Owned Attributes",
- "toggle-ribbon-tab-inherited-attributes": "Toggle Ribbon Tab Inherited Attributes",
- "toggle-ribbon-tab-promoted-attributes": "Toggle Ribbon Tab Promoted Attributes",
- "toggle-ribbon-tab-note-map": "Toggle Ribbon Tab Note Map",
- "toggle-ribbon-tab-note-info": "Toggle Ribbon Tab Note Info",
- "toggle-ribbon-tab-note-paths": "Toggle Ribbon Tab Note Paths",
- "toggle-ribbon-tab-similar-notes": "Toggle Ribbon Tab Similar Notes",
+ "focus-formatting-toolbar": "Focus Formatting Toolbar",
+ "show-basic-properties": "Show Basic Properties",
+ "focus-collection-properties": "Focus Collection Properties",
+ "focus-file-actions": "Focus File Actions",
+ "focus-image-actions": "Focus Image Actions",
+ "toggle-owned-attributes": "Toggle Owned Attributes",
+ "toggle-inherited-attributes": "Toggle Inherited Attributes",
+ "toggle-promoted-attributes": "Toggle Promoted Attributes",
+ "show-note-map": "Show Note Map",
+ "show-note-info": "Show Note Info",
+ "show-note-paths": "Show Note Paths",
+ "toggle-similar-notes": "Toggle Similar Notes",
"toggle-right-pane": "Toggle Right Pane",
"peek-right-pane": "Peek Right Pane",
"print-active-note": "Print Active Note",
diff --git a/packages/trilium-core/src/services/keyboard_actions.ts b/packages/trilium-core/src/services/keyboard_actions.ts
index 34b3ae5b72..71a5f2f998 100644
--- a/packages/trilium-core/src/services/keyboard_actions.ts
+++ b/packages/trilium-core/src/services/keyboard_actions.ts
@@ -646,93 +646,92 @@ function getDefaultKeyboardActions() {
},
{
- separator: t("keyboard_actions.ribbon-tabs")
+ separator: t("keyboard_actions.note-panels")
},
{
- friendlyName: t("keyboard_action_names.toggle-ribbon-tab-classic-editor"),
+ friendlyName: t("keyboard_action_names.focus-formatting-toolbar"),
actionName: "toggleRibbonTabClassicEditor",
iconClass: "bx bx-text",
defaultShortcuts: [],
- description: t("keyboard_actions.toggle-classic-editor-toolbar"),
+ description: t("keyboard_actions.focus-formatting-toolbar"),
scope: "window"
},
{
actionName: "toggleRibbonTabBasicProperties",
- friendlyName: t("keyboard_action_names.toggle-ribbon-tab-basic-properties"),
+ friendlyName: t("keyboard_action_names.show-basic-properties"),
iconClass: "bx bx-slider",
defaultShortcuts: [],
scope: "window"
},
{
actionName: "toggleRibbonTabBookProperties",
- friendlyName: t("keyboard_action_names.toggle-ribbon-tab-book-properties"),
+ friendlyName: t("keyboard_action_names.focus-collection-properties"),
iconClass: "bx bx-book",
defaultShortcuts: [],
- description: t("keyboard_actions.toggle-book-properties"),
+ description: t("keyboard_actions.focus-collection-properties"),
scope: "window"
},
{
actionName: "toggleRibbonTabFileProperties",
- friendlyName: t("keyboard_action_names.toggle-ribbon-tab-file-properties"),
+ friendlyName: t("keyboard_action_names.focus-file-actions"),
iconClass: "bx bx-file",
defaultShortcuts: [],
scope: "window"
},
{
actionName: "toggleRibbonTabImageProperties",
- friendlyName: t("keyboard_action_names.toggle-ribbon-tab-image-properties"),
+ friendlyName: t("keyboard_action_names.focus-image-actions"),
iconClass: "bx bx-image",
defaultShortcuts: [],
scope: "window"
},
{
actionName: "toggleRibbonTabOwnedAttributes",
- friendlyName: t("keyboard_action_names.toggle-ribbon-tab-owned-attributes"),
+ friendlyName: t("keyboard_action_names.toggle-owned-attributes"),
iconClass: "bx bx-list-check",
defaultShortcuts: ["Alt+A"],
scope: "window"
},
{
actionName: "toggleRibbonTabInheritedAttributes",
- friendlyName: t("keyboard_action_names.toggle-ribbon-tab-inherited-attributes"),
+ friendlyName: t("keyboard_action_names.toggle-inherited-attributes"),
iconClass: "bx bx-list-plus",
defaultShortcuts: [],
scope: "window"
},
- // TODO: Remove or change since promoted attributes have been changed.
{
actionName: "toggleRibbonTabPromotedAttributes",
- friendlyName: t("keyboard_action_names.toggle-ribbon-tab-promoted-attributes"),
+ friendlyName: t("keyboard_action_names.toggle-promoted-attributes"),
iconClass: "bx bx-star",
defaultShortcuts: [],
scope: "window"
},
{
actionName: "toggleRibbonTabNoteMap",
- friendlyName: t("keyboard_action_names.toggle-ribbon-tab-note-map"),
+ friendlyName: t("keyboard_action_names.show-note-map"),
iconClass: "bx bxs-network-chart",
defaultShortcuts: [],
- description: t("keyboard_actions.toggle-link-map"),
+ description: t("keyboard_actions.show-note-map"),
scope: "window"
},
{
actionName: "toggleRibbonTabNoteInfo",
- friendlyName: t("keyboard_action_names.toggle-ribbon-tab-note-info"),
+ friendlyName: t("keyboard_action_names.show-note-info"),
iconClass: "bx bx-info-circle",
defaultShortcuts: [],
scope: "window"
},
{
actionName: "toggleRibbonTabNotePaths",
- friendlyName: t("keyboard_action_names.toggle-ribbon-tab-note-paths"),
+ friendlyName: t("keyboard_action_names.show-note-paths"),
iconClass: "bx bx-collection",
defaultShortcuts: [],
scope: "window"
},
{
actionName: "toggleRibbonTabSimilarNotes",
- friendlyName: t("keyboard_action_names.toggle-ribbon-tab-similar-notes"),
+ friendlyName: t("keyboard_action_names.toggle-similar-notes"),
iconClass: "bx bx-bar-chart",
defaultShortcuts: [],
scope: "window"