Skip to content

Zed Globalization zh-CN v0.229.0-pre

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 19 Mar 08:03

ZedG v0.229.0-pre

Zed 编辑器的简体中文本地化构建版本,由 zed-globalization 自动翻译并编译。

目标语言: 简体中文 (zh-CN)

翻译键数: 60,243

本补丁做了什么:通过 AI 自动提取 Zed 源码中的用户可见字符串,翻译为简体中文后直接替换源码并重新编译,无需运行时 i18n 框架,零性能开销。

安装方式

macOS (Apple Silicon)

Homebrew(推荐):

# 首次安装
brew tap x6nux/zedg && brew install --cask zedg

# 更新
brew update && brew upgrade --cask zedg

DMG 手动安装:从上方下载 DMG,打开后将 ZedG 拖入 Applications。首次打开如提示「应用已损坏」,执行:

sudo xattr -rd com.apple.quarantine /Applications/ZedG.app

Linux (x86_64)

# deb 包安装
sudo dpkg -i zedg-zh-cn-linux-x86_64-v0.229.0-pre.deb

# 或解压 tar.gz
sudo tar -xzf zedg-zh-cn-linux-x86_64-v0.229.0-pre.tar.gz -C /

Windows (x86_64 / ARM64)

Scoop(推荐):

# 首次安装
scoop bucket add zedg https://github.com/x6nux/scoop-zedg
scoop install zedg

# 更新
scoop update zedg

MSI 安装包:从上方下载对应架构的 .msi 文件,双击安装,支持静默安装:

msiexec /i zedg-zh-cn-windows-x86_64-v0.229.0-pre.msi /quiet

或解压 zip 后直接运行 ZedG.exe


Zed 官方更新日志

本周发布的更新包括:支持为 Claude Opus 和 Sonnet 新的 1M 上下文窗口自带密钥 (BYOK);Git 面板改进,包括显示未提交更改计数的徽章和文件类型图标;对齐多个光标的操作;以及图片查看器中的双指缩放功能。

新功能

