From ae2e78d87c181298fde6a5dc5abcb82f80d0b64b Mon Sep 17 00:00:00 2001 From: Bruno Roque Date: Sat, 30 Jul 2022 03:00:03 +0200 Subject: [PATCH] Document CopyMode/QuickSelect Colors (#2324) * Document CopyMode/QuickSelect colors * Remove irrelevant line * Update docs/config/appearance.md Co-authored-by: Wez Furlong * Update docs/config/appearance.md Co-authored-by: Wez Furlong * Add note on copy_mode_active_highlight_*/selection_* Co-authored-by: Wez Furlong --- docs/config/appearance.md | 19 +++++++++++++++++++ docs/copymode.md | 3 ++- docs/quickselect.md | 3 ++- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/docs/config/appearance.md b/docs/config/appearance.md index 84c35ffcc..aa1c5acf2 100644 --- a/docs/config/appearance.md +++ b/docs/config/appearance.md @@ -84,6 +84,25 @@ return { -- holding input pending the result of input composition, change the cursor -- to this color to give a visual cue about the compose state. compose_cursor = 'orange', + + -- Colors for copy_mode and quick_select + -- available since: nightly builds only + -- In copy_mode, the color of the active text is: + -- 1. copy_mode_active_highlight_* if additional text was selected using the mouse + -- 2. selection_* otherwise + copy_mode_active_highlight_bg = { Color = "#000000" }, + -- use `AnsiColor` to specify one of the ansi color palette values + -- (index 0-15) using one of the names "Black", "Maroon", "Green", + -- "Olive", "Navy", "Purple", "Teal", "Silver", "Grey", "Red", "Lime", + -- "Yellow", "Blue", "Fuchsia", "Aqua" or "White". + copy_mode_active_highlight_fg = { AnsiColor = "Black" }, + copy_mode_inactive_highlight_bg = { Color = "#52ad70" }, + copy_mode_inactive_highlight_fg = { AnsiColor = "White" }, + + quick_select_label_bg = { Color = "peru" }, + quick_select_label_fg = { Color = "#ffffff" }, + quick_select_match_bg = { AnsiColor = "Navy" }, + quick_select_match_fg = { Color = "#ffffff" }, }, } ``` diff --git a/docs/copymode.md b/docs/copymode.md index 14d5f3752..6da3b6e2b 100644 --- a/docs/copymode.md +++ b/docs/copymode.md @@ -6,7 +6,8 @@ Copy mode allows you to make selections using the keyboard; no need to reach for your mouse or trackpad. Copy mode is similar to [quick select mode](quickselect.md) but is geared up for describing selections based on keyboard control, whereas quick select mode is used to quickly select and -copy commonly used patterns. +copy commonly used patterns. The [colors](config/appearance.md#defining-your-own-colors) +of the highlighted/selected text can be configured. The `ActivateCopyMode` key assignment is used to enter copy mode; it is bound to `CTRL-SHIFT-X` by default. diff --git a/docs/quickselect.md b/docs/quickselect.md index 0f95eceb8..3a371ca9e 100644 --- a/docs/quickselect.md +++ b/docs/quickselect.md @@ -17,7 +17,8 @@ URL and path fragments, git hashes, ip addresses and numbers. Matches are highlighted and shown with a one or two character prefix derived from the [quick_select_alphabet](config/lua/config/quick_select_alphabet.md) -configuration. +configuration. The [colors](config/appearance.md#defining-your-own-colors) +of the highlighted text can be configured. The bottom of the screen shows your input text along with a hint as to what to do next; typing in a highlighted prefix will cause that text to be selected and