feat: added proper annotation link

This commit is contained in:
huaqo
2026-04-25 13:58:03 +02:00
parent eba9a2c113
commit aabb25c733
+2 -2
View File
@@ -3,7 +3,7 @@ import { ZoteroClient } from "./ZoteroClient";
import { loadAnnotations, renderZoteroAnnotation } from "./Utils"
import { Settings } from "./Settings";
const ZOTERO_BASE_URL = "zotero://select/library/items/";
const ZOTERO_BASE_URL = "zotero://open-pdf/library/items/";
export class AnnotationModal extends FuzzySuggestModal<ZoteroItem> {
private client: ZoteroClient;
@@ -45,7 +45,7 @@ export class AnnotationModal extends FuzzySuggestModal<ZoteroItem> {
let citation = item.parentItem.citation ?? "";
if (this.settings.link) {
citation = `[${citation}](${ZOTERO_BASE_URL}${item.parentItemKey})`;
citation = `[${citation}](${ZOTERO_BASE_URL}${item.attachmentItemKey}?annotation=${item.key})`;
}
this.onChoose(`"${item.annotationText}" ${citation}`);