logoalt Hacker News

imankulovlast Monday at 3:46 PM6 repliesview on HN

I left tmux for zellij after several unsuccessful attempts to get Shift+Enter working.

Was quite impressed initially and invested weeks in building new muscle memory, but somehow Zellij crashed with panic more than once, leaving all my processes orphaned. Decided to go back to tmux, and found a simple fix for my Shift+Enter issue.

In case anyone is looking for it, the fix is "bind-key -T root S-Enter send-keys C-j" borrowed from https://github.com/anthropics/claude-code/issues/6072.


Replies

veralllast Monday at 4:02 PM

> In case anyone is looking for it, the fix is "bind-key -T root S-Enter send-keys C-j"

I was looking, thank you!

theshrike79yesterday at 11:57 AM

I ended up with this: bind -n S-Enter send-keys Escape '[13;2u'

pi.dev keeps complaining that "set -s extended-keys on" is missing, but it still works :D

strogonofflast Monday at 3:52 PM

Is it possible for a multiplexer process to die, but in such a bad way that its child processes continue to run?

I’ve been relying on the fact that in the worst-case scenario (if a pane hangs and tmux session becomes unresponsive) I can just kill tmux server and not have to hunt down and kill dozens of individual processes afterwards.

show 1 reply
patabytelast Monday at 5:06 PM

Interesting, for me `shift+enter` hasnt worked, but `option+enter` does give me new lines in Claude Code's promptbox inside tmux on MacOS.

show 1 reply
giwooklast Monday at 8:48 PM

Or if you want to avoid having to set new bindings, do '\ + enter' (which escapes the enter).

ErroneousBoshlast Monday at 6:35 PM

What does shift-enter do for you?

show 1 reply