summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/config6
-rw-r--r--doc/tofi.5.md9
-rw-r--r--doc/tofi.5.scd8
3 files changed, 23 insertions, 0 deletions
diff --git a/doc/config b/doc/config
index 2acf247..219ef2e 100644
--- a/doc/config
+++ b/doc/config
@@ -277,6 +277,12 @@
# This option only has an effect when hide-input is set to true.
hidden-character = "*"
+ # Instead of printing the selected entry, print the 1-based index of
+ # the selection. This option has no effect in run or drun mode. If
+ # require-match is set to false, non-matching input will still result
+ # in the input being printed.
+ print-index = false
+
# If true, directly launch applications on selection when in drun mode.
# Otherwise, just print the command line to stdout.
drun-launch = false
diff --git a/doc/tofi.5.md b/doc/tofi.5.md
index dfef45a..3656143 100644
--- a/doc/tofi.5.md
+++ b/doc/tofi.5.md
@@ -117,6 +117,15 @@ options.
>
> Default: \*
+**print-index**=*true\|false*
+
+> Instead of printing the selected entry, print the 1-based index of the
+> selection. This option has no effect in run or drun mode. If
+> **require-match** is set to false, non-matching input will still
+> result in the input being printed.
+>
+> Default: false
+
**drun-launch**=*true\|false*
> If true, directly launch applications on selection when in drun mode.
diff --git a/doc/tofi.5.scd b/doc/tofi.5.scd
index 013dc57..de564c5 100644
--- a/doc/tofi.5.scd
+++ b/doc/tofi.5.scd
@@ -109,6 +109,14 @@ options.
Default: \*
+*print-index*=_true|false_
+ Instead of printing the selected entry, print the 1-based index of the
+ selection. This option has no effect in run or drun mode. If
+ *require-match* is set to false, non-matching input will still result in
+ the input being printed.
+
+ Default: false
+
*drun-launch*=_true|false_
If true, directly launch applications on selection when in drun mode.
Otherwise, just print the Exec line of the .desktop file to stdout.