chore(keyboard_actions): use translations for friendly names

This commit is contained in:
Elian Doran 2025-07-27 17:04:05 +03:00
parent 0b24553ace
commit c4ec27bb1e
No known key found for this signature in database
2 changed files with 192 additions and 95 deletions

View File

@ -105,6 +105,103 @@
"export-as-pdf": "Export the current note as a PDF",
"toggle-zen-mode": "Enables/disables the zen mode (minimal UI for more focused editing)"
},
"keyboard_action_names": {
"back-in-note-history": "Back in Note History",
"forward-in-note-history": "Forward in Note History",
"jump-to-note": "Jump to Note",
"command-palette": "Command Palette",
"scroll-to-active-note": "Scroll to Active Note",
"quick-search": "Quick Search",
"search-in-subtree": "Search in Subtree",
"expand-subtree": "Expand Subtree",
"collapse-tree": "Collapse Tree",
"collapse-subtree": "Collapse Subtree",
"sort-child-notes": "Sort Child Notes",
"create-note-after": "Create Note After",
"create-note-into": "Create Note Into",
"create-note-into-inbox": "Create Note Into Inbox",
"delete-notes": "Delete Notes",
"move-note-up": "Move Note Up",
"move-note-down": "Move Note Down",
"move-note-up-in-hierarchy": "Move Note Up in Hierarchy",
"move-note-down-in-hierarchy": "Move Note Down in Hierarchy",
"edit-note-title": "Edit Note Title",
"edit-branch-prefix": "Edit Branch Prefix",
"clone-notes-to": "Clone Notes To",
"move-notes-to": "Move Notes To",
"copy-notes-to-clipboard": "Copy Notes to Clipboard",
"paste-notes-from-clipboard": "Paste Notes from Clipboard",
"cut-notes-to-clipboard": "Cut Notes to Clipboard",
"select-all-notes-in-parent": "Select All Notes in Parent",
"add-note-above-to-selection": "Add Note Above to Selection",
"add-note-below-to-selection": "Add Note Below to Selection",
"duplicate-subtree": "Duplicate Subtree",
"open-new-tab": "Open New Tab",
"close-active-tab": "Close Active Tab",
"reopen-last-tab": "Reopen Last Tab",
"activate-next-tab": "Activate Next Tab",
"activate-previous-tab": "Activate Previous Tab",
"open-new-window": "Open New Window",
"toggle-system-tray-icon": "Toggle System Tray Icon",
"toggle-zen-mode": "Toggle Zen Mode",
"switch-to-first-tab": "Switch to First Tab",
"switch-to-second-tab": "Switch to Second Tab",
"switch-to-third-tab": "Switch to Third Tab",
"switch-to-fourth-tab": "Switch to Fourth Tab",
"switch-to-fifth-tab": "Switch to Fifth Tab",
"switch-to-sixth-tab": "Switch to Sixth Tab",
"switch-to-seventh-tab": "Switch to Seventh Tab",
"switch-to-eighth-tab": "Switch to Eighth Tab",
"switch-to-ninth-tab": "Switch to Ninth Tab",
"switch-to-last-tab": "Switch to Last Tab",
"show-note-source": "Show Note Source",
"show-options": "Show Options",
"show-revisions": "Show Revisions",
"show-recent-changes": "Show Recent Changes",
"show-sql-console": "Show SQL Console",
"show-backend-log": "Show Backend Log",
"show-help": "Show Help",
"show-cheatsheet": "Show Cheatsheet",
"add-link-to-text": "Add Link to Text",
"follow-link-under-cursor": "Follow Link Under Cursor",
"insert-date-and-time-to-text": "Insert Date and Time to Text",
"paste-markdown-into-text": "Paste Markdown into Text",
"cut-into-note": "Cut into Note",
"add-include-note-to-text": "Add Include Note to Text",
"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",
"toggle-right-pane": "Toggle Right Pane",
"print-active-note": "Print Active Note",
"export-active-note-as-pdf": "Export Active Note as PDF",
"open-note-externally": "Open Note Externally",
"render-active-note": "Render Active Note",
"run-active-note": "Run Active Note",
"toggle-note-hoisting": "Toggle Note Hoisting",
"unhoist-note": "Unhoist Note",
"reload-frontend-app": "Reload Frontend App",
"open-developer-tools": "Open Developer Tools",
"find-in-text": "Find In Text",
"toggle-left-pane": "Toggle Left Pane",
"toggle-full-screen": "Toggle Full Screen",
"zoom-out": "Zoom Out",
"zoom-in": "Zoom In",
"reset-zoom-level": "Reset Zoom Level",
"copy-without-formatting": "Copy Without Formatting",
"force-save-revision": "Force Save Revision"
},
"login": {
"title": "Login",
"heading": "Trilium Login",

View File

@ -17,7 +17,7 @@ function getDefaultKeyboardActions() {
},
{
actionName: "backInNoteHistory",
friendlyName: "Back in Note History",
friendlyName: t("keyboard_action_names.back-in-note-history"),
// Mac has a different history navigation shortcuts - https://github.com/zadam/trilium/issues/376
defaultShortcuts: isMac ? ["CommandOrControl+Left"] : ["Alt+Left"],
description: t("keyboard_actions.back-in-note-history"),
@ -25,7 +25,7 @@ function getDefaultKeyboardActions() {
},
{
actionName: "forwardInNoteHistory",
friendlyName: "Forward in Note History",
friendlyName: t("keyboard_action_names.forward-in-note-history"),
// Mac has a different history navigation shortcuts - https://github.com/zadam/trilium/issues/376
defaultShortcuts: isMac ? ["CommandOrControl+Right"] : ["Alt+Right"],
description: t("keyboard_actions.forward-in-note-history"),
@ -33,63 +33,63 @@ function getDefaultKeyboardActions() {
},
{
actionName: "jumpToNote",
friendlyName: "Jump to Note",
friendlyName: t("keyboard_action_names.jump-to-note"),
defaultShortcuts: ["CommandOrControl+J"],
description: t("keyboard_actions.open-jump-to-note-dialog"),
scope: "window"
},
{
actionName: "commandPalette",
friendlyName: "Command Palette",
friendlyName: t("keyboard_action_names.command-palette"),
defaultShortcuts: ["CommandOrControl+Shift+J"],
description: t("keyboard_actions.open-command-palette"),
scope: "window"
},
{
actionName: "scrollToActiveNote",
friendlyName: "Scroll to Active Note",
friendlyName: t("keyboard_action_names.scroll-to-active-note"),
defaultShortcuts: ["CommandOrControl+."],
description: t("keyboard_actions.scroll-to-active-note"),
scope: "window"
},
{
actionName: "quickSearch",
friendlyName: "Quick Search",
friendlyName: t("keyboard_action_names.quick-search"),
defaultShortcuts: ["CommandOrControl+S"],
description: t("keyboard_actions.quick-search"),
scope: "window"
},
{
actionName: "searchInSubtree",
friendlyName: "Search in Subtree",
friendlyName: t("keyboard_action_names.search-in-subtree"),
defaultShortcuts: ["CommandOrControl+Shift+S"],
description: t("keyboard_actions.search-in-subtree"),
scope: "note-tree"
},
{
actionName: "expandSubtree",
friendlyName: "Expand Subtree",
friendlyName: t("keyboard_action_names.expand-subtree"),
defaultShortcuts: [],
description: t("keyboard_actions.expand-subtree"),
scope: "note-tree"
},
{
actionName: "collapseTree",
friendlyName: "Collapse Tree",
friendlyName: t("keyboard_action_names.collapse-tree"),
defaultShortcuts: ["Alt+C"],
description: t("keyboard_actions.collapse-tree"),
scope: "window"
},
{
actionName: "collapseSubtree",
friendlyName: "Collapse Subtree",
friendlyName: t("keyboard_action_names.collapse-subtree"),
defaultShortcuts: ["Alt+-"],
description: t("keyboard_actions.collapse-subtree"),
scope: "note-tree"
},
{
actionName: "sortChildNotes",
friendlyName: "Sort Child Notes",
friendlyName: t("keyboard_action_names.sort-child-notes"),
defaultShortcuts: ["Alt+S"],
description: t("keyboard_actions.sort-child-notes"),
scope: "note-tree"
@ -100,84 +100,84 @@ function getDefaultKeyboardActions() {
},
{
actionName: "createNoteAfter",
friendlyName: "Create Note After",
friendlyName: t("keyboard_action_names.create-note-after"),
defaultShortcuts: ["CommandOrControl+O"],
description: t("keyboard_actions.create-note-after"),
scope: "window"
},
{
actionName: "createNoteInto",
friendlyName: "Create Note Into",
friendlyName: t("keyboard_action_names.create-note-into"),
defaultShortcuts: ["CommandOrControl+P"],
description: t("keyboard_actions.create-note-into"),
scope: "window"
},
{
actionName: "createNoteIntoInbox",
friendlyName: "Create Note Into Inbox",
friendlyName: t("keyboard_action_names.create-note-into-inbox"),
defaultShortcuts: ["global:CommandOrControl+Alt+P"],
description: t("keyboard_actions.create-note-into-inbox"),
scope: "window"
},
{
actionName: "deleteNotes",
friendlyName: "Delete Notes",
friendlyName: t("keyboard_action_names.delete-notes"),
defaultShortcuts: ["Delete"],
description: t("keyboard_actions.delete-note"),
scope: "note-tree"
},
{
actionName: "moveNoteUp",
friendlyName: "Move Note Up",
friendlyName: t("keyboard_action_names.move-note-up"),
defaultShortcuts: isMac ? ["Alt+Up"] : ["CommandOrControl+Up"],
description: t("keyboard_actions.move-note-up"),
scope: "note-tree"
},
{
actionName: "moveNoteDown",
friendlyName: "Move Note Down",
friendlyName: t("keyboard_action_names.move-note-down"),
defaultShortcuts: isMac ? ["Alt+Down"] : ["CommandOrControl+Down"],
description: t("keyboard_actions.move-note-down"),
scope: "note-tree"
},
{
actionName: "moveNoteUpInHierarchy",
friendlyName: "Move Note Up in Hierarchy",
friendlyName: t("keyboard_action_names.move-note-up-in-hierarchy"),
defaultShortcuts: isMac ? ["Alt+Left"] : ["CommandOrControl+Left"],
description: t("keyboard_actions.move-note-up-in-hierarchy"),
scope: "note-tree"
},
{
actionName: "moveNoteDownInHierarchy",
friendlyName: "Move Note Down in Hierarchy",
friendlyName: t("keyboard_action_names.move-note-down-in-hierarchy"),
defaultShortcuts: isMac ? ["Alt+Right"] : ["CommandOrControl+Right"],
description: t("keyboard_actions.move-note-down-in-hierarchy"),
scope: "note-tree"
},
{
actionName: "editNoteTitle",
friendlyName: "Edit Note Title",
friendlyName: t("keyboard_action_names.edit-note-title"),
defaultShortcuts: ["Enter"],
description: t("keyboard_actions.edit-note-title"),
scope: "note-tree"
},
{
actionName: "editBranchPrefix",
friendlyName: "Edit Branch Prefix",
friendlyName: t("keyboard_action_names.edit-branch-prefix"),
defaultShortcuts: ["F2"],
description: t("keyboard_actions.edit-branch-prefix"),
scope: "note-tree"
},
{
actionName: "cloneNotesTo",
friendlyName: "Clone Notes To",
friendlyName: t("keyboard_action_names.clone-notes-to"),
defaultShortcuts: ["CommandOrControl+Shift+C"],
description: t("keyboard_actions.clone-notes-to"),
scope: "window"
},
{
actionName: "moveNotesTo",
friendlyName: "Move Notes To",
friendlyName: t("keyboard_action_names.move-notes-to"),
defaultShortcuts: ["CommandOrControl+Shift+X"],
description: t("keyboard_actions.move-notes-to"),
scope: "window"
@ -189,49 +189,49 @@ function getDefaultKeyboardActions() {
{
actionName: "copyNotesToClipboard",
friendlyName: "Copy Notes to Clipboard",
friendlyName: t("keyboard_action_names.copy-notes-to-clipboard"),
defaultShortcuts: ["CommandOrControl+C"],
description: t("keyboard_actions.copy-notes-to-clipboard"),
scope: "note-tree"
},
{
actionName: "pasteNotesFromClipboard",
friendlyName: "Paste Notes from Clipboard",
friendlyName: t("keyboard_action_names.paste-notes-from-clipboard"),
defaultShortcuts: ["CommandOrControl+V"],
description: t("keyboard_actions.paste-notes-from-clipboard"),
scope: "note-tree"
},
{
actionName: "cutNotesToClipboard",
friendlyName: "Cut Notes to Clipboard",
friendlyName: t("keyboard_action_names.cut-notes-to-clipboard"),
defaultShortcuts: ["CommandOrControl+X"],
description: t("keyboard_actions.cut-notes-to-clipboard"),
scope: "note-tree"
},
{
actionName: "selectAllNotesInParent",
friendlyName: "Select All Notes in Parent",
friendlyName: t("keyboard_action_names.select-all-notes-in-parent"),
defaultShortcuts: ["CommandOrControl+A"],
description: t("keyboard_actions.select-all-notes-in-parent"),
scope: "note-tree"
},
{
actionName: "addNoteAboveToSelection",
friendlyName: "Add Note Above to Selection",
friendlyName: t("keyboard_action_names.add-note-above-to-selection"),
defaultShortcuts: ["Shift+Up"],
description: t("keyboard_actions.add-note-above-to-the-selection"),
scope: "note-tree"
},
{
actionName: "addNoteBelowToSelection",
friendlyName: "Add Note Below to Selection",
friendlyName: t("keyboard_action_names.add-note-below-to-selection"),
defaultShortcuts: ["Shift+Down"],
description: t("keyboard_actions.add-note-below-to-selection"),
scope: "note-tree"
},
{
actionName: "duplicateSubtree",
friendlyName: "Duplicate Subtree",
friendlyName: t("keyboard_action_names.duplicate-subtree"),
defaultShortcuts: [],
description: t("keyboard_actions.duplicate-subtree"),
scope: "note-tree"
@ -242,126 +242,126 @@ function getDefaultKeyboardActions() {
},
{
actionName: "openNewTab",
friendlyName: "Open New Tab",
friendlyName: t("keyboard_action_names.open-new-tab"),
defaultShortcuts: isElectron ? ["CommandOrControl+T"] : [],
description: t("keyboard_actions.open-new-tab"),
scope: "window"
},
{
actionName: "closeActiveTab",
friendlyName: "Close Active Tab",
friendlyName: t("keyboard_action_names.close-active-tab"),
defaultShortcuts: isElectron ? ["CommandOrControl+W"] : [],
description: t("keyboard_actions.close-active-tab"),
scope: "window"
},
{
actionName: "reopenLastTab",
friendlyName: "Reopen Last Tab",
friendlyName: t("keyboard_action_names.reopen-last-tab"),
defaultShortcuts: isElectron ? ["CommandOrControl+Shift+T"] : [],
description: t("keyboard_actions.reopen-last-tab"),
scope: "window"
},
{
actionName: "activateNextTab",
friendlyName: "Activate Next Tab",
friendlyName: t("keyboard_action_names.activate-next-tab"),
defaultShortcuts: isElectron ? ["CommandOrControl+Tab", "CommandOrControl+PageDown"] : [],
description: t("keyboard_actions.activate-next-tab"),
scope: "window"
},
{
actionName: "activatePreviousTab",
friendlyName: "Activate Previous Tab",
friendlyName: t("keyboard_action_names.activate-previous-tab"),
defaultShortcuts: isElectron ? ["CommandOrControl+Shift+Tab", "CommandOrControl+PageUp"] : [],
description: t("keyboard_actions.activate-previous-tab"),
scope: "window"
},
{
actionName: "openNewWindow",
friendlyName: "Open New Window",
friendlyName: t("keyboard_action_names.open-new-window"),
defaultShortcuts: [],
description: t("keyboard_actions.open-new-window"),
scope: "window"
},
{
actionName: "toggleTray",
friendlyName: "Toggle System Tray Icon",
friendlyName: t("keyboard_action_names.toggle-system-tray-icon"),
defaultShortcuts: [],
description: t("keyboard_actions.toggle-tray"),
scope: "window"
},
{
actionName: "toggleZenMode",
friendlyName: "Toggle Zen Mode",
friendlyName: t("keyboard_action_names.toggle-zen-mode"),
defaultShortcuts: ["F9"],
description: t("keyboard_actions.toggle-zen-mode"),
scope: "window"
},
{
actionName: "firstTab",
friendlyName: "Switch to First Tab",
friendlyName: t("keyboard_action_names.switch-to-first-tab"),
defaultShortcuts: ["CommandOrControl+1"],
description: t("keyboard_actions.first-tab"),
scope: "window"
},
{
actionName: "secondTab",
friendlyName: "Switch to Second Tab",
friendlyName: t("keyboard_action_names.switch-to-second-tab"),
defaultShortcuts: ["CommandOrControl+2"],
description: t("keyboard_actions.second-tab"),
scope: "window"
},
{
actionName: "thirdTab",
friendlyName: "Switch to Third Tab",
friendlyName: t("keyboard_action_names.switch-to-third-tab"),
defaultShortcuts: ["CommandOrControl+3"],
description: t("keyboard_actions.third-tab"),
scope: "window"
},
{
actionName: "fourthTab",
friendlyName: "Switch to Fourth Tab",
friendlyName: t("keyboard_action_names.switch-to-fourth-tab"),
defaultShortcuts: ["CommandOrControl+4"],
description: t("keyboard_actions.fourth-tab"),
scope: "window"
},
{
actionName: "fifthTab",
friendlyName: "Switch to Fifth Tab",
friendlyName: t("keyboard_action_names.switch-to-fifth-tab"),
defaultShortcuts: ["CommandOrControl+5"],
description: t("keyboard_actions.fifth-tab"),
scope: "window"
},
{
actionName: "sixthTab",
friendlyName: "Switch to Sixth Tab",
friendlyName: t("keyboard_action_names.switch-to-sixth-tab"),
defaultShortcuts: ["CommandOrControl+6"],
description: t("keyboard_actions.sixth-tab"),
scope: "window"
},
{
actionName: "seventhTab",
friendlyName: "Switch to Seventh Tab",
friendlyName: t("keyboard_action_names.switch-to-seventh-tab"),
defaultShortcuts: ["CommandOrControl+7"],
description: t("keyboard_actions.seventh-tab"),
scope: "window"
},
{
actionName: "eigthTab",
friendlyName: "Switch to Eighth Tab",
friendlyName: t("keyboard_action_names.switch-to-eighth-tab"),
defaultShortcuts: ["CommandOrControl+8"],
description: t("keyboard_actions.eight-tab"),
scope: "window"
},
{
actionName: "ninthTab",
friendlyName: "Switch to Ninth Tab",
friendlyName: t("keyboard_action_names.switch-to-ninth-tab"),
defaultShortcuts: ["CommandOrControl+9"],
description: t("keyboard_actions.ninth-tab"),
scope: "window"
},
{
actionName: "lastTab",
friendlyName: "Switch to Last Tab",
friendlyName: t("keyboard_action_names.switch-to-last-tab"),
defaultShortcuts: ["CommandOrControl+0"],
description: t("keyboard_actions.last-tab"),
scope: "window"
@ -371,56 +371,56 @@ function getDefaultKeyboardActions() {
separator: t("keyboard_actions.dialogs")
},
{
friendlyName: "Show Note Source",
friendlyName: t("keyboard_action_names.show-note-source"),
actionName: "showNoteSource",
defaultShortcuts: [],
description: t("keyboard_actions.show-note-source"),
scope: "window"
},
{
friendlyName: "Show Options",
friendlyName: t("keyboard_action_names.show-options"),
actionName: "showOptions",
defaultShortcuts: [],
description: t("keyboard_actions.show-options"),
scope: "window"
},
{
friendlyName: "Show Revisions",
friendlyName: t("keyboard_action_names.show-revisions"),
actionName: "showRevisions",
defaultShortcuts: [],
description: t("keyboard_actions.show-revisions"),
scope: "window"
},
{
friendlyName: "Show Recent Changes",
friendlyName: t("keyboard_action_names.show-recent-changes"),
actionName: "showRecentChanges",
defaultShortcuts: [],
description: t("keyboard_actions.show-recent-changes"),
scope: "window"
},
{
friendlyName: "Show SQL Console",
friendlyName: t("keyboard_action_names.show-sql-console"),
actionName: "showSQLConsole",
defaultShortcuts: ["Alt+O"],
description: t("keyboard_actions.show-sql-console"),
scope: "window"
},
{
friendlyName: "Show Backend Log",
friendlyName: t("keyboard_action_names.show-backend-log"),
actionName: "showBackendLog",
defaultShortcuts: [],
description: t("keyboard_actions.show-backend-log"),
scope: "window"
},
{
friendlyName: "Show Help",
friendlyName: t("keyboard_action_names.show-help"),
actionName: "showHelp",
defaultShortcuts: ["F1"],
description: t("keyboard_actions.show-help"),
scope: "window"
},
{
friendlyName: "Show Cheatsheet",
friendlyName: t("keyboard_action_names.show-cheatsheet"),
actionName: "showCheatsheet",
defaultShortcuts: ["Shift+F1"],
description: t("keyboard_actions.show-cheatsheet"),
@ -432,49 +432,49 @@ function getDefaultKeyboardActions() {
},
{
friendlyName: "Add Link to Text",
friendlyName: t("keyboard_action_names.add-link-to-text"),
actionName: "addLinkToText",
defaultShortcuts: ["CommandOrControl+L"],
description: t("keyboard_actions.add-link-to-text"),
scope: "text-detail"
},
{
friendlyName: "Follow Link Under Cursor",
friendlyName: t("keyboard_action_names.follow-link-under-cursor"),
actionName: "followLinkUnderCursor",
defaultShortcuts: ["CommandOrControl+Enter"],
description: t("keyboard_actions.follow-link-under-cursor"),
scope: "text-detail"
},
{
friendlyName: "Insert Date and Time to Text",
friendlyName: t("keyboard_action_names.insert-date-and-time-to-text"),
actionName: "insertDateTimeToText",
defaultShortcuts: ["Alt+T"],
description: t("keyboard_actions.insert-date-and-time-to-text"),
scope: "text-detail"
},
{
friendlyName: "Paste Markdown into Text",
friendlyName: t("keyboard_action_names.paste-markdown-into-text"),
actionName: "pasteMarkdownIntoText",
defaultShortcuts: [],
description: t("keyboard_actions.paste-markdown-into-text"),
scope: "text-detail"
},
{
friendlyName: "Cut into Note",
friendlyName: t("keyboard_action_names.cut-into-note"),
actionName: "cutIntoNote",
defaultShortcuts: [],
description: t("keyboard_actions.cut-into-note"),
scope: "text-detail"
},
{
friendlyName: "Add Include Note to Text",
friendlyName: t("keyboard_action_names.add-include-note-to-text"),
actionName: "addIncludeNoteToText",
defaultShortcuts: [],
description: t("keyboard_actions.add-include-note-to-text"),
scope: "text-detail"
},
{
friendlyName: "Edit Read-Only Note",
friendlyName: t("keyboard_action_names.edit-read-only-note"),
actionName: "editReadOnlyNote",
defaultShortcuts: [],
description: t("keyboard_actions.edit-readonly-note"),
@ -486,14 +486,14 @@ function getDefaultKeyboardActions() {
},
{
friendlyName: "Add New Label",
friendlyName: t("keyboard_action_names.add-new-label"),
actionName: "addNewLabel",
defaultShortcuts: ["Alt+L"],
description: t("keyboard_actions.add-new-label"),
scope: "window"
},
{
friendlyName: "Add New Relation",
friendlyName: t("keyboard_action_names.add-new-relation"),
actionName: "addNewRelation",
defaultShortcuts: ["Alt+R"],
description: t("keyboard_actions.create-new-relation"),
@ -505,7 +505,7 @@ function getDefaultKeyboardActions() {
},
{
friendlyName: "Toggle Ribbon Tab Classic Editor",
friendlyName: t("keyboard_action_names.toggle-ribbon-tab-classic-editor"),
actionName: "toggleRibbonTabClassicEditor",
defaultShortcuts: [],
description: t("keyboard_actions.toggle-classic-editor-toolbar"),
@ -513,42 +513,42 @@ function getDefaultKeyboardActions() {
},
{
actionName: "toggleRibbonTabBasicProperties",
friendlyName: "Toggle Ribbon Tab Basic Properties",
friendlyName: t("keyboard_action_names.toggle-ribbon-tab-basic-properties"),
defaultShortcuts: [],
description: t("keyboard_actions.toggle-basic-properties"),
scope: "window"
},
{
actionName: "toggleRibbonTabBookProperties",
friendlyName: "Toggle Ribbon Tab Book Properties",
friendlyName: t("keyboard_action_names.toggle-ribbon-tab-book-properties"),
defaultShortcuts: [],
description: t("keyboard_actions.toggle-book-properties"),
scope: "window"
},
{
actionName: "toggleRibbonTabFileProperties",
friendlyName: "Toggle Ribbon Tab File Properties",
friendlyName: t("keyboard_action_names.toggle-ribbon-tab-file-properties"),
defaultShortcuts: [],
description: t("keyboard_actions.toggle-file-properties"),
scope: "window"
},
{
actionName: "toggleRibbonTabImageProperties",
friendlyName: "Toggle Ribbon Tab Image Properties",
friendlyName: t("keyboard_action_names.toggle-ribbon-tab-image-properties"),
defaultShortcuts: [],
description: t("keyboard_actions.toggle-image-properties"),
scope: "window"
},
{
actionName: "toggleRibbonTabOwnedAttributes",
friendlyName: "Toggle Ribbon Tab Owned Attributes",
friendlyName: t("keyboard_action_names.toggle-ribbon-tab-owned-attributes"),
defaultShortcuts: ["Alt+A"],
description: t("keyboard_actions.toggle-owned-attributes"),
scope: "window"
},
{
actionName: "toggleRibbonTabInheritedAttributes",
friendlyName: "Toggle Ribbon Tab Inherited Attributes",
friendlyName: t("keyboard_action_names.toggle-ribbon-tab-inherited-attributes"),
defaultShortcuts: [],
description: t("keyboard_actions.toggle-inherited-attributes"),
scope: "window"
@ -556,35 +556,35 @@ function getDefaultKeyboardActions() {
// TODO: Remove or change since promoted attributes have been changed.
{
actionName: "toggleRibbonTabPromotedAttributes",
friendlyName: "Toggle Ribbon Tab Promoted Attributes",
friendlyName: t("keyboard_action_names.toggle-ribbon-tab-promoted-attributes"),
defaultShortcuts: [],
description: t("keyboard_actions.toggle-promoted-attributes"),
scope: "window"
},
{
actionName: "toggleRibbonTabNoteMap",
friendlyName: "Toggle Ribbon Tab Note Map",
friendlyName: t("keyboard_action_names.toggle-ribbon-tab-note-map"),
defaultShortcuts: [],
description: t("keyboard_actions.toggle-link-map"),
scope: "window"
},
{
actionName: "toggleRibbonTabNoteInfo",
friendlyName: "Toggle Ribbon Tab Note Info",
friendlyName: t("keyboard_action_names.toggle-ribbon-tab-note-info"),
defaultShortcuts: [],
description: t("keyboard_actions.toggle-note-info"),
scope: "window"
},
{
actionName: "toggleRibbonTabNotePaths",
friendlyName: "Toggle Ribbon Tab Note Paths",
friendlyName: t("keyboard_action_names.toggle-ribbon-tab-note-paths"),
defaultShortcuts: [],
description: t("keyboard_actions.toggle-note-paths"),
scope: "window"
},
{
actionName: "toggleRibbonTabSimilarNotes",
friendlyName: "Toggle Ribbon Tab Similar Notes",
friendlyName: t("keyboard_action_names.toggle-ribbon-tab-similar-notes"),
defaultShortcuts: [],
description: t("keyboard_actions.toggle-similar-notes"),
scope: "window"
@ -596,126 +596,126 @@ function getDefaultKeyboardActions() {
{
actionName: "toggleRightPane",
friendlyName: "Toggle Right Pane",
friendlyName: t("keyboard_action_names.toggle-right-pane"),
defaultShortcuts: [],
description: t("keyboard_actions.toggle-right-pane"),
scope: "window"
},
{
actionName: "printActiveNote",
friendlyName: "Print Active Note",
friendlyName: t("keyboard_action_names.print-active-note"),
defaultShortcuts: [],
description: t("keyboard_actions.print-active-note"),
scope: "window"
},
{
actionName: "exportAsPdf",
friendlyName: "Export Active Note as PDF",
friendlyName: t("keyboard_action_names.export-active-note-as-pdf"),
defaultShortcuts: [],
description: t("keyboard_actions.export-as-pdf"),
scope: "window"
},
{
actionName: "openNoteExternally",
friendlyName: "Open Note Externally",
friendlyName: t("keyboard_action_names.open-note-externally"),
defaultShortcuts: [],
description: t("keyboard_actions.open-note-externally"),
scope: "window"
},
{
actionName: "renderActiveNote",
friendlyName: "Render Active Note",
friendlyName: t("keyboard_action_names.render-active-note"),
defaultShortcuts: [],
description: t("keyboard_actions.render-active-note"),
scope: "window"
},
{
actionName: "runActiveNote",
friendlyName: "Run Active Note",
friendlyName: t("keyboard_action_names.run-active-note"),
defaultShortcuts: ["CommandOrControl+Enter"],
description: t("keyboard_actions.run-active-note"),
scope: "code-detail"
},
{
actionName: "toggleNoteHoisting",
friendlyName: "Toggle Note Hoisting",
friendlyName: t("keyboard_action_names.toggle-note-hoisting"),
defaultShortcuts: ["Alt+H"],
description: t("keyboard_actions.toggle-note-hoisting"),
scope: "window"
},
{
actionName: "unhoist",
friendlyName: "Unhoist Note",
friendlyName: t("keyboard_action_names.unhoist-note"),
defaultShortcuts: ["Alt+U"],
description: t("keyboard_actions.unhoist"),
scope: "window"
},
{
actionName: "reloadFrontendApp",
friendlyName: "Reload Frontend App",
friendlyName: t("keyboard_action_names.reload-frontend-app"),
defaultShortcuts: ["F5", "CommandOrControl+R"],
description: t("keyboard_actions.reload-frontend-app"),
scope: "window"
},
{
actionName: "openDevTools",
friendlyName: "Open Developer Tools",
friendlyName: t("keyboard_action_names.open-developer-tools"),
defaultShortcuts: isElectron ? ["CommandOrControl+Shift+I"] : [],
description: t("keyboard_actions.open-dev-tools"),
scope: "window"
},
{
actionName: "findInText",
friendlyName: "Find In Text",
friendlyName: t("keyboard_action_names.find-in-text"),
defaultShortcuts: isElectron ? ["CommandOrControl+F"] : [],
description: t("keyboard_actions.find-in-text"),
scope: "window"
},
{
actionName: "toggleLeftPane",
friendlyName: "Toggle Left Pane",
friendlyName: t("keyboard_action_names.toggle-left-pane"),
defaultShortcuts: [],
description: t("keyboard_actions.toggle-left-note-tree-panel"),
scope: "window"
},
{
actionName: "toggleFullscreen",
friendlyName: "Toggle Full Screen",
friendlyName: t("keyboard_action_names.toggle-full-screen"),
defaultShortcuts: ["F11"],
description: t("keyboard_actions.toggle-full-screen"),
scope: "window"
},
{
actionName: "zoomOut",
friendlyName: "Zoom Out",
friendlyName: t("keyboard_action_names.zoom-out"),
defaultShortcuts: isElectron ? ["CommandOrControl+-"] : [],
description: t("keyboard_actions.zoom-out"),
scope: "window"
},
{
actionName: "zoomIn",
friendlyName: "Zoom In",
friendlyName: t("keyboard_action_names.zoom-in"),
description: t("keyboard_actions.zoom-in"),
defaultShortcuts: isElectron ? ["CommandOrControl+="] : [],
scope: "window"
},
{
actionName: "zoomReset",
friendlyName: "Reset Zoom Level",
friendlyName: t("keyboard_action_names.reset-zoom-level"),
description: t("keyboard_actions.reset-zoom-level"),
defaultShortcuts: isElectron ? ["CommandOrControl+0"] : [],
scope: "window"
},
{
actionName: "copyWithoutFormatting",
friendlyName: "Copy Without Formatting",
friendlyName: t("keyboard_action_names.copy-without-formatting"),
defaultShortcuts: ["CommandOrControl+Alt+C"],
description: t("keyboard_actions.copy-without-formatting"),
scope: "text-detail"
},
{
actionName: "forceSaveRevision",
friendlyName: "Force Save Revision",
friendlyName: t("keyboard_action_names.force-save-revision"),
defaultShortcuts: [],
description: t("keyboard_actions.force-save-revision"),
scope: "window"