This commit is contained in:
zadam
2023-03-20 23:11:32 +01:00
parent 95e38a037b
commit a24c56a9d5
2 changed files with 14 additions and 2 deletions

View File

@@ -120,4 +120,12 @@ export default class RootCommandExecutor extends Component {
await appContext.tabManager.openContextWithNote(notePath, { activate: true, viewMode: 'source' });
}
}
async showAttachmentsCommand() {
const notePath = appContext.tabManager.getActiveContextNotePath();
if (notePath) {
await appContext.tabManager.openContextWithNote(notePath, { activate: true, viewMode: 'attachments' });
}
}
}