Change default --scroll-off to 3

This commit is contained in:
Junegunn Choi 2024-05-24 19:25:50 +09:00
parent 7a97532547
commit 7e9a0fcdbd
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627
3 changed files with 3 additions and 2 deletions

View File

@ -30,6 +30,7 @@ CHANGELOG
fzf --bind 'space:print(space pressed)+accept' fzf --bind 'space:print(space pressed)+accept'
``` ```
- This is similar to `--expect` but it allows you to queue multiple arbitrary strings - This is similar to `--expect` but it allows you to queue multiple arbitrary strings
- Changed the default `--scroll-off` to 3, as we think it's a better default
- [`NO_COLOR`](https://no-color.org/) environment variable is now respected. If the variable is set, fzf defaults to `--no-color` unless otherwise specified. - [`NO_COLOR`](https://no-color.org/) environment variable is now respected. If the variable is set, fzf defaults to `--no-color` unless otherwise specified.
0.52.1 0.52.1

View File

@ -174,7 +174,7 @@ the query string is empty.
.TP .TP
.BI "--scroll-off=" "LINES" .BI "--scroll-off=" "LINES"
Number of screen lines to keep above or below when scrolling to the top or to Number of screen lines to keep above or below when scrolling to the top or to
the bottom (default: 0). the bottom (default: 3).
.TP .TP
.B "--no-hscroll" .B "--no-hscroll"
Disable horizontal scroll Disable horizontal scroll

View File

@ -534,7 +534,7 @@ func defaultOptions() *Options {
KeepRight: false, KeepRight: false,
Hscroll: true, Hscroll: true,
HscrollOff: 10, HscrollOff: 10,
ScrollOff: 0, ScrollOff: 3,
FileWord: false, FileWord: false,
InfoStyle: infoDefault, InfoStyle: infoDefault,
Separator: nil, Separator: nil,