This commit is contained in:
parent
8834cd39a5
commit
92cbdc1987
1 changed files with 2 additions and 1 deletions
|
@ -12,6 +12,7 @@ import {Wnd} from "../layout/Wnd";
|
|||
import {getAllWnds} from "../layout/getAll";
|
||||
import {Asset} from "../asset";
|
||||
import {writeText} from "../protyle/util/compatibility";
|
||||
import {getAssetName, pathPosix} from "../util/pathName";
|
||||
|
||||
const closeMenu = (tab: Tab) => {
|
||||
const unmodifiedTabs: Tab[] = [];
|
||||
|
@ -213,7 +214,7 @@ export const initTabMenu = (app: App, tab: Tab) => {
|
|||
label: window.siyuan.languages.copy,
|
||||
icon: "iconCopy",
|
||||
click() {
|
||||
writeText(`[${model.parent.title}](${model.path})`);
|
||||
writeText(`[${getAssetName(model.parent.title)}${pathPosix().extname(model.path)}](${model.path})`);
|
||||
}
|
||||
}).element);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue