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

feat: Support pagination for tab completion #238

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

YangchenYe323
Copy link

Hy @chzyer Don't know if this repo is still maintained, but we are using it for a command-line application that would need to tab-complete many choices (think ~1000), and the current implementation could not put those nicely on the terminal. I hacked a little feature to put the completions in pages and allow users to navigate pages using J and K keys in selection mode.

I tested it for my workflow and it worked fine (I added an example readline-paged-completion to showcase the feature, but I have not tested it thoroughly (e.g., vim mode and other stuff).

@wader
Copy link

wader commented Aug 5, 2024

Hi, maybe could be interesting for https://github.com/ergochat/readline?

@YangchenYe323
Copy link
Author

Hi, maybe could be interesting for https://github.com/ergochat/readline?

Thanks! Will make a PR there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants