feat(ocr): add an option to display OCR text

This commit is contained in:
Elian Doran
2025-07-26 12:08:04 +03:00
parent c55aa6ee88
commit 422d318dac
7 changed files with 284 additions and 1 deletions

View File

@@ -146,6 +146,19 @@ export default class RootCommandExecutor extends Component {
}
}
async showNoteOCRTextCommand() {
const notePath = appContext.tabManager.getActiveContextNotePath();
if (notePath) {
await appContext.tabManager.openTabWithNoteWithHoisting(notePath, {
activate: true,
viewScope: {
viewMode: "ocr"
}
});
}
}
async showAttachmentsCommand() {
const notePath = appContext.tabManager.getActiveContextNotePath();