summaryrefslogtreecommitdiff
path: root/doc/tofi.5.md
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-12-20 23:53:20 +0000
committerPhil Jones <philj56@gmail.com>2022-12-21 00:15:16 +0000
commit6c47cf7892d0f212b04e7b798e53c120f51022d7 (patch)
treec44b910e059d5bdcf991b2239de8d29cb007bed6 /doc/tofi.5.md
parent108550fcf8d3ed8664c0e05defceaf20b4d2b49e (diff)
Add text cursor support.
This turned out to be much more complex than anticipated, and the potential for bugs is therefore quite high.
Diffstat (limited to 'doc/tofi.5.md')
-rw-r--r--doc/tofi.5.md45
1 files changed, 41 insertions, 4 deletions
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