|
|
@ -402,6 +402,7 @@ export const handleClickFile = async (path: string, type: 'file' | 'folder' | 'g |
|
|
|
if (type === 'file' && path.endsWith('.md')) { |
|
|
|
if (type === 'file' && path.endsWith('.md')) { |
|
|
|
// just opening the preview
|
|
|
|
// just opening the preview
|
|
|
|
await plugin.call('doc-viewer' as any, 'viewDocs', [path]) |
|
|
|
await plugin.call('doc-viewer' as any, 'viewDocs', [path]) |
|
|
|
|
|
|
|
plugin.call('tabs' as any, 'focus', 'doc-viewer') |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
await plugin.fileManager.open(path) |
|
|
|
await plugin.fileManager.open(path) |
|
|
|
dispatch(focusElement([{ key: path, type }])) |
|
|
|
dispatch(focusElement([{ key: path, type }])) |
|
|
|