PSReadLine icon indicating copy to clipboard operation
PSReadLine copied to clipboard

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

Open digitalguy99 opened this issue 1 year ago • 0 comments

Prerequisites

  • [X] 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 avatar Nov 12 '24 11:11 digitalguy99