hanslub42 / rlwrap

A readline wrapper
GNU General Public License v2.0
2.53k stars 149 forks source link

Make TAB self-insert if no completion is needed #147

Closed hanslub42 closed 1 year ago

hanslub42 commented 2 years ago

Cf #146: if rlwrap doesn't need to do any completion (i.e. without any of the --complete-filenames, --file or --remember options) we might as well bind TAB to self-insert at startup.

This will make rlwrap more POLA-compliant

Possible problem: when people use rlwrap -always-readline with commands that already have their own TAB completion, the TAB will mess up the input when handed down to the command.

Possible solution: keep the current behaviour when called with --always-readline.