ancillary type widget

This commit is contained in:
zadam
2023-02-15 14:32:12 +01:00
parent b1e2b5ba8e
commit 520ffecd36
11 changed files with 134 additions and 9 deletions

View File

@@ -117,11 +117,19 @@ export default class RootCommandExecutor extends Component {
});
}
async showNoteSourceEvent() {
async showNoteSourceCommand() {
const notePath = appContext.tabManager.getActiveContextNotePath();
if (notePath) {
await appContext.tabManager.openContextWithNote(notePath, { activate: true, viewMode: 'source' });
}
}
async showNoteAncillariesCommand() {
const notePath = appContext.tabManager.getActiveContextNotePath();
if (notePath) {
await appContext.tabManager.openContextWithNote(notePath, { activate: true, viewMode: 'ancillaries' });
}
}
}