Skip to content
Myr

doc: fuzzel.1: document --match-nth

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Daniel Eklöf · committed by Daniel Eklöf · parent 9fda61f · Browse files · 1 file+29 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+29 added−4 removed

  • other:+29 added−4 removed

1 file+29 added−4 removed

modified:doc/fuzzel.1.scd+29 added-4 removed
499 unmodified lines
500 This will display the entries *First* and *Second*. When one of501 them is selected, the full input line (tabs included) are printed502 on stdout.503504 Setting it to *0* is the same as not specifying *--with-nth* at all.504 Setting it to *0* is the same as not specifying *--with-nth* at505 all.506507*--accept-nth*=_N_|_FMT_508 Output the N:th column (1-based, tab separated by default, see509 *--nth-delimiter*) of each input line to stdout. dmenu mode only.
6 unmodified lines
516 ```517 printf "1\\tFirst\\n2\\tSecond" | fuzzel -d --accept-nth=2518 ```519519 This will display the entries *1 First* and *2 Second*. Depending520 on which one is selected, *First* or *Second* will be printed to stdout.520 This will display the entries *1 First* and *2 Second*. Depending521 on which one is selected, *First* or *Second* will be printed to522 stdout.523522 Setting it to *0* is the same as not specifying *--accept-nth* at all.524 Setting it to *0* is the same as not specifying *--accept-nth* at525 all.526527*--match-nth*=_N_|_FMT_528 Match against the N:th column (1-based, tab separated by default,529 see *--nth-delimiter*) of each input line. This is instead of530 matching against the displayed value (which can be changed with531 *--with-nth*).532533 The argument can also be a format string (i.e free-format text),534 where *{N}* expands to the N:th column. Ranges on the form535 *{N..M}* and *{N..}* (open-ended) are also supported.536537 Example:538 ```539 printf "123\t456\t789" | fuzzel -d --with-nth=1 --accept-nth=2 --match-nth=3540 ```541542 This will display the entry *123*, but matching will *only* be543 done against *789* (specifically, *123* will not match). When544 selected, *456* is printed on stdout.545546 Setting it to *0* is the same as not specifying *--match-nth* at547 all.548549*--nth-delimiter*=_CHARACTER_550 Field (column) delimiter for *--with-nth* and *--accept-nth*. Must551 be a single ASCII character.552
97 unmodified lines