CMD + Delete
在 macOS 上的 Minecraft 中,按下 option + backspace 会删除单个字符,而按下 command + backspace
会删除一个单词。这与原生操作系统完全不一致,所以我修复了这个问题……
此模组还作为一个功能齐全的文本编辑/导航快捷键框架,支持自定义映射、JSON 文件和分享码、游戏内切换等功能!

背景信息
- 即使在 Windows 或 Linux 上,此模组也颇具实用价值,因为它改进了告示牌的导航,使得可以在告示牌各行之间使用左右箭头键进行移动,并改进了单词边界检测以更接近原生操作系统的表现。
- 如果需要,你可以通过运行命令
/navmappings set builtin vanilla基本上禁用此模组。 - 如果你遇到任何与此模组相关的问题,请在 GitHub 上作为 Issue 报告。此模组是开源的,非常欢迎提交 Pull Request!:)
- 关于自定义映射及模组工作原理的技术信息,请访问 CMD + Delete 文档。
- CMD + Delete 的部分内容已本地化为多种其他语言。目前,这是通过机器翻译完成的。如果你想帮助支持新语言或改进自己语言的翻译,请协助参与 CMD + Delete Crowdin 项目。
注意:
兼容性: CMD + Delete 是一个多平台模组,原生支持 Minecraft Fabric/Quilt
1.14.4-26.3、NeoForge1.21.9至26.3以及 LTS1.20.5-1.21.5版本,并原生支持 Forge1.20-1.20.1。
内置映射的快捷键
默认情况下,CMD + Delete 会检测你是否在使用 macOS,如果是,则会为你设置这些快捷键;否则,将设置为使用 Windows/Linux 快捷键。
| 操作 | macOS | Windows / Linux |
|---|---|---|
| 删除前一个单词 | option + backspace |
ctrl + backspace |
| 删除后一个单词 | option + delete |
ctrl + delete |
| 删除至行首 | cmd + backspace |
不适用 |
| 删除至行尾 | cmd + delete |
不适用 |
| 移动至上一个单词 | option + ← |
ctrl + ← |
| 移动至下一个单词 | option + → |
ctrl + → |
| 移动至行首 | cmd + ← |
home |
| 移动至行末 | cmd + → |
end |
| 移动至文本开头 | cmd + ↑ |
ctrl + home |
| 移动至文本结尾 | cmd + ↓ |
ctrl + end |
| 选择至上一个单词 | option + shift + ← |
ctrl + shift + ← |
| 选择至下一个单词 | option + shift + → |
ctrl + shift + → |
| 选择至行首 | cmd + shift + ← |
shift + home |
| 选择至行末 | cmd + shift + → |
shift + end |
| 选择至文本开头 | cmd + shift + ↑ |
ctrl + shift + home |
| 选择至文本结尾 | cmd + shift + ↓ |
ctrl + shift + end |
| 向上选择一行 | shift + ↑ |
shift + ↑ |
| 向下选择一行 | shift + ↓ |
shift + ↓ |
其他内置映射
CMD + Delete 现在还提供以下其他内置映射:
builtin:emacs_mac我所能做出的最佳复现的 Emacs 中文本导航的标准 macOS Cocoa 快捷键。builtin:emacs_windows_linux我所能做出的最佳复现的 Emacs 中文本导航的标准 Windows/Linux 快捷键。builtin:readline我所能做出的最佳复现的 GNU Readline 中文本导航的标准快捷键。builtin:vanilla一组功能性禁用此模组并允许原版 Minecraft 行为的映射。
与其他类似模组的对比
| 功能 | CMD + Delete | macOS Chat Fixes |
|---|---|---|
| 在聊天框及大多数其他单行文本框中有效 | ✓ | ✓ |
| 在告示牌上有效 | ✓ | ✘ |
| 在书籍中有效 | ✓ | ✘ |
| 支持任何操作系统 | ✓ | ✓ |
| 原生 macOS 风格的单词边界检测 | ✓ | ✓ |
| 支持自定义映射 JSON | ✓ | ✘ |
| 可按需使用来自不同操作系统的快捷键 | ✓ | ✘ |
| 支持使用 Emacs 和 Readline 快捷键 | ✓ | ✘ |
| 支持在需要时功能性禁用模组 | ✓ | ✘ |
| 支持通过分享码共享自定义快捷键 | ✓ | ✘ |
| 原生支持 NeoForge、Fabric 和 Quilt | ✓ | ✘ |
| 支持 Minecraft 26.1 之前的版本 | ✓ | ✘ |
| 开源 | ✓ | ✓ |
| 开源许可证 | Apache-2.0 |
LGPL-3.0-only |
| 公开技术文档 | ✓ | ✘ |
注意:
macOS chat fixes 的描述声称其支持告示牌,但在进行源代码审查后,我确定它并没有实际支持告示牌的 mixin。请注意,所有声明均基于截至 2026 年 10 月 15 日的情况。此外,我受到 macOS chat fixes 的启发才想到原生操作系统风格的单词边界检测功能,但我并未复用其任何代码。
许可协议
- CMD + Delete 模组本身采用 Apache 2.0 许可证。
- CMD + Delete 维基/文档采用 CC BY 4.0 许可证。
- 所有内置映射 JSON 文件可在 Apache 2.0 许可证 或 CC BY 4.0 许可证 下获取(您可以选择遵守其中任一许可证)。
- 您可以将 CMD + Delete 包含在任何 CurseForge 和/或 Modrinth 整合包中。
CMD + Delete
In Minecraft on macOS, pressing option + backspace deletes a single character, and pressing command + backspace
deletes a word. This is completely inconsistent with the native OS, so I fixed it...
This mod also functions as a fully configurable text editing/navigation shortcut framework for Minecraft with custom mappings, JSONs and sharecodes, in-game switching, and more!

