fix: open vault files externally

This commit is contained in:
lucaronin
2026-04-29 14:15:17 +02:00
parent 0e8c8fb61a
commit dcd0d73848
10 changed files with 89 additions and 37 deletions

View File

@@ -39,10 +39,10 @@ export function useFileActions({
}, [setToastMessage])
const openExternalFile = useCallback((path: string) => {
void openLocalFile(path).catch((error) => {
void openLocalFile(path, vaultPath).catch((error) => {
setToastMessage(fileActionErrorMessage('open file', error))
})
}, [setToastMessage])
}, [setToastMessage, vaultPath])
const resolveFolderPath = useCallback((folderPath: string) => (
folderAbsolutePath({ vaultPath, folderPath })