hanslub42 / rlwrap

A readline wrapper
GNU General Public License v2.0
2.59k stars 151 forks source link

Bind TAB to self-insert if no completions are performed #164

Closed nmeum closed 2 years ago

nmeum commented 2 years ago

This is useful for using rlwrap with interactive programs where a literally character may be entered often and completions are not used. A common example would be text editor such as ed(1) or ex(1).

As an occasional user of ed, I personally find this feature very handy. Since this has been an open issue for a while (#147) I decided to come up with a patch myself to (hopefully) get this integrated into mainline. I hope I implemented the checks in accordance with the description in #147. If I missed anything please let me know. Some light testing on my systems hasn't revealed any issue.

Fixes #147