diff --git a/src/components/File.tsx b/src/components/File.tsx index 3643cae..f37d725 100644 --- a/src/components/File.tsx +++ b/src/components/File.tsx @@ -121,6 +121,7 @@ const File = ({ file, useFileTreeStore, plugin, deleteFile }: Props) => { menu.addItem((item) => { item.setTitle("Open in new tab"); item.onClick(() => { + plugin.app.workspace.openLinkText(file.path, file.path, true); selectFile(file); }); });