~sircmpwn/aerc2#259: Enable common ctrl inputs in command line

When in the command line, for example when changing directories (:cf INBOX), allow ctrl-j to be used for enter. Similarly, ctrl-u usually deletes the current line.

Assigned to
18 days ago
5 days ago
No labels applied.

~alexwennerberg 10 days ago

If you edit your $HOME/.config/aerc/binds.conf file, you should be able to modify these keybindings. Does that solve your problem?

~yourealwaysbe 9 days ago

This works well for most cases. I could not get it to work on the command line though. E.g. to terminate/execute a command like :cf INBOX followed by ctrl-j instead of pressing enter.

~cdv 5 days ago

aerc uses the tcell library to handle terminal events like keys. It treats C-jdifferently from enter.

The widget that handles command line input is ExLine. The part that handles command submission is here and I'm sure a patch would be accepted.