From ca75d29bd2208ea7e2f5ccdb2b146953419be9b2 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Wed, 16 Nov 2022 13:36:25 +0000 Subject: Add placeholder text options. --- doc/config | 6 ++++++ doc/tofi.5.md | 12 ++++++++++++ doc/tofi.5.scd | 10 ++++++++++ 3 files changed, 28 insertions(+) (limited to 'doc') diff --git a/doc/config b/doc/config index 9f15f35..a43b258 100644 --- a/doc/config +++ b/doc/config @@ -39,6 +39,9 @@ # Default text text-color = #FFFFFF + # Placeholder input text + placeholder-color = #FFFFFFA8 + # Selection text selection-color = #F92672 @@ -57,6 +60,9 @@ # Extra horizontal padding between prompt and input. prompt-padding = 0 + # Placeholder input text. + placeholder-text = "" + # Maximum number of results to display. # If 0, tofi will draw as many results as it can fit in the window. num-results = 0 diff --git a/doc/tofi.5.md b/doc/tofi.5.md index 73a5699..ff616ff 100644 --- a/doc/tofi.5.md +++ b/doc/tofi.5.md @@ -181,6 +181,18 @@ options. > > Default: 0 +**placeholder-text**=*string* + +> Placeholder input text. +> +> Default: "" + +**placeholder-color**=*string* + +> Color of placeholder input text. See **COLORS** for more information. +> +> Default: \#FFFFFFA8 + **num-results**=*n* > Maximum number of results to display. If *n* = 0, tofi will draw as diff --git a/doc/tofi.5.scd b/doc/tofi.5.scd index 25fdf0b..f809103 100644 --- a/doc/tofi.5.scd +++ b/doc/tofi.5.scd @@ -161,6 +161,16 @@ options. Default: 0 +*placeholder-text*=_string_ + Placeholder input text. + + Default: "" + +*placeholder-color*=_string_ + Color of placeholder input text. See *COLORS* for more information. + + Default: #FFFFFFA8 + *num-results*=_n_ Maximum number of results to display. If _n_ = 0, tofi will draw as many results as it can fit in the window. -- cgit v1.2.3