Skip to content

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 03 Dec 16:41
· 47 commits to main since this release

✨ 新功能与交互升级

  • 三端原生拖拽投放(Drag-Out)与置顶条目独立拖拽排序:按住任意历史条目的左侧图标/缩略图即可直接向微信、资源管理器、编辑器、浏览器等外部应用原生拖放投放(Windows OLE CF_UNICODETEXT/CF_TEXT/CF_OEMTEXT/UniformResourceLocator/CF_HDROP,macOS Cocoa NSDraggingSession,Linux X11 XDND v5 含 XdndProxy 双向探测与 Wayland 优雅降级);置顶条目在悬停或按住时切换为蓝色 6 点抓手(⋮⋮),支持列表内上下丝滑调整独立 pin_order 顺序(支持 .cbx 归档持久化),横向拉出或拖出面板边界即无缝切换为原生投放。
  • 三边磁吸停靠(左 / 右 / 顶部 58×38 灵动胶囊)与物理动效升级:新增顶部停靠横向灵动胶囊、二阶临界阻尼弹簧动画、速度投影甩动吸附、物理像素对齐、连续流体抽屉展开/收起过渡与安全三角悬停走廊,解决靠边展开/收起跳闪与斜向移动误切行问题。
  • 跟随输入光标弹出(FollowCaret)与多屏热插拔保护:新增「跟随输入光标」唤起位置(基于 Win32 GetGUIThreadInfo / macOS Accessibility / Linux X11,不可用时平滑回退跟随鼠标),并在记住位置模式加入多显示器热插拔自动归位保护。
  • 智能融合检索与离线语义洞察:检索排序融合 Frecency 频次衰减、字段权重与前台应用上下文加权,并引入剪贴板快速连复制去抖合并(ClipboardCoalescer);内置纯离线 Cron 表达式解析、URL 追踪参数一键清理、SQL / cURL / IP / Email 识别、高熵凭据自动脱敏预览(可单条切换明文)与 OTP 验证码超时自动清理。

⚡ 性能、内存、磁盘与包体积深度优化

  • Release 体积与依赖瘦身:启用 lto = "fat"、panic = "abort" 与分级优化(默认 opt-level = "z" + 7 个加解密/图片核心 crate opt-level = 3),用 ureq 3.5 替换 reqwest(Windows 依赖树移除 tokio/hyper/h2),对内嵌 FiraCode 字体进行子集化压缩(-59%),完整保留代码语法高亮,Windows Release 单文件仅约 18.4 MiB。
  • 内存与显存分级回收:全平台接入 mimalloc 全局分配器,引入带 24 条 / 16 MiB 字节预算与 window.drop_image GPU 显存释放的 BoundedImageLruCache、64 KB 大文本预览安全切片、以及 10s / 60s 分级闲置休眠自动销毁隐藏悬浮窗与待机降频。
  • 磁盘空间透明瘦身:启用 PRAGMA auto_vacuum = INCREMENTAL 与设置页一键回收磁盘空间(及存储目录一键打开),新增纯 Rust LZ77 CXB2 透明压缩(向后兼容 CXB1)与 > 256 KB PNG 自动无损 WebP 瘦身。

🐛 三端稳定性与细节打磨

  • 根治悬浮预览卡片首次选字失效与弹窗外点关闭:在悬停卡片滑入时原地预激活并聚焦只读文本框、离开回到主面板或隐藏时无感交还焦点,彻底修复 GPUI 异步激活导致首次拖选失效的问题;右键菜单与分组弹窗现支持点击屏幕任意面板外区域立即关闭(即使主窗钉住置顶);移除大量 #[cfg(target_os = "windows")] 平台限制,使 macOS 与 Linux X11 全面共享悬浮预览池化复用、预激活与外点关闭能力。
  • 三端平台桥深度加固:引入 5 角色互斥的 WindowRoleRegistry 彻底隔离定格幕布窗与悬浮预览窗;macOS 修复异构多屏(Retina + 外接 1x)缩放偏差与 NSDraggingSession 生命周期保护;Linux X11 安装 XSetErrorHandler 防已关闭窗口崩溃、持久复用 X11 连接消除高频轮询握手开销、修复保密剪贴板无所有者时的阻塞,并为悬浮/托盘/贴纸窗补齐 SKIP_TASKBAR / SKIP_PAGER。

