Gram 2.0.0 released
Gram 2.0.0 released
2026-05-11 Gram 2.0.0 released. Hi everyone! This took a while to assemble, but it’s not as big of an update as the major version bump may imply. A bunch of default settings were a bit weird and confusing in Gram. Relative line numbers were on by default for example, and icons were disabled which confused anyone who installed an icon theme. 2026-05-11 Gram 2.0.0 发布。大家好!这次更新筹备了许久,但其实际规模并没有版本号的大幅提升所暗示的那么大。Gram 中原本的一些默认设置显得有些奇怪且令人困惑。例如,相对行号默认是开启的,而图标默认是禁用的,这让安装了图标主题的用户感到困惑。
Those have been fixed, but it’s a breaking change so major bump it is. Other notable news: There is a new website at gram-editor.com with a lovely banner created by pombo. 这些问题已经得到修复,但由于属于破坏性变更,因此提升了主版本号。其他值得注意的消息:我们有了新的网站 gram-editor.com,上面有由 pombo 创作的精美横幅。
Language servers will now no longer auto update by default. One place you may notice this is with eslint no longer working. To allow the editor to download a new version, you will need to enable auto updates for the language server in the server configuration view. 语言服务器现在默认不再自动更新。你可能会发现 eslint 因此无法正常工作。若要允许编辑器下载新版本,你需要在服务器配置视图中启用语言服务器的自动更新。
Download support for the superhtml language server had to be disabled because they switched to XZ compression. At some point I will add XZ support to the editor, but for now you’ll have to install it manually. 由于 superhtml 语言服务器切换到了 XZ 压缩格式,其下载支持不得不被禁用。我会在未来的某个时间点为编辑器添加 XZ 支持,但目前你需要手动安装它。
Smooth scrolling is now available but disabled by default. There is basic support for rendering mermaid diagrams in markdown preview. Supertab now works much better. 平滑滚动功能现已上线,但默认处于禁用状态。Markdown 预览现在支持渲染 Mermaid 图表。Supertab 的工作表现也得到了显著提升。
That’s all I could think of for now, huge thank you to all the contributors and everyone who have created issues, pull requests, suggestions and toad illustrations. Lets keep making things work together. 目前能想到的就是这些。非常感谢所有的贡献者,以及每一位提交 Issue、Pull Request、建议和蟾蜍插画的朋友。让我们继续共同努力,让一切变得更好。
Downloads are available from Codeberg, RPM and DEB packages are available from the repositories and hopefully soon also available via Homebrew and other channels. Gram is now also available as a Raycast extension. 下载地址现已在 Codeberg 上线,RPM 和 DEB 软件包可在仓库中获取,希望很快也能通过 Homebrew 及其他渠道提供。Gram 现在也已作为 Raycast 扩展提供。
[2.0.0] - 2026-05-11
Breaking (破坏性变更)
- Website now at https://gram-editor.com (网站迁移至 https://gram-editor.com)
- Downloaded language servers no longer auto update (#267) (下载的语言服务器不再自动更新)
- Emmyluadoc tree-sitter grammar was removed (it was broken) (移除了 Emmyluadoc tree-sitter 语法支持,因其已损坏)
- Modified default settings to be more sensible (#184) (调整了默认设置,使其更合理)
- Removed download support for superhtml on Linux (#194) (it was broken) (移除了 Linux 上对 superhtml 的下载支持,因其已损坏)
- Removed settings for features that had been removed (移除了已删除功能的设置项)
Added (新增功能)
- Add “Tight” line spacing for project panel (为项目面板添加“紧凑”行间距)
- Add Arch dependency check (#189) by @theDoctor (添加 Arch 依赖检查)
- Add Arch package build (#177) by @theDoctor (添加 Arch 软件包构建)
- Add optional FS poll watcher (based on poll) (添加可选的文件系统轮询监视器)
- Add tree-sitter grammar for git rebase (添加 git rebase 的 tree-sitter 语法)
- RPM repository now available (RPM 仓库现已可用)
- Add Refresh Folders command (#207) (添加刷新文件夹命令)
- Add SelectInsideDelimiters and SelectAroundDelimiters actions (#217) (添加 SelectInsideDelimiters 和 SelectAroundDelimiters 操作)
- Use patched protobuf-src for Windows support (#202) (使用修补后的 protobuf-src 以支持 Windows)
- Added a menu item in the buffer and tab right-click menu for opening Markdown and SVG files in the preview tab. (在缓冲区和标签页右键菜单中添加了在预览标签页中打开 Markdown 和 SVG 文件的选项)
- Add ability to rename terminal tabs (添加重命名终端标签页的功能)
- Add Mermaid diagram support to Markdown preview (为 Markdown 预览添加 Mermaid 图表支持)
- Add ScrollToTop and ScrollToBottom actions in Markdown preview (为 Markdown 预览添加滚动到顶部和底部操作)
- Add Kintsugi theme via Giacomo Cavalieri (添加由 Giacomo Cavalieri 提供的 Kintsugi 主题)
- Add support for natively installed ESLint and Typescript LSPs (#229) (添加对原生安装的 ESLint 和 Typescript LSP 的支持)
- Autoclose quotes in SQL (#183) (SQL 中自动闭合引号)
- Add ctrl-x g to toggle Git panel in Emacs keymap (#154) (在 Emacs 键位映射中添加 ctrl-x g 以切换 Git 面板)
- Update Arch Linux in readme; Add Alpine Linux (#249) (更新 README 中的 Arch Linux 信息;添加 Alpine Linux)
- Open file by absolute path in file finder (#212) (在文件查找器中支持通过绝对路径打开文件)
- Add an option to hide the unsaved indicator (#266) (添加隐藏未保存指示器的选项)
- Make LSP auto-updating an opt-in setting (#267) (将 LSP 自动更新设为可选设置)
- Add option to move status bar to top of window (添加将状态栏移至窗口顶部的选项)
- Improve support for VSCodium task/debug import (#261) (改进对 VSCodium 任务/调试导入的支持)
- Smooth scrolling animation support (#140) (平滑滚动动画支持)
- Show active file name in the status bar (在状态栏显示当前活动文件名)
- List all buffers in tab switcher (在标签页切换器中列出所有缓冲区)
- Add ctrl/cmd-shift-o key binding to open tab switcher (添加 ctrl/cmd-shift-o 快捷键以打开标签页切换器)
- Add pane join actions for vim-like split close workflows (为类 Vim 的拆分关闭工作流添加面板合并操作)
- Make filenames clickable in git graph (使 Git 图中的文件名可点击)
Removed (移除功能)
- Remove unimplemented CLI dev_server_token argument (移除未实现的 CLI dev_server_token 参数)
- Remove emmyluadoc tree-sitter grammar; it can be pulled in via extension instead (移除 emmyluadoc tree-sitter 语法;现在可通过扩展引入)
- Remove avatar from git graph (从 Git 图中移除头像)
- Remove download support for superhtml on Linux (#194) (移除 Linux 上对 superhtml 的下载支持)
- Remove Windows OpenConsole.exe binary from source code tree (从源码树中移除 Windows OpenConsole.exe 二进制文件)
- Removed unused message_editor and notification_panel settings (移除未使用的 message_editor 和 notification_panel 设置)
- Remove project name setting (#278) (移除项目名称设置)
Fixed (修复问题)
- Don’t terminate connection on ignorable LSP messages (在遇到可忽略的 LSP 消息时不再终止连接)
- Ensure that buffer is up to date after undo (确保撤销操作后缓冲区保持最新)
- Fix edited multibuffers not saving on focus change when autosave setting is set to on_focus_change (修复当自动保存设置为 on_focus_change 时,焦点切换时多缓冲区未保存的问题)
- Fix environment variables failing to load when nu is the login shell (修复当 nu 为登录 shell 时环境变量加载失败的问题)
- Fix gitignore trying to watch the home directory (修复 gitignore 尝试监视主目录的问题)
- Fix markdown block quote continuation highlighting (修复 Markdown 块引用延续高亮显示)
- Fix missing icon in GNOME overview (#198) (修复 GNOME 概览中图标缺失的问题)
- Fix opening closed projects randomly when Gram restarts (修复 Gram 重启时随机打开已关闭项目的问题)
- Fix rewrapping with an empty selection (修复空选区重排问题)
- Fix scrollbar breaking when UI font size changes (修复 UI 字体大小更改时滚动条损坏的问题)
- Fix unknown capture warning for TOML files (修复 TOML 文件的未知捕获警告)
- Fix watcher cleanup for recreated directories (修复重新创建目录时的监视器清理问题)
- Handle FS rescan events (处理文件系统重新扫描事件)
- Handle symlinked settings files in watcher (处理监视器中的符号链接设置文件)
- Include file size in DiskState to fix stale buffer reload (在 DiskState 中包含文件大小以修复过时缓冲区重载)
- Open named in-memory databases as SQLite URIs (将命名内存数据库作为 SQLite URI 打开)
- Fix crash with Unicode chars whose lowercase expands to multiple codepoints (修复 Unicode 字符小写扩展为多个码点导致的崩溃)
- Fix an ordering problem that led to invalid edits in display map sync (修复导致显示映射同步中无效编辑的排序问题)
- Fix out-of-bounds indexing when diff bases contain CRLF (修复 diff 基础包含 CRLF 时的越界索引问题)
- Fix alt keybindings capturing altgr input (Mac) (#206) (修复 Mac 上 Alt 快捷键捕获 AltGr 输入的问题)
- Minor fixes to the build scripts to allow a clean build on Chimera Linux (#205) (构建脚本的小修复,以允许在 Chimera Linux 上进行干净构建)
- Fix dollar sign rendering in Markdown preview (修复 Markdown 预览中美元符号的渲染)
- Prevent stack overflows in Markdown parsing (防止 Markdown 解析中的堆栈溢出)
- Fix Markdown preview not re-rendering on external change (修复 Markdown 预览在外部更改时不重新渲染的问题)
- Fix table wrapping behaviour in Markdown preview (修复 Markdown 预览中的表格换行行为)
- Make non-zero number fields editable in settings (#232) (使设置中的非零数字字段可编辑)
- fix: .gitattributes stats, update langs case (#257) (修复 .gitattributes 统计信息,更新语言大小写)
- Fix file rename on FUSE-based filesystems (#269) (修复基于 FUSE 的文件系统上的文件重命名)
- Fix history navigation in multibuffers (#275) (修复多缓冲区中的历史记录导航)
- Fix incorrect window size on X11 (#259) (修复 X11 上窗口大小不正确的问题)
- Improved Supertab completion (改进 Supertab 补全)
- Fix application menus hover behavior (#276) (修复应用程序菜单悬停行为)
- Fix tab completion in file finder (#270) (修复文件查找器中的标签页补全)
- Don’t install compilation artifacts when installing extension (#273) (安装扩展时不安装编译产物)
- Compile extension in release mode (#273) (以发布模式编译扩展)
- Update vscode-eslint to 3.0.24 and fix ESLint 8-10 (#227) (更新 vscode-eslint 至 3.0.24 并修复 ESLint 8-10 支持)
- Fix git graph text getting squashed (#272) (修复 Git 图文本被压缩的问题)