From 12ecffd36183fe182e2a496f1dd6d8be1fc7c7a9 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 2 Jul 2014 23:46:32 +0100 Subject: [PATCH] Improve colalias documentation in README --- README.asciidoc | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/README.asciidoc b/README.asciidoc index 3b595f8d..c1333405 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -817,19 +817,27 @@ a single key name and +keys+ a list of keys. Color Aliases ------------- -Colorspec takes the form [,], they can be named using the -following command. +Color aliases give a name to a pair of foreground/background colors, and +can be used in place of them. -------------------------- -:colalias +:colalias -------------------------- -note that colspec can itself be a color alias. +fg_color and bg_color can be: + + * A named color: +black, red, green, yellow, blue, magenta, cyan, white+. + * +default+, which keeps the existing color + * An rgb color: +rgb:RRGGBB+, with RRGGBB the hexadecimal value of the color. + +not specifying bg_color uses +default+ + +In place of ++, another color alias name can be referenced. Using color alias instead of colorspec permits to change the effective colors afterward. -there are some builtins color aliases: +there are some builtins color aliases used by internal Kakoune functionalities: * +PrimarySelection+: main selection color for every selected character except the cursor