Skip to content

v0.15.2 — 文件树「在应用中打开」+ Tab 右键菜单 + Diff 默认折叠 / Open-in-app menu + tab context menu + diff collapse by default

Choose a tag to compare

@Menghuan1918 Menghuan1918 released this 22 Aug 15:34
· 1492 commits to main since this release

v0.15.2 — 文件树「在应用中打开」+ Tab 右键菜单 + Diff 默认折叠 / Open-in-app menu + tab context menu + diff collapse by default

支持的 DSH 版本 / Supported DSH versions: 0.1.0-rc.8 · 0.1.1-rc.1 · 0.1.1-rc.2

✨ 新功能

  • 🗂️ 文件树「在应用中打开」子菜单(#334):文件树右键菜单新增「在应用中打开 >」子菜单——内置打开方式(资源管理器显示/选中、VS Code、Cursor、Zed),每行右侧图钉可固定为右键菜单顶层直达项(再点取消);配置可选 SSH host 后 VSCode 系条目改用 vscode-remote/ssh-remote+<host>/<path> 协议打开,本地专用条目自动隐藏;支持自定义编辑器(名称 + URL 模板 {path} + 是否 VSCode 系,配置入口在 Files 卡片齿轮弹窗)。打开动作经新宿主路由 POST /sidebar/api/open.external(argv 数组 spawn,无 shell 注入,浏览器与桌面壳行为一致)
  • 📑 Tab 右键菜单(#331):页签右键提供「关闭 / 关闭其他页签 / 关闭左侧页签 / 关闭右侧页签」,作用范围为当前 pane(标签组),无可关对象时置灰;仅打开菜单、不切换激活页签;批量关闭逐条走既有 onClose 路径,descriptor 生命周期 / 终端 pty 释放 / agent 终端关闭全部保持
  • 📄 Diff 文件默认折叠(#270):改动文件头部改为可访问的展开/折叠控件;识别出的源文件默认展开,测试 / 文档 / 生成文件 / lockfile 与未知类型默认折叠;保留现有 500 行上限
  • 📖 README 更新:特性巡礼改为表格展示(每行两张实拍图,节省空间);社区补全微信群 / QQ 群二维码(#325,QQ 群 577011007)

🐛 修复

  • 🪟 空分栏清理(#268):持久化的 split pane 在临时 diff tab 被清理后遗留全尺寸空分栏——sanitizeState 现在同时修剪空的 split leaf,并修复修剪后的失效激活 pane 指针;整个工作台为空时保留唯一空 pane
  • 🖥️ Windows 下隐藏 Git 子进程窗口(#301,关闭 #124):runGit() 统一加 windowsHide: true,仓库状态轮询与操作不再闪现控制台窗口(其他平台行为不变)
  • 📁 未跟踪文件夹内文件差异(#242):git status 从 --untracked-files=normal 切换为 --untracked-files=all——新文件夹内每个文件独立成行、可正常加载差异(修正 fs.read 报 "is a directory",与 VSCode 默认行为一致)
  • ⚡ 开关/拖拽每帧 React 重渲染消除(关闭 #315):centerRect 改 ref + 底栏 DOM 直写(零 React 渲染);TabContent memo(显式比较器);新增 frame-batcher 对 Divider/dock 拖拽按帧合并;拖拽期跳过无意义 locate。4x CPU 节流 A/B:开关 >17ms 帧 collapse 19→6 / expand 24→4~6,p95 21ms→15ms;拖拽不变(非回归)

📖 文档与社区


✨ New features

  • 🗂️ "Open in app" submenu in the file tree (#334): the file-tree context menu gains an "Open in app >" submenu — built-in openers (reveal/select in file manager, VS Code, Cursor, Zed), each with a pin button that promotes it to a top-level context-menu item (click again to unpin); with an optional SSH host configured, VSCode-family entries switch to the vscode-remote/ssh-remote+<host>/<path> protocol and local-only entries hide automatically; custom editors supported (name + URL template with {path} + "VSCode-family" flag, configured in the Files card gear popup). Open actions go through the new host route POST /sidebar/api/open.external (argv-array spawn, no shell injection, consistent in browser and desktop shells)
  • 📑 Tab context menu (#331): right-clicking a tab offers Close / Close others / Close to the left / Close to the right, scoped to the current pane (tab group); items grey out when there is nothing to close; the menu only opens — it never switches the active tab; bulk closes go through the existing per-tab onClose path so descriptor lifecycles, pty release and agent-terminal shutdown all stay intact
  • 📄 Diff files collapsed by default (#270): each changed-file header is now an accessible expand/collapse control; recognized source files expand by default while tests, docs, generated files, lockfiles and unknown types stay collapsed; the existing 500-row cap for expanded content is preserved
  • 📖 README update: the feature tour is now a table (two screenshots per row, saves space); the community section shows the WeChat group and QQ group QR codes (#325, QQ group 577011007)

🐛 Fixes

  • 🪟 Prune empty restored panes (#268): persisted split panes left empty when ephemeral diff tabs were dropped no longer survive as full-size blanks — sanitizeState now also prunes the empty split leaf and repairs the stale active-pane pointer; a fully empty workbench keeps its single empty pane
  • 🖥️ Hide spawned git windows on Windows (#301, fixes #124): the shared runGit() spawn options now set windowsHide: true, so repo-status polling and git actions no longer flash console windows on Windows (no behavior change on other platforms)
  • 📁 Untracked files inside new folders (#242): git status switched from --untracked-files=normal to --untracked-files=all — each file inside a new folder now shows as its own row and its diff can be loaded (no more fs.read "is a directory" error), matching VSCode's default behavior
  • ⚡ Per-frame React re-renders eliminated for toggles/drags (closes #315): centerRect moved to a ref with direct DOM writes to the bottom bar (zero React renders); TabContent memoized with an explicit comparator; a new frame-batcher coalesces Divider/dock drags per frame; meaningless locate passes skipped during drags. 4x CPU-throttled A/B: >17ms frames on toggle collapse 19→6 / expand 24→4~6, p95 21ms→15ms; drags unchanged (non-regression)

📖 Docs & community