reedline
reedline copied to clipboard
Shift-enter to insert a line break inside a command without running
It'd be nice to press shift-enter to insert a line break inside a command (such as when you type def foo [] {} and decide to insert a line break between {} without running the command.
References
This feature exists in most browser consoles (see: Firefox, Chrome) as well as various IRC-like places (like Twitter DMs or Slack).
Add something similar to this in your keybindings.
{
name: insert_newline
modifier: alt
keycode: enter
mode: emacs
event: { edit: insertnewline }
}
Thanks.