You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Activity
gaogaotiantian commentedon Feb 22, 2025
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 commentedon Feb 23, 2025
@gaogaotiantian the plan is to add theming support in PYTHONSTARTUP. I'll be working on this in March.
gaogaotiantian commentedon Feb 23, 2025
Got it, thanks!
pythongh-130472: Fix pyrepl fancycompleter edge cases
gh-130472: Integrate fancycompleter with the new repl, to get colored…
StanFromIreland commentedon Apr 6, 2026
This introduced some regressions:
Screencast.From.2026-04-06.10-41-01.mp4
(yes, they are blinking)
hugovk commentedon Apr 6, 2026
No blinking here, but
webbrowser.GenericBrowseris not visible:And the strikethrough, italic, underline and dimmed text is surprising.
StanFromIreland commentedon Apr 6, 2026
I found the root cause for some issues, though contrast issues remain: https://github.com/python/cpython/pull/130473/changes#r3038878981
pablogsal commentedon Apr 6, 2026
Looking into it
pythongh-130472: Remove readline-only hacks from PyREPL completions
pablogsal commentedon Apr 6, 2026
I think #148161 should do the trick
pythongh-130472: Show PyREPL completion menus left to right
gh-130472: Remove readline-only hacks from PyREPL completions (#148161)
tomasr8 commentedon Apr 6, 2026
If it's ok, I'll reopen this for #148188 since it's related (I can also open a separate issue if you prefer though)
pythongh-130472: Integrate fancycompleter with the new repl, to get c…
pythongh-130472: Remove readline-only hacks from PyREPL completions (p…
gh-130472: Use fancycompleter in import completions (#148188)