From 85691fada23f9929ce6f2bd82d3ae198ffdcd30b Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Fri, 9 Jul 2021 02:17:21 +0200 Subject: [PATCH] Replace delim char with colons on copying tags --- ts/editor/TagEditor.svelte | 2 +- ts/editor/TagInput.svelte | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ts/editor/TagEditor.svelte b/ts/editor/TagEditor.svelte index 04166a625..6839f8af9 100644 --- a/ts/editor/TagEditor.svelte +++ b/ts/editor/TagEditor.svelte @@ -350,7 +350,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html function copySelectedTags() { const content = tags .filter((tag) => tag.selected) - .map((tag) => tag.name) + .map((tag) => replaceWithColon(tag.name)) .join("\n"); copyToClipboard(content); deselect(); diff --git a/ts/editor/TagInput.svelte b/ts/editor/TagInput.svelte index f5ec27cd7..89d586be4 100644 --- a/ts/editor/TagInput.svelte +++ b/ts/editor/TagInput.svelte @@ -4,7 +4,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html -->