mirror of
https://github.com/xuquan-nikkkki/FolderFile-Splitter-Plugin.git
synced 2026-07-22 05:37:28 +00:00
fix: when click 'open in new tab', open file in new tab instead of in previous tab
This commit is contained in:
parent
a4e90c17ed
commit
634bc9bf6a
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue