feat(keyboard_actions): add shortcut for creating new split

This commit is contained in:
Panagiotis Papadopoulos 2025-02-24 08:05:50 +01:00
parent b91b243432
commit 53225c02b4
3 changed files with 11 additions and 1 deletions

View File

@ -213,6 +213,10 @@ export default class Entrypoints extends Component {
this.hideAllPopups(); this.hideAllPopups();
} }
createNewSplitCommand() {
appContext.triggerCommand("openNewNoteSplit");
}
async forceSaveRevisionCommand() { async forceSaveRevisionCommand() {
const noteId = appContext.tabManager.getActiveContextNoteId(); const noteId = appContext.tabManager.getActiveContextNoteId();

View File

@ -304,7 +304,12 @@ function getDefaultKeyboardActions() {
description: t("keyboard_actions.last-tab"), description: t("keyboard_actions.last-tab"),
scope: "window" scope: "window"
}, },
{
actionName: "createNewSplit",
defaultShortcuts: [],
description: t("keyboard_actions.create-new-split"),
scope: "window"
},
{ {
separator: t("keyboard_actions.dialogs") separator: t("keyboard_actions.dialogs")
}, },

View File

@ -46,6 +46,7 @@ const enum KeyboardActionNamesEnum {
eigthTab, eigthTab,
ninthTab, ninthTab,
lastTab, lastTab,
createNewSplit,
showNoteSource, showNoteSource,
showOptions, showOptions,
showRevisions, showRevisions,