From 01a12906d5c4f98e47b7dca14a0e14e079b16c11 Mon Sep 17 00:00:00 2001 From: Victor Araujo Date: Sun, 15 Feb 2026 18:17:26 -0300 Subject: [PATCH] fix: remove redundant # prefix from tag display The TaskNotes HTTP API returns tags with # prefix (from Obsidian's metadata cache). The CLI was unconditionally prepending another #, resulting in ##task display. Just display the API value as-is. --- lib/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils.js b/lib/utils.js index ed3ae99..245c691 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -42,7 +42,7 @@ function formatTask(task, options = {}) { // Tags if (task.tags && task.tags.length > 0) { - output += ` ${colors.dim('Tags:')} ${task.tags.map(tag => colors.highlight(`#${tag}`)).join(' ')}\n`; + output += ` ${colors.dim('Tags:')} ${task.tags.map(tag => colors.highlight(tag)).join(' ')}\n`; } // Contexts @@ -125,7 +125,7 @@ function formatPreview(parsed) { // Tags if (parsed.tags && parsed.tags.length > 0) { - output += `${colors.highlight('Tags:')} ${parsed.tags.map(tag => colors.info(`#${tag}`)).join(' ')}\n`; + output += `${colors.highlight('Tags:')} ${parsed.tags.map(tag => colors.info(tag)).join(' ')}\n`; } // Contexts