AI

  • Agent:更新了 BYOK 集成,以支持 Claude Opus 和 Sonnet 新的 1M 上下文窗口。(#51625)
  • Agent:终端工具权限正则表达式现在可以匹配环境变量。出于安全考虑,当权限正则表达式处于激活状态时,将不允许使用 $FOO 这样的裸插值。(#51689)
  • Agent:线程中的流式文本显示现在更加流畅。(#51499)
  • Agent:通过让思考块(thinking blocks)在进行时自动展开,提高了其可见性。(#51525)
  • Agent:添加了对 OpenAI 提供商流式响应时使用情况跟踪的支持。(#45812; 感谢 Oft3r)
  • Agent:添加 LLM 提供商模态框中的 API 密钥输入现在已被掩码处理。(#50379; 感谢 cppcoffee)
  • Agent:更新了 xAI 模型的 token 显示,以反映输入/输出限制。(#48719; 感谢 anilpai)
  • Edit Prediction:在编辑预测菜单中添加了超出免费层限制时的错误指示器。(#51447)

Git

  • 在 Git 面板侧边栏图标上添加了数字徽章,显示未提交更改的数量。(#49624; 感谢 IVainqueur)
  • Git 面板现在支持来自图标主题扩展的文件类型图标(类似于项目面板)。可通过 git_panel.file_icons 启用(默认关闭)。文件夹图标默认开启,可通过 git_panel.folder_icons 切换。(#51000; 感谢 kickbelldev)
  • 项目面板现在会为包含已删除文件的文件夹着色。(#51553; 感谢 tidefield)
  • 改进了暂存/取消暂存操作的延迟。(#47806; 感谢 marcocondrache)
  • 更改了 git diff 状态的渲染方式,使用字体渲染 +- 而不是图标。(#51411)

语言

  • C/C++:在语义 token 规则中添加了 clangd readonly token 修饰符,以将常量变量高亮显示为常量。(#49065; 感谢 ozacod)
  • C++:将模块接口文件识别为 C++ 文件。(#45968; 感谢 hokein)
  • TSX:移除了尖括号的彩虹括号着色。(#51311; 感谢 jackkkonggg)

Vim / Helix

  • Vim:在使用数字寄存器时,重复 (.) 操作现在会增加记录的寄存器编号。(#50753; 感谢 feitreim)

协作

  • 改进了 CPU 密集期后的音频延迟恢复能力。(#51647)

远程开发

  • 在标题栏项目选择器工具提示中添加了远程主机名。(#51616; 感谢 watsoncj)

Windows

Linux

  • 放宽了 Linux 发行版上对 libstdc++.so 的要求。(#51433)

其他

  • 添加了 editor::AlignSelections 操作以对齐多个光标。(#44769; 感谢 tiagolobao)
  • 添加了 editor::GoToPreviousSymboleditor::GoToNextSymbol 操作,用于导航到上一个和下一个大纲符号。根据配置使用 tree-sitter 大纲或 LSP 提供的大纲。(#50777; 感谢 nishanthkarthik)
  • 添加了用于切换亮色和暗色主题的热键和操作。默认快捷键:macOS 上为 cmd-k cmd-shift-t,Linux/Windows 上为 ctrl-k ctrl-shift-t。(#49027; 感谢 tommyming)
  • 图像查看器:现在可以在 macOS 和 Linux 上使用双指缩放(Pinch-to-zoom)进行放大和缩小。(#47351; 感谢 MostlyKIGuess)
  • 添加了 "formatter": "none" 设置以显式禁用格式化程序。(#48991; 感谢 lingyaochu)
  • 添加了 workspace::FocusCenterPane 操作,用于将焦点从任何停靠栏移动到最近的中心窗格。(#46059; 感谢 FloppyDisco)
  • 当暂时断开连接时,外部驱动器或网络挂载上的最近项目不会再从项目选择器中移除。它们现在会被保留 7 天。(#50829; 感谢 ojpro)
  • 添加了 $ZED_LANGUAGE 任务变量,用于公开当前缓冲区的语言名称。(#51614; 感谢 mvanhorn)
  • 改进了 editor::CopyFileLocation,当选择多行时,会包含完整的选定行范围(例如 src/main.rs:12-18)。(#51328; 感谢 shashank-suresh)
  • 为 Markdown 预览添加了滚动到顶部和滚动到底部的键绑定(Vim 模式下为 gg/G,macOS 上为 cmd-up/cmd-down,Linux/Windows 上为 ctrl-home/ctrl-end)。(#50460; 感谢 dremnik)
  • _ 和换行符添加为子词边界。(#50552)
  • 改进了多行诊断的悬停行为,使其在悬停在空白处时保持显示。(#47471; 感谢 daydalek)
  • 添加了 project_panel.scrollbar.horizontal_scroll 设置,用于切换项目面板中的水平滚动。(#51143; 感谢 k4yt3x)
  • 改进了多缓冲区可运行对象的解析性能。(#51299)
  • 添加了 JetBrains macOS 键绑定中缺失的 editor::UndoSelectionctrl-shift-g 绑定。(#51130; 感谢 zfz7)
  • 快捷键编辑器:移除了显示快捷键上下文时的多余括号。(#50906; 感谢 dongdong867)
  • 改进了 Ayu Dark/Mirage 主题的一些终端颜色。(#51462; 感谢 tiwari91)
  • 改进了项目面板中文件删除提示的措辞。(#43801; 感谢 AdamJedl)

Bug Fixes

  • Agent: Fixed cases where thread state wasn't saved before closing the thread. (#51744)
  • Agent: Fixed inconsistent behavior for subagent views when focusing on previous messages. (#51654)
  • Agent: Fixed an issue where external agents would return an error because an unsupported ACP method was called. (#51479)
  • Agent: Fixed an issue in the agent panel where scrolling a selection out of view would cause the panel to close while zoomed. (#51806)
  • Agent: Fixed broken (failing on first message) xAI models over the Zed provider on profiles using the spawn_agent tool, including the default Ask and Write profiles. (#51835)
  • Agent: Fixed send failure for pasted file#line mention links. (#49786; thanks cppcoffee)
  • Agent: Fixed model dropdown resetting to "Default (recommended)" when opening a previous conversation from history. (#51587; thanks OmChillure)
  • Agent: Fixed echo cancellation not working on experimental audio pipeline. (#51673)
  • Debugger: Fixed debug session restart only working once when the adapter supports DAP restart requests. (#51247; thanks nelsoncampos-cloudwalk)
  • Debugger: Fixed debugger failing to start when offline if a debug adapter was previously downloaded. (#50928; thanks nihalxkumar)
  • Git UI: Fixed selecting previous item selecting a non-visible item if it's inside a collapsed directory. (#49289; thanks RemcoSmitsDev)
  • Git UI: Fixed a bug where deleting a remote branch from the branch picker would incorrectly remove the entire remote configuration. (#48338; thanks amtoaer)
  • Git UI: Fixed a source of panics when staging diff hunks. (#51641)
  • Git UI: Fixed commit message generation in untrusted repositories. (#51323)
  • GPUI: Fixed list height re-computation when the list width changes. (#51414; thanks feitreim)
  • gopls: Fixed semantic token support with gopls. (#51621; thanks feitreim)
  • gopls: Fixed version display showing raw JSON instead of readable version number. (#49835; thanks amtoaer)
  • LSP: Fixed restarting the LSP breaking semantic token highlighting. (#51452; thanks feitreim)
  • Which-Key: Fixed filter list for some Vim commands. (#51543; thanks feitreim)
  • Fixed "View Release Notes" in Preview/Stable opening the wrong release channel page due to build metadata in the URL. (#48570; thanks RubenFricke)
  • Fixed MoveToBeginningOfLine stopping at indentation in single-line editors like the Find bar instead of moving to column 0. (#50681; thanks virajbhartiya)
  • Fixed path:line:column navigation so non-ASCII columns land on the correct character. (#51238; thanks loadingalias)
  • Fixed shift-a in Helix select mode placing the cursor on the wrong line after selecting with x. (#50709; thanks SkandaBhat)
  • Fixed a deadlock that froze the entire app when opening a new window from a popup window or switching focus between multiple windows on macOS. (#51035; thanks Dnreikronos)
  • Fixed a panic in Helix mode with search selecting wrapping around the document end. (#51642)
  • Fixed a stack overflow when parsing deeply nested HTML in markdown files. (#51637)
  • Fixed an issue where accepting an autocomplete suggestion with multiple cursors could result in duplicated or jumbled text in import statements. (#50320; thanks theonly1me)
  • Fixed an issue where the crease toggles in the gutter would sometimes show when interacting with a popover present over the editor gutter. (#51405)
  • Fixed an issue where using the SelectLargeSyntaxNode action with multiple cursors could reverse the selection direction for the last cursor. (#51752)
  • Fixed binary files (e.g., WAV) being misdetected as UTF-16 text, causing Zed to freeze. (#50890; thanks notJoon)
  • Fixed bracket colorization not working for content after folded regions and for functions with large bodies. (#51108; thanks notJoon)
  • Fixed bug that resurfaced dismissed Copilot edit predictions when moving the cursor around. (#40185; thanks timvermeulen)
  • Fixed closed projects re-opening erroneously. (#50961; thanks AmaanBilwar)
  • Fixed Cmd+key shortcuts being consumed by the IME on non-US keyboard layouts, preventing Zed keybindings and macOS system shortcuts from working with special characters. (#51394; thanks jamarju)
  • Fixed empty files not downloading from a remote project. (#51571; thanks AmaanBilwar)
  • Fixed highlighting of block quotes continued over multiple lines in markdown files. (#51465; thanks polyesterswing)
  • Fixed issues with tremendous audio latency in long-running collaboration calls. (#51315)
  • Fixed keymap editor showing phantom entries and stale defaults when deleting or overriding default keybindings. (#50699; thanks iam-liam)
  • Fixed language selector not selecting the first entry when matching a query. (#51581; thanks cppcoffee)
  • Fixed long diagnostic messages in the status bar pushing right-side buttons (terminal, agent, etc.) off screen. (#51031; thanks Dnreikronos)
  • Fixed markdown preview not re-rendering when edited by agent. (#50583; thanks dongdong867)
  • Fixed missing syntax highlighting in symbol search when using the ty language server. (#51355; thanks lingyaochu)
  • Fixed Ollama models with custom stop tokens generating infinitely by not overriding model defaults when no stop tokens are specified. (#48119; thanks littleKitchen)
  • Fixed project root name appearing in file paths while searching in file finder. (#51530; thanks CCXLV)
  • Fixed segfault at runtime on aarch64-Linux when running static constructors. (#51771)
  • Fixed settings file being restored to multiple panes after restart. (#50842; thanks iam-liam)
  • Fixed subword motions in Helix mode not selecting traversed text. (#45760; thanks maxmalkin)
  • Fixed the "Show Edit Predictions For This Buffer" toggle being a no-op in unsaved buffers after switching the buffer's language. (#50845; thanks ayushk-1801)
  • Fixed the cursor offset in non-visual Helix selections. (#46311; thanks jrobsonchase)
  • Fixed hidden files not showing in remote project's open folder action. (#50846; thanks dibashthapa)
  • Fixed the outline filtering always selecting the last match. (#50594; thanks OmChillure)
  • Fixed trailing whitespace handling on text case changes. (#50523; thanks OmChillure)
  • Fixed Vim's dot repeat ignoring the recorded register. (#50753; thanks feitreim)
  • Fixed visual block shift-i jumping to the initial cursor position after scrolling with ctrl-d/ctrl-u in Vim mode. (#50822; thanks cppcoffee)
  • Fixed XF86 multimedia key names ("New", "Save", "Open") being shown as keybinding hints in menus instead of the actual keyboard shortcuts. (#50540; thanks Dnreikronos)