add match-text style + config setting for ide menu (#11670)

the match-text style (https://github.com/nushell/reedline/pull/730) is
now configurable via the config.nu file.
the option ``correct_cursor_pos`` can now also be set in the config.nu
file.
This commit is contained in:
maxomatic458
2024-01-29 16:59:01 +01:00
committed by GitHub
parent 0e023eaa84
commit 86dd045554
3 changed files with 53 additions and 2 deletions

View File

@ -267,6 +267,8 @@ $env.config = {
text: green
selected_text: {attr: r}
description_text: yellow
match_text: {attr: u}
selected_match_text: {attr: ur}
}
}
{
@ -286,11 +288,20 @@ $env.config = {
max_description_width: 50
max_description_height: 10
description_offset: 1
# If true, the cursor pos will be corrected, so the suggestions match up with the typed text
#
# C:\> str
# str join
# str trim
# str split
correct_cursor_pos: false
}
style: {
text: green
selected_text: green_reverse
selected_text: {attr: r}
description_text: yellow
match_text: {attr: u}
selected_match_text: {attr: ur}
}
}
{