Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Partial completion #920
I would like to suggest the following enhancement to the auto-completion process.
My suggestion consists in adding an extra auto-complete shortcut that only completes until the next white space:
when typing "l" I get the following suggestion:
ls -lha /var/www
pressing the new shortcut key would produce "ls" and keep the remainder as a suggestion, pressing it again wound produce "ls -lha" and keep the remainder as a suggestion.
Currently, with ctrl-f or right cursor it would complete immediately to "ls -lha /var/www", so when I mean "less" I'll type "le", it will suggest "less" and then press right cursor. My suggestions is to have the exact same rules that apply to the ctrl-f/right cursor completion, but have another shortcut that only completes 1 word at the time, thus allowing to repeat commands with slight differences.
Let's assume the part inside the  is the suggested part that is still not completed
Pressing this new shortcut (let's for examples sake use ctrl-w):
And so on.
At any time, pressing ctrl-f would have the exact same effect it does now