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

Allow having separate MenuComplete selection color for input line and interactive menu #4269

Open
1 task done
digitalguy99 opened this issue Nov 12, 2024 · 0 comments
Open
1 task done
Labels
Issue-Enhancement It's a feature request. Needs-Triage 🔍 It's a new issue that core contributor team needs to triage.

Comments

@digitalguy99
Copy link

Prerequisites

  • Write a descriptive title.

Description of the new feature/enhancement

If I'm not mistaken, currently we are only able to set one color for both the MenuComplete selection on the input line and the interactive menu like the following:
image
But I want to do something like this:
image

Proposed technical implementation details (optional)

Maybe it would be great to be able to do something like the following:

$colors = @{
    "Selection" = "$([char]0x1b)[38;2;0;0;0;48;2;178;255;102m"  # Black text on green background for selected text in input line
    "CompletionSelection" = "$([char]0x1b)[38;2;255;255;255;48;2;0;0;255m"  # White text on blue background for selected completion in interactive menu
}
Set-PSReadLineOption -Colors $colors
@digitalguy99 digitalguy99 added the Issue-Enhancement It's a feature request. label Nov 12, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement It's a feature request. Needs-Triage 🔍 It's a new issue that core contributor team needs to triage.
Projects
None yet
Development

No branches or pull requests

1 participant