summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-05-24 19:25:50 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-05-24 19:25:50 +0900
commit7e9a0fcdbd1c9399a2ebb891360c9ee9436b2752 (patch)
tree65ca5ed8c300c1f846e3b980224198d4645b606d
parent7a97532547e7b349444bc8163226d640ef4563c1 (diff)
Change default --scroll-off to 3
-rw-r--r--CHANGELOG.md1
-rw-r--r--man/man1/fzf.12
-rw-r--r--src/options.go2
3 files changed, 3 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d7b6ba13..18657808 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -30,6 +30,7 @@ CHANGELOG
fzf --bind 'space:print(space pressed)+accept'
```
- 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.
0.52.1
diff --git a/man/man1/fzf.1 b/man/man1/fzf.1
index 13fcc18b..33c67b2c 100644
--- a/man/man1/fzf.1
+++ b/man/man1/fzf.1
@@ -174,7 +174,7 @@ the query string is empty.
.TP
.BI "--scroll-off=" "LINES"
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
.B "--no-hscroll"
Disable horizontal scroll
diff --git a/src/options.go b/src/options.go
index 2d0112d8..202bfda9 100644
--- a/src/options.go
+++ b/src/options.go
@@ -534,7 +534,7 @@ func defaultOptions() *Options {
KeepRight: false,
Hscroll: true,
HscrollOff: 10,
- ScrollOff: 0,
+ ScrollOff: 3,
FileWord: false,
InfoStyle: infoDefault,
Separator: nil,