From 88e713b981c8760c255b19009918ee94f60fbdc1 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Tue, 26 Jul 2022 17:51:31 +0100 Subject: Add automatic detection of number of results. Tofi will now try to autodetect how many results can be drawn if --num-results=0 is specified, which is now the default. --- doc/tofi.5.md | 5 +++-- doc/tofi.5.scd | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/tofi.5.md b/doc/tofi.5.md index 55e615f..916fc22 100644 --- a/doc/tofi.5.md +++ b/doc/tofi.5.md @@ -83,9 +83,10 @@ options. **num-results**=*n* -> Maximum number of results to display. +> Maximum number of results to display. If *n* = 0, tofi will draw as +> many results as it can fit in the window. > -> Default: 5 +> Default: 0 **selection-color**=*color* diff --git a/doc/tofi.5.scd b/doc/tofi.5.scd index 41c5fe9..3ad7015 100644 --- a/doc/tofi.5.scd +++ b/doc/tofi.5.scd @@ -75,9 +75,10 @@ options. Default: "run: " *num-results*=_n_ - Maximum number of results to display. + Maximum number of results to display. If _n_ = 0, tofi will draw as + many results as it can fit in the window. - Default: 5 + Default: 0 *selection-color*=_color_ Color of selected result. See *COLORS* for more information. -- cgit v1.2.3