Menu Close

Fix: Shift + Enter Doesn’t Insert a New Line in OpenCode (Konsole)

Considering donating if you found my post helpful 😊

Buy Me a Coffee QR Code

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

  1. Open Konsole.
  2. Go to Settings → Configure Konsole.
  3. Select Profiles.
  4. Create a new profile (the built-in profile can’t be edited).
  5. Mark Default profile checkbox
  6. Open the Keyboard tab.
  7. Select Default (XFree 4) and click Edit.
  8. Search for \EOM.
  9. Change its value from \EOM to \n.
  10. 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 😊

Buy Me a Coffee QR Code
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x