Skip to content

Commit dda48a1

Browse files
committed
Fix capture prepend bug
1 parent 627ad68 commit dda48a1

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "quickadd",
33
"name": "QuickAdd",
4-
"version": "0.1.4",
4+
"version": "0.1.5",
55
"minAppVersion": "0.12.00",
66
"description": "Quickly add new pages or content to your vault.",
77
"author": "Christian B. B. Houmann",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "quickadd",
3-
"version": "0.1.4",
3+
"version": "0.1.5",
44
"description": "Quickly add new pages or content to your vault.",
55
"main": "main.js",
66
"scripts": {

src/formatters/captureChoiceFormatter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class CaptureChoiceFormatter extends CompleteFormatter {
3333
const formatted = await super.formatFileContent(input);
3434

3535
if (this.choice.prepend)
36-
return `${this.fileContent}\n${input}`
36+
return `${this.fileContent}\n${formatted}`
3737

3838
if (this.choice.insertAfter.enabled) {
3939
const targetRegex = new RegExp(`\s*${this.choice.insertAfter.after}\s*`)

versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"0.1.4": "0.12.4"
2+
"0.1.5": "0.12.4"
33
}

0 commit comments

Comments
 (0)