diff options
author | Phil Jones <philj56@gmail.com> | 2022-08-04 09:57:53 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-08-04 09:57:53 +0100 |
commit | 15f831bbb6f27d5a11879dd07f383400e83c97e3 (patch) | |
tree | 94b43f3236069c42cdd76cc58ba8d65ae589c5e6 /README.md | |
parent | c0d3df8af0328280836ccfef85ae7e40eb3b6b87 (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.md | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |