Skip to content

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

Open
@digitalguy99

Description

@digitalguy99

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-EnhancementIt's a feature request.Needs-Triage 🔍It's a new issue that core contributor team needs to triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions