Skip to content

Map shift+enter and alt+enter to new line #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
net opened this issue May 15, 2025 · 3 comments
Open

Map shift+enter and alt+enter to new line #20

net opened this issue May 15, 2025 · 3 comments

Comments

@net
Copy link

net commented May 15, 2025

shift+enter is a pretty universal keybinding for newline. Claude Code uses alt+enter for some reason, so I would add that too. \+enter is rather unergonomic and weird—I would keep it but replace the hint with shift+enter for newline.

@adamdottv
Copy link
Collaborator

i don't think shift+enter can be captured in the terminal :/
which would explain claude code using alt+enter; fwiw, i got \+enter from claude code, but i also hate it

@net
Copy link
Author

net commented May 15, 2025

You can capture shift+enter using the kitty protocol, which is supported by kitty, ghostty, alacritty, wezterm, iterm2, and some more terminals I haven't heard of.

@adamdottv
Copy link
Collaborator

yeah, looks like this is supported in bubbletea v2 (need to do that work soon)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants