An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Ignore case when filtering AI actions https://github.com/siyuan-note/siyuan/issues/20188
Daniele4664bdc252b
diff --git a/app/src/ai/actions.ts b/app/src/ai/actions.tsindex fde71c682c..47c3e31225 100644--- a/app/src/ai/actions.ts+++ b/app/src/ai/actions.ts@@ -113,15 +113,16 @@ const customDialog = (protyle: IProtyle, elements: HTMLElement[], range?: Range)};const filterAI = (element: HTMLElement, inputElement: HTMLInputElement) => {+ const keyword = inputElement.value.trim().toLowerCase();element.querySelectorAll(".b3-list-item").forEach(item => {- if (item.textContent.indexOf(inputElement.value) > -1) {+ if (item.textContent.toLowerCase().indexOf(keyword) > -1) {item.classList.remove("fn__none");} else {item.classList.add("fn__none");}});element.querySelectorAll(".b3-menu__separator").forEach(item => {- if (inputElement.value) {+ if (keyword) {item.classList.add("fn__none");} else {item.classList.remove("fn__none");