reedline icon indicating copy to clipboard operation
reedline copied to clipboard

Shift-enter to insert a line break inside a command without running

Open webbedspace opened this issue 3 years ago • 1 comments

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).

webbedspace avatar Oct 15 '22 08:10 webbedspace

Add something similar to this in your keybindings.

    {
        name: insert_newline
        modifier: alt
        keycode: enter
        mode: emacs
        event: { edit: insertnewline }
    }

fdncred avatar Oct 15 '22 13:10 fdncred

Thanks.

webbedspace avatar Oct 19 '22 10:10 webbedspace