Keyboard-action counterparts of the pane buttons. The buttons bubble closeThisNoteSplit /
moveThisNoteSplit up from the pane they sit in; these are dispatched from appContext,
which has no pane to start from and so distributes them downwards as events instead.
Dismisses the quick-edit popup, for something within it that has sent the reader elsewhere. Does nothing if it isn't open.
Called upon when attempting to retrieve the content element of a NoteContext. Generally should not be invoked manually, as it is used by NoteContext.getContentElement.
OptionalinsertNewlineAtTop?: booleanWhen set, instead of merely focusing the editor, an empty paragraph is inserted at the very top of the document and the cursor is placed there (Notion-like behavior when pressing Enter in the title). Only honored by text notes. If the first block is already an empty paragraph, the cursor is placed in it rather than stacking another empty paragraph.
Opens a note in the quick-edit popup. A viewScope carrying an attachmentId opens that attachment instead of the note itself.
Works only in the electron context menu.
Shows the given tab of the right pane, opening the pane if it is closed.
OptionalexpandWidgetId?: stringThe id of a widget of that tab (see RightPanelWidget) to expand, so that an entry point
aimed at one widget doesn't land on it collapsed.
Optionalpeek?: booleanPeek the pane rather than dock it when it is closed, for an entry point that is only a glance at the tab and shouldn't reflow the content around it. An already docked pane stays docked.
Sets the active Screen (e.g. to toggle the tree sidebar). It triggers the EventMappings.activeScreenChanged event, but only if the provided screen is different than the current one.
The keys represent the different commands that can be triggered via AppContext#triggerCommand (first argument), and the values represent the data or arguments definition of the given command. All data for commands must extend CommandData.