GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Use colors in tab-completion in PyREPL · Issue #130472 · python/cpython

Use colors in tab-completion in PyREPL #130472

New issue
Copy link
New issue
Copy link
Closed
Closed
Use colors in tab-completion in PyREPL#130472
Copy link
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shelltype-featureA feature request or enhancementA feature request or enhancement

Description

@ambv
ambv
opened on Feb 22, 2025
Issue body actions

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

  • gh-130472: Integrate fancycompleter with the new repl, to get colored tab completions #130473
  • gh-130472: Remove readline-only hacks from PyREPL completions #148161
  • gh-130472: Use fancycompleter in import completions #148188
Reacted by Hugo van Kemenade and Daniele

Activity

  1. ambv
    added
    topic-replRelated to the interactive shellRelated to the interactive shell
    type-featureA feature request or enhancementA feature request or enhancement
    on Feb 22, 2025
  2. picnixz
    added
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on Feb 22, 2025
  3. gaogaotiantian commented on Feb 22, 2025

    @gaogaotiantian
    gaogaotiantian
    on Feb 22, 2025
    Member
    More actions

    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.

  4. ambv commented on Feb 23, 2025

    @ambv
    ambv
    on Feb 23, 2025
    ContributorAuthor
    More actions

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

  5. gaogaotiantian commented on Feb 23, 2025

    @gaogaotiantian
    gaogaotiantian
    on Feb 23, 2025
    Member
    More actions

    Got it, thanks!

  6. pablogsal
    added 2 commits that reference this issue on Apr 5, 2026

    pythongh-130472: Fix pyrepl fancycompleter edge cases

    cba06ba

    gh-130472: Integrate fancycompleter with the new repl, to get colored…

    1c4408a
  7. StanFromIreland commented on Apr 6, 2026

    @StanFromIreland
    StanFromIreland
    on Apr 6, 2026
    Member
    More actions

    This introduced some regressions:

    Screencast.From.2026-04-06.10-41-01.mp4

    (yes, they are blinking)

  8. hugovk commented on Apr 6, 2026

    @hugovk
    hugovk
    on Apr 6, 2026
    Member
    More actions

    No blinking here, but webbrowser.GenericBrowser is not visible:

    Image

    And the strikethrough, italic, underline and dimmed text is surprising.

  9. StanFromIreland commented on Apr 6, 2026

    @StanFromIreland
    StanFromIreland
    on Apr 6, 2026
    Member
    More actions

    I found the root cause for some issues, though contrast issues remain: https://github.com/python/cpython/pull/130473/changes#r3038878981

  10. pablogsal commented on Apr 6, 2026

    @pablogsal
    pablogsal
    on Apr 6, 2026
    Member
    More actions

    Looking into it

  11. pablogsal
    added a commit that references this issue on Apr 6, 2026

    pythongh-130472: Remove readline-only hacks from PyREPL completions

    a7f83bd
  12. pablogsal commented on Apr 6, 2026

    @pablogsal
    pablogsal
    on Apr 6, 2026
    Member
    More actions

    I think #148161 should do the trick

  13. pablogsal
    added 2 commits that reference this issue on Apr 6, 2026

    pythongh-130472: Show PyREPL completion menus left to right

    986bc7c

    gh-130472: Remove readline-only hacks from PyREPL completions (#148161)

    f8293fa
  14. pablogsal
    closed this as completedon Apr 6, 2026
  15. tomasr8 commented on Apr 6, 2026

    @tomasr8
    tomasr8
    on Apr 6, 2026
    Member
    More actions

    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)

  16. tomasr8
    reopened this on Apr 6, 2026
  17. ljfp
    added 2 commits that reference this issue on Apr 25, 2026

    pythongh-130472: Integrate fancycompleter with the new repl, to get c…

    11843e1

    pythongh-130472: Remove readline-only hacks from PyREPL completions (p…

    b7788da
  18. pablogsal
    added a commit that references this issue on May 5, 2026

    gh-130472: Use fancycompleter in import completions (#148188)

    ed99680
  19. StanFromIreland
    closed this as completedon May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shelltype-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.