From 0bb2dd5a916296f43c181bef00dff54318bd6753 Mon Sep 17 00:00:00 2001 From: Lost Paul <70213368+LostPaul@users.noreply.github.com> Date: Sat, 13 Jan 2024 21:18:32 +0100 Subject: [PATCH] Copy folder note Obsidian url --- src/Commands.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Commands.ts b/src/Commands.ts index 98c80d0..6951f73 100644 --- a/src/Commands.ts +++ b/src/Commands.ts @@ -299,6 +299,7 @@ export class Commands { deleteFolderNote(this.plugin, folderNote); }); }); + subMenu.addItem((item) => { item.setTitle('Open folder note') .setIcon('chevron-right-square') @@ -306,6 +307,15 @@ export class Commands { openFolderNote(this.plugin, folderNote); }); }); + + subMenu.addItem((item) => { + item.setTitle('Copy Obsidian URL') + .setIcon('link') + .onClick(() => { + // @ts-ignore + this.app.copyObsidianUrl(folderNote); + }); + }); } else { subMenu.addItem((item) => { item.setTitle('Create markdown folder note')