From 9dd6ec33afe7bcfc95d6d4c70b9bb0915fa5828d Mon Sep 17 00:00:00 2001 From: blindmansion Date: Sun, 8 Sep 2024 16:06:51 -0400 Subject: [PATCH] Fix absolute file path issue --- packages/cannoli-plugin/src/vault_interface.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cannoli-plugin/src/vault_interface.ts b/packages/cannoli-plugin/src/vault_interface.ts index 5891325..7c66f4d 100644 --- a/packages/cannoli-plugin/src/vault_interface.ts +++ b/packages/cannoli-plugin/src/vault_interface.ts @@ -114,9 +114,9 @@ export class VaultInterface implements FileManager { return `# ${reference.name}\nMock note content`; } - // If the note is formatted with the path, get rid of the path and just use the note name + // If the note is formatted with the path, get rid of the display name and just use the path if (reference.name.includes("|")) { - reference.name = reference.name.split("|")[1]; + reference.name = reference.name.split("|")[0]; } // Get the file