An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/12020
Vanessa3ba4eb755f1e
diff --git a/app/src/protyle/hint/index.ts b/app/src/protyle/hint/index.tsindex a7f8354fea..121cdf3d8c 100644--- a/app/src/protyle/hint/index.ts+++ b/app/src/protyle/hint/index.ts@@ -339,7 +339,13 @@ ${unicode2Emoji(emoji.unicode)}</button>`;<span class="b3-list-item__text">${window.siyuan.languages.newFile} <mark>${response.data.k}</mark></span></div></button>`;}response.data.blocks.forEach((item: IBlock, index: number) => {- const blockRefHTML = `<span data-type="block-ref" data-id="${item.id}" data-subtype="s">${oldValue}</span>`;+ let blockRefHTML;+ if (source === "av") {+ // av 搜索时需要获取值 https://github.com/siyuan-note/siyuan/issues/12020+ blockRefHTML = `<span data-type="block-ref" data-id="${item.id}" data-subtype="s">${item.name || item.refText.replace(new RegExp(Constants.ZWSP, "g"), "")}</span>`;+ } else {+ blockRefHTML = `<span data-type="block-ref" data-id="${item.id}" data-subtype="s">${oldValue}</span>`;+ }searchHTML += `<button style="width: calc(100% - 16px)" class="b3-list-item b3-list-item--two${index === 0 ? " b3-list-item--focus" : ""}" data-value="${encodeURIComponent(blockRefHTML)}">${genHintItemHTML(item)}</button>`;@@ -481,7 +487,10 @@ ${genHintItemHTML(item)}updateAttrViewCellAnimation(cellElement, {type: "block",isDetached: false,- block: {content: tempElement.textContent, id: sourceId}+ block: {+ content: tempElement.textContent,+ id: sourceId+ }});}return;