recent project

This commit is contained in:
2026-05-29 10:29:59 +10:00
parent 07f22bdaa1
commit c6f55ddfe1
7 changed files with 187 additions and 43 deletions

View File

@@ -88,6 +88,8 @@ export default function App(): JSX.Element {
} else if (action === 'openProject') {
const picked = await window.api.pickProjectFolder()
if (picked) await switchProject(picked)
} else if (action.startsWith('openRecent:')) {
await switchProject(action.slice('openRecent:'.length))
} else if (action === 'exportPDF') {
if (activeFilePath && activeFileContent) {
const fileName = activeFilePath.split('/').pop()?.replace(/\.md$/, '') ?? 'document'