Some Context
- This mod is useful even on Windows or Linux as it improves sign navigation to make using left/right arrow keys between the lines of signs possible and it improves word boundary detection to be closer to the native OS.
- You can basically disable the mod, if need be, by running the command
/navmappings set builtin vanilla. - If you have any problems with this mod, please report them as Issues on GitHub. This mod is Open Source, and Pull Requests are very much welcome! :)
- For technical information about custom mappings and how the mod works, you should go to the CMD + Delete documentation.
- CMD + Delete has portions of the mod localized to many other languages. Currently, this has been done using machine translation. If you would like to help support a new language or improve translations for your own language, please help out on the CMD + Delete Crowdin Project.
Note:
Compatibility: CMD + Delete is a multi-platform mod that supports for Minecraft Fabric/Quilt
1.14.4-26.3, NeoForge1.21.9to26.3and the LTS1.20.5-1.21.5build natively, and Forge1.20-1.20.1natively.
Builtin Mappings' Shortcuts
By default, CMD + Delete will detect if you're using macOS, and if you are, it'll set you to those shortcuts, otherwise it will set you to use Windows/Linux shortcuts.
| Action | macOS | Windows / Linux |
|---|---|---|
| Delete previous word | option + backspace |
ctrl + backspace |
| Delete next word | option + delete |
ctrl + delete |
| Delete to start of line | cmd + backspace |
N/A |
| Delete to end of line | cmd + delete |
N/A |
| Move to previous word | option + ← |
ctrl + ← |
| Move to next word | option + → |
ctrl + → |
| Move to start of line | cmd + ← |
home |
| Move to end of line | cmd + → |
end |
| Move to start of text | cmd + ↑ |
ctrl + home |
| Move to end of text | cmd + ↓ |
ctrl + end |
| Select to previous word | option + shift + ← |
ctrl + shift + ← |
| Select to next word | option + shift + → |
ctrl + shift + → |
| Select to start of line | cmd + shift + ← |
shift + home |
| Select to end of line | cmd + shift + → |
shift + end |
| Select to start of text | cmd + shift + ↑ |
ctrl + shift + home |
| Select to end of text | cmd + shift + ↓ |
ctrl + shift + end |
| Select up one line | shift + ↑ |
shift + ↑ |
| Select down one line | shift + ↓ |
shift + ↓ |
Other Builtin Mappings
CMD + Delete also now provides these other builtin mappings:
builtin:emacs_macthe standard macOS Cocoa shortcuts for text navigation in Emacs to the best replication I can make.builtin:emacs_windows_linuxthe standard Windows/Linux shortcuts for text navigation in Emacs to the best replication I can make.builtin:readlinethe standard shortcuts for text navigation in GNU Readline to the best replication I can make.builtin:vanillaa set of mappings that functionally disables the mod and allows vanilla Minecraft behavior.
Comparison to Other Similar Mods
| Feature | CMD + Delete | macOS Chat Fixes |
|---|---|---|
| Works in chat & most other single-line textboxes | ✓ | ✓ |
| Works in signs | ✓ | ✘ |
| Works in books | ✓ | ✘ |
| Works on any OS | ✓ | ✓ |
| Native macOS-style word-boundary detection | ✓ | ✓ |
| Custom mappings JSON support | ✓ | ✘ |
| Can use shortcuts from a different OS if wanted | ✓ | ✘ |
| Supports using Emacs and Readline shortcuts | ✓ | ✘ |
| Supports functionally disabling the mod if needed | ✓ | ✘ |
| Supports sharing custom shortcuts via sharecodes | ✓ | ✘ |
| Supports NeoForge, Fabric, and Quilt natively | ✓ | ✘ |
| Supports Minecraft versions before 26.1 | ✓ | ✘ |
| Open source | ✓ | ✓ |
| Open source license | Apache-2.0 |
LGPL-3.0-only |
| Public technical documentation | ✓ | ✘ |
Note:
The description of macOS chat fixes says it supports signs, but after conducting a source code review, I determined that it did not have a mixin to actually support signs. Note that all claims were made as of October 15th, 2026. Also, I got the idea of native OS style word boundary detection from macOS chat fixes, though I did not reuse any code.
Licensing
- The CMD + Delete mod itself is licensed under the Apache 2.0 license.
- The CMD + Delete wiki/documentation is licensed under the CC BY 4.0 license.
- All builtin mappings JSON files are available under either the Apache 2.0 license or the CC BY 4.0 license (You may choose to comply with either license).
- You may include CMD + Delete in any CurseForge and/or Modrinth modpack.
下载 CMD + Delete
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CMD + Delete
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CMD + Delete
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CMD + Delete
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CMD + Delete
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CMD + Delete
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CMD + Delete
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CMD + Delete
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CMD + Delete
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CMD + Delete
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
1.5.0a
更改:
- 修复 #70:由于模组 jar 在多平台架构重写后未正确重映射,导致在混淆版 Minecraft 中崩溃的问题。
完整更新日志:
1.5.0
更新内容:
- CMD + Delete 现已采用跨平台架构,并提供了新的 NeoForge/Forge 构建版本。
- Mappings(映射)格式版本已提升至
5,具体变更如下:- 此次升级不会破坏兼容性,因为 fv 2、3 和 4 版本的映射仍可正常加载。
- 新增了对可选字段
meta.credits和meta.license的支持。 - 在非严格模式下,JSON 字符串不再应用大小写/空白符规范化处理。
f25键名现在会抛出异常。
- 为 CMD + Delete 添加了文档(拥有独立网站)。
- 主分支已更新至 Minecraft 26.3。
- 新增了
/navmappings debug sendDocsLink子命令。 - 新增了
/navmappings debug sendIssuesLink子命令。 - 新增了
/navmappings debug generateShareCodeOfText子命令。 - 添加了机器翻译的 Crowdin 多语言支持。
- 在 Windows 平台上,KeyCombo 名称中更倾向于使用原生的
win而非sup术语。 - 新增了一套
builtin:vanilla映射集。 - 新增
nativeStyleWordBoundaries功能标志,允许支持使用原生操作系统风格来检测单词边界。 - 列出的映射现在应始终按字母顺序排序。
- 改进了日志记录,并修复了一些日志不准确的问题。
- 修复了一个安全漏洞:此前分享码中的 Gzip 解压数据量没有最大限制,可能导致 Zip Bomb(ZIP炸弹)攻击。
- 通过在校验导入时完全验证分享码所代表的映射,提升了使用分享码的体验。这意味着如果分享码包含无效的映射,将在导入时提前报错,而不是在首次激活导入的映射时才报错。
- 内部代码优化。
完整更新日志:
1.5.0 候选版本 1
更改:
- 修复了一个漏洞,该漏洞允许对来自共享代码的 GZip 解压缩数据量没有限制上限,从而导致 Zip Bombs(ZIP炸弹)成为可能。
- 通过验证导入时它们所代表的映射是否完全有效,改善使用共享代码的体验。这意味着当共享代码中包含无效映射时,会在早期报错,而不是在首次激活导入的映射时才报错。
- 添加了
/navmappings debug generateShareCodeOfText子命令。 - 内部代码改进。
完整更新日志:
1.5.0 Beta 3
变更:
- 添加机器翻译的 Crowdin 翻译。
- 在 Windows 平台上,KeyCombo 名称中改用
win替代sup,以更符合本地化术语。 - 内部代码优化。
完整更新日志:
1.5.0 Beta 4
更改:
- 新增了一个
builtin:vanilla映射集。 - 添加了
nativeStyleWordBoundaries功能标志,支持使用原生操作系统风格检测单词边界。 - 列出映射时,现在应始终按字母顺序排序。
- 改进了日志记录,并修复了一些不准确的日志问题。
- 内部代码改进。
完整更新日志:
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