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", "export-as-pdf": "Export the current note as a PDF",
"toggle-zen-mode": "Enables/disables the zen mode (minimal UI for more focused editing)" "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": { "login": {
"title": "Login", "title": "Login",
"heading": "Trilium Login", "heading": "Trilium Login",

View File

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