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

Status
RESOLVED FIXED
Submitter
~yourealwaysbe
Assigned to
No-one
Submitted
4 months ago
Updated
3 months ago
Labels
No labels applied.

~alexwennerberg 3 months 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 3 months 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 3 months 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.

~yourealwaysbe REPORTED FIXED 3 months ago

I just had a look into this now. It seems ctrl-j/h/u are all well supported now. Thanks.

Register here or Log in to comment, or comment via email.