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/15975
Vanessa09bad9b446b4
diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.tsindex 9d15f728b4..5a42836449 100644--- a/app/src/layout/dock/Files.ts+++ b/app/src/layout/dock/Files.ts@@ -338,36 +338,36 @@ export class Files extends Model {// Shift+click 多选文档event.preventDefault();event.stopPropagation();-+if (!this.lastClickedFileItem) {this.lastClickedFileItem = target;this.setCurrent(target, false);return;}-+// 获取所有文档项const allFiles = Array.from(this.element.querySelectorAll('li[data-type="navigation-file"]'));-+// 获取起始和结束索引const startIndex = allFiles.indexOf(this.lastClickedFileItem);const endIndex = allFiles.indexOf(target);-+if (startIndex === -1 || endIndex === -1) return;-+// 确定选择范围const start = Math.min(startIndex, endIndex);const end = Math.max(startIndex, endIndex);-+// 清除现有选择allFiles.forEach(file => {(file as HTMLElement).classList.remove("b3-list-item--focus");});-+// 添加新选择for (let i = start; i <= end; i++) {(allFiles[i] as HTMLElement).classList.add("b3-list-item--focus");}-+needFocus = false;return;} else {@@ -390,7 +390,7 @@ export class Files extends Model {target.removeAttribute("data-opening");}});- } else if (!event.altKey && !isNotCtrl(event) && event.shiftKey) {+ } else if (!event.altKey && isOnlyMeta(event) && event.shiftKey) {openFileById({app: options.app,id: target.getAttribute("data-node-id"),