CMD + Delete
在 macOS 上的 Minecraft 中,按下 option + backspace 会删除单个字符,而按下 command + backspace 会删除一个单词。这与原生操作系统完全不一致,所以我修复了这个问题……
此模组还作为一个功能齐全、可配置的文本编辑/导航快捷键框架,支持自定义映射、JSON 配置文件和分享码、游戏内切换等功能!
一些背景信息
- 如果你在 Windows 或 Linux 上使用此模组,并且没有使用自定义映射,那么它与原版 Minecraft 没有任何区别。
- 如果你遇到任何问题,请在 GitHub 上提交 Issue。此模组是开源的,非常欢迎 Pull Request!:)
- 关于自定义映射及模组工作原理的技术信息,请查阅 CMD + Delete 文档。
- CMD + Delete 已部分本地化为多种语言。目前这些翻译是通过机器翻译完成的。如果你想帮助支持新语言或改进自己语言的翻译,请前往 CMD + Delete Crowdin 项目 提供帮助。
注意:
兼容性: CMD + Delete 是一个多平台模组,支持 Minecraft Fabric/Quilt
1.14.4至最新版本,NeoForge1.21.9至26.3以及 LTS1.20.5-1.21.5构建版本,并原生支持 Forge1.20.1。

内置映射的快捷键
默认情况下,CMD + Delete 会检测你是否在使用 macOS,如果是,它将设置为上述快捷键;否则将设置为 Windows/Linux 的快捷键。
| 操作 | macOS | Windows / Linux |
|---|---|---|
| 删除前一个单词 | option + backspace |
ctrl + backspace |
| 删除后一个单词 | option + delete |
ctrl + delete |
| 删除至行首 | cmd + backspace |
N/A |
| 删除至行尾 | cmd + delete |
N/A |
| 移动到前一个单词 | 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尽可能完美复现的标准 macOS Cocoa Emacs 文本导航快捷键。builtin:emacs_windows_linux尽可能完美复现的标准 Windows/Linux Emacs 文本导航快捷键。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
- If you use this mod on Windows or Linux, and you don't use custom mappings, nothing will change from vanilla Minecraft.
- 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.4to the latest version, NeoForge1.21.9to26.3and the LTS1.20.5-1.21.5build natively, and Forge1.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.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 编辑配方、添加自定义物品、编写世界事件!
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
评论 0
登录后参与评分
还没有评论,来抢沙发吧