summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-07-29 12:44:02 +0100
committerPhil Jones <philj56@gmail.com>2022-07-29 14:32:35 +0100
commit82d4c237d1f501cd7b0b8afc53ed87fd3ccf0e18 (patch)
tree87f81278d8bbecaab1f8030f1fe5846e9a5ce28e /doc
parent96fb966e7b89846fa8305d5dc521a113fcfab82b (diff)
Add --selection-padding option.
This adds some extra padding in the selection background, rather than tightly wrapping the selection text.
Diffstat (limited to 'doc')
-rw-r--r--doc/config3
-rw-r--r--doc/tofi.5.md6
-rw-r--r--doc/tofi.5.scd5
3 files changed, 14 insertions, 0 deletions
diff --git a/doc/config b/doc/config
index 77ff7ad..eb360e4 100644
--- a/doc/config
+++ b/doc/config
@@ -64,6 +64,9 @@
# Minimum width of input in horizontal mode.
min-input-width = 0
+ # Extra horizontal padding of the selection background in pixels.
+ selection-padding = 0
+
#
### Window layout
#
diff --git a/doc/tofi.5.md b/doc/tofi.5.md
index 2f3a38d..93db9c7 100644
--- a/doc/tofi.5.md
+++ b/doc/tofi.5.md
@@ -94,6 +94,12 @@ options.
>
> Default: \#F92672
+**selection-padding**=*px*
+
+> Extra horizontal padding of the selection background.
+>
+> Default: 0
+
**selection-background**=*color*
> Background color of selected result. See **COLORS** for more
diff --git a/doc/tofi.5.scd b/doc/tofi.5.scd
index b57c800..53ea3b3 100644
--- a/doc/tofi.5.scd
+++ b/doc/tofi.5.scd
@@ -85,6 +85,11 @@ options.
Default: #F92672
+*selection-padding*=_px_
+ Extra horizontal padding of the selection background.
+
+ Default: 0
+
*selection-background*=_color_
Background color of selected result. See *COLORS* for more information.