feat(info): 信息面板 UI 重做 + 双向批量关联 + 代码块内全选复制

1. 信息面板 UI 重做:设计 token 统一、lucide 图标、分区小节、星标/标签/关联 chip 化
2. 关联文档升级:新增 doc:link-batch IPC,A↔B 双向写入 links;面板支持快速双向关联 + 批量勾选关联/解除
3. 代码块内全选复制:Ctrl+A 在代码块内仅全选该代码块(TyporaKeys selectInsideCodeBlock),Ctrl+C 复制纯代码;代码块内 Ctrl+V 按纯文本粘贴
4. 修复 React error #62:btn 改为函数后遗漏 style={btn} 裸用,导致 render 期间更新
This commit is contained in:
hunter-dev
2026-09-09 20:11:08 +08:00
parent f77324afe7
commit dc8d844a1f
10 changed files with 353 additions and 58 deletions
+2
View File
@@ -23,6 +23,7 @@ export const IPC = {
docRead: 'doc:read',
docWrite: 'doc:write',
docReveal: 'doc:reveal',
docLinkBatch: 'doc:link-batch',
search: 'search',
tagStats: 'tag:stats',
tagPaths: 'tag:paths',
@@ -65,6 +66,7 @@ export interface IpcMap {
[IPC.docRead]: { args: { path: string }; result: ReadDocResult };
[IPC.docWrite]: { args: WriteDocPayload; result: void };
[IPC.docReveal]: { args: { path: string }; result: void };
[IPC.docLinkBatch]: { args: { path: string; targets: string[]; remove: boolean }; result: { links: string[] } };
[IPC.search]: { args: { query: string }; result: SearchHit[] };
[IPC.tagStats]: { args: void; result: TagStat[] };
[IPC.tagPaths]: { args: void; result: Record<string, string[]> };