slice / cocoa-beans

native mac text editing shortcuts for minecraft

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cocoa Beans

Cocoa Beans is a small Fabric mod for Minecraft 1.20.4 that adds support for native text editing shortcuts within in-game text fields. When installed on Windows or Linux, the mod attempts to make itself inert by replicating Vanilla behavior; however, it'd be best to not install the mod on non-macOS systems.

Caution

This mod only makes an effort to augment text field widgets (e.g. the one used when sending chat messages). It doesn't implement handling for signs and books.

Shortcuts

Only a subset is implemented at this time. See all shortcuts here.

Shortcut Effect Notes
⌘← Moves the cursor to the start Vanilla only lets you do this through the Home key.
⌘↑ Ditto. Ditto.
⌃A Ditto. Ditto.
⌘→ Moves the cursor to the end Vanilla only lets you do this through the End key.
⌘↓ Ditto. Ditto.
⌃E Ditto. Ditto.
⌥→ Moves the cursor right a word Vanilla handles this, but it checks for Command instead of Option.
⌥← Moves the cursor left a word Vanilla handles this, but it checks for Command instead of Option.
⌥⌫ Deletes a word to the left of the caret
⌥⌦ Deletes a word to the right of the caret
⌘⌫ Deletes everything to the left of the caret Vanilla handles this shortcut by deleting a word instead.
⌘⌦ Deletes everything to the right of the caret Vanilla handles this shortcut by deleting a word instead.

Tip

What Mac calls ⌫, or "delete", is usually called "backspace" elsewhere. It deletes to the left of the caret. Similarly, ⌦, or "forward delete", is usually called "delete" elsewhere and it deletes to the right of the caret.

As you might expect, adding ⇧ to any shortcut extends your selection through the run of text that you would've traversed.

Building

Java 17 or later is required to build. Fabric 0.15.7 or later is targeted.

./gradlew build

About

native mac text editing shortcuts for minecraft

License:MIT License


Languages

Language:Java 100.0%