From 79d2441a1f879c31dbd4136a664f17e4b2fe992c Mon Sep 17 00:00:00 2001 From: Jesse Piascik Date: Sat, 10 Aug 2024 22:06:19 -0400 Subject: [PATCH] Fix images with spaces in name not displaying --- .imdone/config.yml | 5 +++++ lib/card.js | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.imdone/config.yml b/.imdone/config.yml index b4780f24..93582357 100644 --- a/.imdone/config.yml +++ b/.imdone/config.yml @@ -53,6 +53,11 @@ lists: hidden: true ignore: true id: jea6b3hlxv87stb + - name: Past Due Reminders + hidden: false + ignore: false + id: jea613h4lzjqljbo + filter: 'remind = /./ and remind < "${now}" and list != READY and list != DONE' settings: openIn: code journalType: Folder diff --git a/lib/card.js b/lib/card.js index 45443f88..2fd668db 100644 --- a/lib/card.js +++ b/lib/card.js @@ -296,7 +296,7 @@ module.exports = function newCard(task, _project, dontParse) { imagePath = _path.join( _path.dirname(this.fullPath), imagePath - ) + ).replace(/ /g, '%20') const imageURL = `file://${imagePath}` return p1 + imageURL + p3 } diff --git a/package-lock.json b/package-lock.json index 45fa53c0..501c4760 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "imdone-core", - "version": "1.44.4", + "version": "1.44.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "imdone-core", - "version": "1.44.4", + "version": "1.44.5", "license": "MIT", "dependencies": { "@inquirer/editor": "^1.2.12", diff --git a/package.json b/package.json index bcffeb6d..27ae99aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "imdone-core", - "version": "1.44.4", + "version": "1.44.5", "description": "imdone-core", "main": "index.js", "scripts": {