mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 16:56:34 +01:00
ancillary type widget
This commit is contained in:
@@ -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' });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user