diff options
| author | Oliver Kiddle <opk@zsh.org> | 2025-11-17 04:32:14 +0100 |
|---|---|---|
| committer | Oliver Kiddle <opk@zsh.org> | 2025-11-17 04:32:14 +0100 |
| commit | 5411128bf3c83516da8fdc4cb3d6187f243b6954 (patch) | |
| tree | bbc22904c21ac4ec3f71cc72ffcb2f1e7bfdb697 /Doc/Zsh/zle.yo | |
| parent | 54083: fix for cursor shape in viopp mode (diff) | |
| download | zsh-5411128bf3c83516da8fdc4cb3d6187f243b6954.tar zsh-5411128bf3c83516da8fdc4cb3d6187f243b6954.tar.gz zsh-5411128bf3c83516da8fdc4cb3d6187f243b6954.tar.bz2 zsh-5411128bf3c83516da8fdc4cb3d6187f243b6954.tar.lz zsh-5411128bf3c83516da8fdc4cb3d6187f243b6954.tar.xz zsh-5411128bf3c83516da8fdc4cb3d6187f243b6954.tar.zst zsh-5411128bf3c83516da8fdc4cb3d6187f243b6954.zip | |
54074, 54082: add an opaque key for use in zle_highlight/region_highlight to allow mixing of colours
Diffstat (limited to 'Doc/Zsh/zle.yo')
| -rw-r--r-- | Doc/Zsh/zle.yo | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo index 315048887..a0d97a0c8 100644 --- a/Doc/Zsh/zle.yo +++ b/Doc/Zsh/zle.yo @@ -2905,7 +2905,14 @@ With the other fields 30 applies by default for tt(special), 20 for tt(region) and tt(isearch) and 15 for tt(paste). Highlighting defined in tt(region_highlight) defaults to layer 10 and would take precedence over highlighting for any fields of tt(zle_highlight) that are assigned to the same -layer.) +layer. +) +item(tt(opacity=)var(fg)tt(%)[tt(/)var(bg)tt(%)])( +Instead of replacing colors in higher layers, the colors can be mixed. The +opacity is specified as a percentage where tt(0%) is fully transparent and +tt(100%) represents the default behavior of replacing the underlying colour. +If a single value is specified, it applies to both foreground and background. +) enditem() In addition, the simple highlighting types can be prefixed with tt("no") to |
