From dda48a140d323603ce90a4241f6df94c7356c258 Mon Sep 17 00:00:00 2001 From: Christian Bager Bach Houmann Date: Sun, 13 Jun 2021 17:15:41 +0200 Subject: [PATCH] Fix capture prepend bug --- manifest.json | 2 +- package.json | 2 +- src/formatters/captureChoiceFormatter.ts | 2 +- versions.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index d5df2a3..e9f8d8d 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "quickadd", "name": "QuickAdd", - "version": "0.1.4", + "version": "0.1.5", "minAppVersion": "0.12.00", "description": "Quickly add new pages or content to your vault.", "author": "Christian B. B. Houmann", diff --git a/package.json b/package.json index b71e5da..7a89a8c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "quickadd", - "version": "0.1.4", + "version": "0.1.5", "description": "Quickly add new pages or content to your vault.", "main": "main.js", "scripts": { diff --git a/src/formatters/captureChoiceFormatter.ts b/src/formatters/captureChoiceFormatter.ts index dfcdf6b..bed1e90 100644 --- a/src/formatters/captureChoiceFormatter.ts +++ b/src/formatters/captureChoiceFormatter.ts @@ -33,7 +33,7 @@ export class CaptureChoiceFormatter extends CompleteFormatter { const formatted = await super.formatFileContent(input); if (this.choice.prepend) - return `${this.fileContent}\n${input}` + return `${this.fileContent}\n${formatted}` if (this.choice.insertAfter.enabled) { const targetRegex = new RegExp(`\s*${this.choice.insertAfter.after}\s*`) diff --git a/versions.json b/versions.json index 23e4973..0f8ee38 100644 --- a/versions.json +++ b/versions.json @@ -1,3 +1,3 @@ { - "0.1.4": "0.12.4" + "0.1.5": "0.12.4" }