Fix Shift+Return in Ghostty Terminal

If you’re using Ghostty and pressing Shift+Return gives you [27;2;13~ instead of a newline, here’s the fix.

By default, Ghostty sends an escape sequence for Shift+Return. To make it behave like a normal newline, add this to your config:

keybind = shift+enter=text:\n

Or just run this one-liner:

echo 'keybind = shift+enter=text:\n' >> ~/.config/ghostty/config

Your config file is at ~/.config/ghostty/config on macOS.

After saving, restart Ghostty or reload with Cmd+Shift+, and you’re good to go.