From 6c47cf7892d0f212b04e7b798e53c120f51022d7 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Tue, 20 Dec 2022 23:53:20 +0000 Subject: Add text cursor support. This turned out to be much more complex than anticipated, and the potential for bugs is therefore quite high. --- doc/tofi.5.md | 45 +++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 41 insertions(+), 4 deletions(-) (limited to 'doc/tofi.5.md') diff --git a/doc/tofi.5.md b/doc/tofi.5.md index 622858f..c9c5acc 100644 --- a/doc/tofi.5.md +++ b/doc/tofi.5.md @@ -34,7 +34,13 @@ options. **hide-cursor**=*true\|false* -> Hide the cursor. +> Hide the mouse cursor. +> +> Default: false + +**text-cursor**=*true\|false* + +> Show a text cursor in the input field. > > Default: false @@ -277,7 +283,7 @@ options. **placeholder-background-padding**=*directional* > Extra padding of the placeholder input text background. See -> **DIRECTIONAL** VALUES for more information. +> **DIRECTIONAL VALUES** for more information. > > Default: 0 @@ -312,6 +318,37 @@ options. > > Default: 0 +**text-cursor-style**=*bar\|block\|underscore* + +> Style of the text cursor (if shown). +> +> Default: bar + +**text-cursor-color**=*color* + +> Color of the text cursor. +> +> Default: same as **input-color** + +**text-cursor-background**=*color* + +> Color of text behind the text cursor when **text-cursor-style**=block. +> +> Default: same as **background-color** + +**text-cursor-corner-radius**=*px* + +> Corner radius of the text cursor. +> +> Default: 0 + +**text-cursor-thickness**=*px* + +> Thickness of the bar and underscore text cursors. +> +> Default: font-dependent when **text-cursor-style**=underscore, 2 +> otherwise. + **default-result-color**=*color* > Default color of result text. See **COLORS** for more information. @@ -407,8 +444,8 @@ options. **selection-background-padding**=*directional* -> Extra padding of the selected result background. See **DIRECTIONAL -> VALUES** for more information. +> Extra padding of the selected result background. See **DIRECTIONAL** +> VALUES for more information. > > Default: 0 -- cgit v1.2.3