mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
feat(keyboard_actions): add shortcut for creating new split
This commit is contained in:
parent
b91b243432
commit
53225c02b4
@ -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();
|
||||||
|
|
||||||
|
@ -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")
|
||||||
},
|
},
|
||||||
|
@ -46,6 +46,7 @@ const enum KeyboardActionNamesEnum {
|
|||||||
eigthTab,
|
eigthTab,
|
||||||
ninthTab,
|
ninthTab,
|
||||||
lastTab,
|
lastTab,
|
||||||
|
createNewSplit,
|
||||||
showNoteSource,
|
showNoteSource,
|
||||||
showOptions,
|
showOptions,
|
||||||
showRevisions,
|
showRevisions,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user