Considering donating if you found my post helpful 😊
If you’re using OpenCode in Konsole and notice that Shift + Enter doesn’t insert a new line, here’s a simple workaround that solved it for me.
I found the idea from a GitHub discussion, but I have to figure out how to edit Konsole settings instead of running a script.
Steps
- Open Konsole.
- Go to Settings → Configure Konsole.
- Select Profiles.
- Create a new profile (the built-in profile can’t be edited).
- Mark Default profile checkbox
- Open the Keyboard tab.
- Select Default (XFree 4) and click Edit.
- Search for
\EOM. - Change its value from
\EOMto\n. - Save the keyboard layout and use the new profile.
After doing this, Shift + Enter works as expected and inserts a new line in OpenCode.
Hopefully this saves someone else the time I spent trying to figure it out.
Considering donating if you found my post helpful 😊