1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-11 22:37:11 +03:00

Document CopyMode/QuickSelect Colors (#2324)

* Document CopyMode/QuickSelect colors

* Remove irrelevant line

* Update docs/config/appearance.md

Co-authored-by: Wez Furlong <wez@wezfurlong.org>

* Update docs/config/appearance.md

Co-authored-by: Wez Furlong <wez@wezfurlong.org>

* Add note on copy_mode_active_highlight_*/selection_*

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
This commit is contained in:
Bruno Roque 2022-07-30 03:00:03 +02:00 committed by GitHub
parent 5a0935626c
commit ae2e78d87c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 2 deletions

View File

@ -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" },
},
}
```

View File

@ -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.

View File

@ -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