From ca0de421ac774511e964c871a14574239e5571e9 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 24 Jan 2024 12:24:44 +0100 Subject: [PATCH] focus on md preview --- libs/remix-ui/workspace/src/lib/actions/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/remix-ui/workspace/src/lib/actions/index.ts b/libs/remix-ui/workspace/src/lib/actions/index.ts index 1395ae06d4..5bdd0df427 100644 --- a/libs/remix-ui/workspace/src/lib/actions/index.ts +++ b/libs/remix-ui/workspace/src/lib/actions/index.ts @@ -402,6 +402,7 @@ export const handleClickFile = async (path: string, type: 'file' | 'folder' | 'g if (type === 'file' && path.endsWith('.md')) { // just opening the preview await plugin.call('doc-viewer' as any, 'viewDocs', [path]) + plugin.call('tabs' as any, 'focus', 'doc-viewer') } else { await plugin.fileManager.open(path) dispatch(focusElement([{ key: path, type }]))