From 655bde52896b4d6995d0c1b349a7f34d0bb221b1 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Sat, 30 Jul 2022 09:17:52 +0100 Subject: Add option to colour matching portion of results. This was done by breaking the selected result into three parts, and rendering each separately. A side-effect is that ligatures split when a match ends inside them, but I think that's the correct behaviour (rather than highlighting the whole ligature). There may be issues with some non-latin languages that make much more extensive use of ligatures / combining characters, however. --- doc/tofi.5.scd | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc/tofi.5.scd') diff --git a/doc/tofi.5.scd b/doc/tofi.5.scd index 8341200..3993e78 100644 --- a/doc/tofi.5.scd +++ b/doc/tofi.5.scd @@ -85,6 +85,13 @@ options. Default: #F92672 +*selection-match-color*=_color_ + Color of the matching portion of the selected result. Any color that is + fully transparent (alpha = 0) will disable this highlighting. + See *COLORS* for more information. + + Default: #00000000 + *selection-padding*=_px_ Extra horizontal padding of the selection background. If _px_ = -1, the padding will fill the whole window width. -- cgit v1.2.3