summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2023-04-09 18:26:52 +0100
committerPhil Jones <philj56@gmail.com>2023-04-09 18:26:52 +0100
commitcfab8efa406c7ff1063cb6ef89cb41028d0e826e (patch)
tree35f5931295bcd430189002fc68abf1acdc03bf9c /doc
parent0fe8548a6534a80aa81c288629799a752f0060c2 (diff)
Add --auto-accept-single option.
Diffstat (limited to 'doc')
-rw-r--r--doc/config5
-rw-r--r--doc/tofi.5.md8
-rw-r--r--doc/tofi.5.scd7
3 files changed, 20 insertions, 0 deletions
diff --git a/doc/config b/doc/config
index 4eeb59c..69bddab 100644
--- a/doc/config
+++ b/doc/config
@@ -257,6 +257,11 @@
# In drun mode, this is always true.
require-match = true
+ # If true, automatically accept a result if it is the only one
+ # remaining. If there's only one result on startup, window creation is
+ # skipped altogether.
+ auto-accept-single = false
+
# If true, typed input will be hidden, and what is displayed (if
# anything) is determined by the hidden-character option.
hide-input = false
diff --git a/doc/tofi.5.md b/doc/tofi.5.md
index e4aaf7b..e976ef7 100644
--- a/doc/tofi.5.md
+++ b/doc/tofi.5.md
@@ -89,6 +89,14 @@ options.
>
> Default: true
+**auto-accept-single**=*true\|false*
+
+> If true, automatically accept a result if it is the only one
+> remaining. If there's only one result on startup, window creation is
+> skipped altogether.
+>
+> Default: false
+
**hide-input**=*true\|false*
> If true, typed input will be hidden, and what is displayed (if
diff --git a/doc/tofi.5.scd b/doc/tofi.5.scd
index 6e97ae3..29547e0 100644
--- a/doc/tofi.5.scd
+++ b/doc/tofi.5.scd
@@ -76,6 +76,13 @@ options.
Default: true
+*auto-accept-single*=_true|false_
+ If true, automatically accept a result if it is the only one remaining.
+ If there's only one result on startup, window creation is skipped
+ altogether.
+
+ Default: false
+
*hide-input*=_true|false_
If true, typed input will be hidden, and what is displayed (if
anything) is determined by the *hidden-character* option.