diff options
author | Phil Jones <philj56@gmail.com> | 2023-05-14 19:01:28 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2023-05-14 19:03:44 +0100 |
commit | 6060daaee163918f97af4db09bba9a7f9272d6c1 (patch) | |
tree | 853139b0373c3673fd7b50cc684f46f0f852b692 /doc | |
parent | dcc12cb8845e52943fbc6d42ec86f3b0acf80b76 (diff) |
Add --print-index option.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/config | 6 | ||||
-rw-r--r-- | doc/tofi.5.md | 9 | ||||
-rw-r--r-- | doc/tofi.5.scd | 8 |
3 files changed, 23 insertions, 0 deletions
@@ -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. |