diff --git a/src/public/app/components/root_command_executor.ts b/src/public/app/components/root_command_executor.ts index 899bfebd2..49ea7d878 100644 --- a/src/public/app/components/root_command_executor.ts +++ b/src/public/app/components/root_command_executor.ts @@ -90,6 +90,10 @@ export default class RootCommandExecutor extends Component { await appContext.tabManager.openTabWithNoteWithHoisting("_backendLog", { activate: true }); } + async showHelpCommand() { + await appContext.tabManager.openTabWithNoteWithHoisting("_help", { activate: true }); + } + async showLaunchBarSubtreeCommand() { const rootNote = utils.isMobile() ? "_lbMobileRoot" : "_lbRoot"; await this.showAndHoistSubtree(rootNote); diff --git a/src/public/app/widgets/buttons/global_menu.ts b/src/public/app/widgets/buttons/global_menu.ts index f620108eb..e34313bfc 100644 --- a/src/public/app/widgets/buttons/global_menu.ts +++ b/src/public/app/widgets/buttons/global_menu.ts @@ -226,6 +226,12 @@ const TPL = ` +
Sync status will be known once the next sync attempt starts.
Click to trigger sync now.
", diff --git a/src/services/keyboard_actions.ts b/src/services/keyboard_actions.ts index 8d96a915f..21745878d 100644 --- a/src/services/keyboard_actions.ts +++ b/src/services/keyboard_actions.ts @@ -344,6 +344,12 @@ function getDefaultKeyboardActions() { description: t("keyboard_actions.show-help"), scope: "window" }, + { + actionName: "showCheatsheet", + defaultShortcuts: ["Shift+F1"], + description: t("keyboard_actions.show-cheatsheet"), + scope: "window" + }, { separator: t("keyboard_actions.text-note-operations") diff --git a/src/services/keyboard_actions_interface.ts b/src/services/keyboard_actions_interface.ts index 68d708309..9eb3539bd 100644 --- a/src/services/keyboard_actions_interface.ts +++ b/src/services/keyboard_actions_interface.ts @@ -51,6 +51,7 @@ const enum KeyboardActionNamesEnum { showRecentChanges, showSQLConsole, showBackendLog, + showCheatsheet, showHelp, addLinkToText, followLinkUnderCursor, diff --git a/translations/en/server.json b/translations/en/server.json index 172228171..0560c5976 100644 --- a/translations/en/server.json +++ b/translations/en/server.json @@ -88,10 +88,11 @@ "reset-zoom-level": "Reset zoom level", "copy-without-formatting": "Copy selected text without formatting", "force-save-revision": "Force creating / saving new note revision of the active note", - "show-help": "Shows built-in Help / cheatsheet", + "show-help": "Shows the built-in User Guide", "toggle-book-properties": "Toggle Book Properties", "toggle-classic-editor-toolbar": "Toggle the Formatting tab for the editor with fixed toolbar", - "export-as-pdf": "Exports the current note as a PDF" + "export-as-pdf": "Exports the current note as a PDF", + "show-cheatsheet": "Shows a modal with common keyboard operations" }, "login": { "title": "Login",