From 7026bd4ab50a0340d5014fc46c5079b7540a6109 Mon Sep 17 00:00:00 2001 From: PJ Date: Wed, 4 Oct 2023 00:13:42 -0400 Subject: [PATCH] Support alt- and right-click for tags property --- manifest.json | 2 +- src/plugin.js | 9 +++++++++ versions.json | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index fb4c268..1fe258d 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "name": "Tag Wrangler", "author": "PJ Eby", "authorUrl": "https://github.com/pjeby", - "version": "0.6.0", + "version": "0.6.1", "minAppVersion": "1.2.8", "description": "Rename, merge, toggle, and search tags from the tag pane", "fundingUrl": "https://dirtsimple.org/tips/tag-wrangler", diff --git a/src/plugin.js b/src/plugin.js index 61dd273..c601bfb 100644 --- a/src/plugin.js +++ b/src/plugin.js @@ -79,6 +79,15 @@ export default class TagWrangler extends Plugin { }) ); + this.addChild( + // Property view + new TagPageUIHandler(this, { + hoverSource: "preview", selector: '.metadata-property[data-property-key="tags"] .multi-select-pill-content', + container: ".metadata-properties", + toTag(el) { return el.textContent; } + }) + ); + this.addChild( // Edit mode new TagPageUIHandler(this, { diff --git a/versions.json b/versions.json index 0b92cc5..b55fd9d 100644 --- a/versions.json +++ b/versions.json @@ -1,4 +1,5 @@ { + "0.6.1": "1.2.8", "0.6.0": "1.2.8", "0.5.13": "1.2.8", "0.5.12": "1.2.8",