open ocr/tts/transcribe results in dual panels from file browser
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -417,7 +417,7 @@ export const useFileBrowserApp = (basePath: string, rootOverride?: string, initi
|
||||
const { audioPath } = await files.tts(filePath, { saveNextTo: true });
|
||||
toast.dismiss(toastId);
|
||||
refresh();
|
||||
setSearchParams({ view: audioPath });
|
||||
setSearchParams({ view: filePath, ephemeral: audioPath });
|
||||
} catch {
|
||||
toast.error('Failed to generate speech audio', { id: toastId });
|
||||
}
|
||||
@@ -430,7 +430,7 @@ export const useFileBrowserApp = (basePath: string, rootOverride?: string, initi
|
||||
const { ocrPath } = await files.ocr(filePath, { saveNextTo: true });
|
||||
toast.dismiss(toastId);
|
||||
refresh();
|
||||
setSearchParams({ view: ocrPath });
|
||||
setSearchParams({ view: filePath, ephemeral: ocrPath });
|
||||
} catch {
|
||||
toast.error('Failed to extract text from image', { id: toastId });
|
||||
}
|
||||
@@ -443,7 +443,7 @@ export const useFileBrowserApp = (basePath: string, rootOverride?: string, initi
|
||||
const { transcriptionPath } = await files.transcribe(filePath, { saveNextTo: true });
|
||||
toast.dismiss(toastId);
|
||||
refresh();
|
||||
setSearchParams({ view: transcriptionPath });
|
||||
setSearchParams({ view: filePath, ephemeral: transcriptionPath });
|
||||
} catch {
|
||||
toast.error('Failed to transcribe audio', { id: toastId });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user