Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tab-completion: option to cycle through possible completions #931

Open
ssiccha opened this issue Nov 2, 2016 · 1 comment
Open

Tab-completion: option to cycle through possible completions #931

ssiccha opened this issue Nov 2, 2016 · 1 comment
Labels
kind: enhancement Label for issues suggesting enhancements; and for pull requests implementing enhancements

Comments

@ssiccha
Copy link
Contributor

ssiccha commented Nov 2, 2016

Observed behaviour

Currently tab-completion in GAP behaves like this: Pressing tab completes the input partially, if the largest common prefix of all possible completions is longer than the input. If this is not the case the list of all possible completions is shown.

Proposed behaviour

Add maybe a UserPreference such that tab-completion behaves like this: Additionally, after listing all possible completions the user can cycle through them via additional tabs.

This was mentioned both in #919 and the corresponding pull-request #928.

@ssiccha
Copy link
Contributor Author

ssiccha commented Nov 2, 2016

I have done some research and readline should in principle be able to do something like that.
E.g. if I add the following lines to my .inputrc and start a new shell it behaves similarly as in the proposal.

Tab: menu-complete
set menu-complete-display-prefix on
set show-all-if-ambiguous on

@fingolfin fingolfin added the kind: enhancement Label for issues suggesting enhancements; and for pull requests implementing enhancements label May 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: enhancement Label for issues suggesting enhancements; and for pull requests implementing enhancements
Projects
None yet
Development

No branches or pull requests

2 participants