The plugin doesn't contain the full file path, so we have to manipulate itFixes #1149 (#1162)

This commit is contained in:
Aaron Powell
2026-03-25 09:40:11 +11:00
committed by GitHub
parent 9856b62b88
commit 2528c0e755

View File

@@ -1180,8 +1180,18 @@ function renderLocalPluginModal(
// Add click handlers to plugin items
modalContent.querySelectorAll(".collection-item").forEach((el) => {
el.addEventListener("click", () => {
const path = (el as HTMLElement).dataset.path;
let path = (el as HTMLElement).dataset.path;
const itemType = (el as HTMLElement).dataset.type;
switch (itemType) {
case "agent":
path = path.replace(".md", ".agent.md");
break;
case "skill":
path = `${path}/SKILL.md`;
break;
}
if (path && itemType) {
openFileModal(path, itemType);
}