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

Pass style with meta completion text #592

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

prurph
Copy link

@prurph prurph commented Jul 22, 2024

Hi there! I love ptpython, love that users can style it, and am hoping you'll consider a small PR to facilitate that.

There's currently no way to style the meta menu based on the type of completion. I personally find it much easier to read if the type is colored, but the completion element is always a consistent style, and this enables that. Here is an example:

Fancy Completion Menu 💅

This was achieved by setting styles like keyword.builtin-meta. Users who do not set these new styles will not see any change from their current experience, nor will users who do not use the multi-column setting and therefore don't see this text at all.

(You can ignore the "class" and "function" types in the screenshot; I added some extra types that jedi returns beyond the three—builtin, param, keyword—that ptpython currently maps to. I have not included that change in this PR. I would be happy to submit another PR for that if it would be welcome.)

Thanks for considering!

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.

1 participant