✨ What's New & Interaction Upgrades (English)

  • Cross-Platform Native Drag-Out & Independent Pinned Drag Reordering: Grab any clip row's leading icon/thumbnail to drag text, images, or files directly into external apps (Windows OLE CF_UNICODETEXT/CF_TEXT/CF_OEMTEXT/UniformResourceLocator/CF_HDROP, macOS Cocoa NSDraggingSession, Linux X11 XDND v5 with XdndProxy negotiation and Wayland fallback). Pinned rows switch to a 6-dot drag grip on hover/hold for vertical pin_order reordering (preserved in .cbx archives) and seamlessly hand off to native OS drag-out when pulled horizontally or past the panel edge.
  • 3-Edge Docking (Left / Right / Top 58×38 Capsule) & Physics Motion: Added top-edge horizontal docking capsule, critically damped spring transitions, velocity-projected edge flicking, physical-pixel snapping, fluid drawer transitions, and hover-aim safe triangle corridors.
  • Caret-Following Popup (FollowCaret) & Multi-Monitor Hot-Unplug Guard: Added text-caret popup positioning with graceful pointer fallback, plus automatic recentering when a remembered monitor is disconnected.
  • Hybrid Frecency Ranking & Offline Semantic Insights: Blended frecency decay, field weighting, and foreground-app context boosting with rapid clipboard coalescing; added offline Cron explanations, URL tracker stripping, SQL/cURL/IP/Email insights, Shannon-entropy secret masking with per-item reveal, and OTP auto-expiration.

⚡ Performance, Memory, Disk & Binary Size Optimization (English)

  • Lean Release Builds: Configured lto = "fat", panic = "abort", tiered optimization (opt-level = "z" with opt-level = 3 on crypto/image hot crates), replaced reqwest with ureq 3.5, and subsetted embedded FiraCode fonts (-59%) while preserving full syntect code highlighting (~18.4 MiB Windows release binary).
  • Bounded Memory/VRAM & Tiered Idle Standby: Enabled mimalloc, added BoundedImageLruCache (24 entries / 16 MiB budget with explicit window.drop_image VRAM release), 64 KB UTF-8-safe preview slicing, and 10s / 60s tiered idle hibernation.
  • Transparent Disk Slimming: Enabled SQLite incremental auto-vacuum with one-click disk reclaim and storage-folder reveal, pure-Rust LZ77 CXB2 blob compression (backward compatible with CXB1), and lossless WebP slimming for > 256 KB PNGs.

🐛 Cross-Platform Stability & Polish (English)

  • Fixed First-Drag Text Selection in Hover Preview & Outside-Click Dismissal: Pre-activates the hover preview popup in-place on pointer entry and smoothly restores main-panel focus on return/hide, eliminating GPUI's first-drag selection cancellation; context menus and group popovers now dismiss immediately on any outside click even when pinned; replaced Windows-only gating with runtime capability checks so macOS and Linux X11 share hover pooling, pre-activation, and outside-click dismissal.
  • Hardened Windows / macOS / Linux Native Bridges: Added 5-role WindowRoleRegistry isolation, macOS mixed-DPI multi-monitor scaling & safe NSDraggingSession lifetime handling, and Linux X11 XSetErrorHandler, persistent shared X11 connection pooling, non-blocking confidential marker checks, and SKIP_TASKBAR/SKIP_PAGER window hints.

Full Changelog: v0.5.0...v0.6.0