summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-08-04 09:57:53 +0100
committerPhil Jones <philj56@gmail.com>2022-08-04 09:57:53 +0100
commit15f831bbb6f27d5a11879dd07f383400e83c97e3 (patch)
tree94b43f3236069c42cdd76cc58ba8d65ae589c5e6 /README.md
parentc0d3df8af0328280836ccfef85ae7e40eb3b6b87 (diff)
Improve pagination.
Pagination was broken in horizontal mode before, and in general tried to render too many results (leading to a cut-off last result). This commit fixes both of those, with the minor caveat that you can no longer scroll straight to the last result.
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index b2d8b0b..64cde1b 100644
--- a/README.md
+++ b/README.md
@@ -154,6 +154,12 @@ In roughly descending order, the most important options for performance are:
the first frame). Again, on battery power on my laptop, drawing a fullscreen
window (2880px × 1800px) takes ~20ms on the first frame, whereas a dmenu-like
ribbon (2880px × 60px) takes ~1ms.
+
+* `--num-results` - By default, tofi auto-detects how many results will fit in
+ the window. This is quite tricky when `--horizontal=true` is passed, and
+ leads to a few ms slowdown (only in this case). Setting a fixed number of
+ results will speed this up, but since this likely only applies to dmenu-like
+ themes (which are already very quick) it's probably not worth setting this.
* `--hint-font` - Getting really into it now, one of the remaining slow points
is hinting fonts. For the dmenu theme on battery power on my laptop, with a