Skip to content

Use colors in tab-completion in PyREPL #130472

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

Open
ambv opened this issue Feb 22, 2025 · 3 comments
Open

Use colors in tab-completion in PyREPL #130472

ambv opened this issue Feb 22, 2025 · 3 comments
Labels
stdlib Python modules in the Lib dir topic-repl Related to the interactive shell type-feature A feature request or enhancement

Comments

@ambv
Copy link
Contributor

ambv commented Feb 22, 2025

The current tab-completer is somewhat basic. There's a pyrepl-based library called fancycompleter that allows for context-aware colorful tab completions. Much more useful and looks better.

Image

Linked PRs

@ambv ambv added topic-repl Related to the interactive shell type-feature A feature request or enhancement labels Feb 22, 2025
@picnixz picnixz added the stdlib Python modules in the Lib dir label Feb 22, 2025
@gaogaotiantian
Copy link
Member

I actually have a question about the overall color-related features - how many colors can we use at this point, and how should we use them? If I remember correctly, it took a while to land on this magenda color for some stuff, and we are planning to add much more colors for completion? How much we need to think about for color-blindness or different terminal backgrounds to use new colors? I always have this question because pdb could really use some colors, but it doesn't seem like we have a consensus about how we can use them.

@ambv
Copy link
Contributor Author

ambv commented Feb 23, 2025

@gaogaotiantian the plan is to add theming support in PYTHONSTARTUP. I'll be working on this in March.

@gaogaotiantian
Copy link
Member

Got it, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir topic-repl Related to the interactive shell type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants