summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2022-08-18 09:19:02 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2022-08-20 00:11:17 +0900
commitc1c355160d95fbf17237b6d02deb2535da16c7ec (patch)
tree242f86d38e988c4f1cb1cf9e801c1c3fa1027d37
parent83515d5610164b29888a917827cdfb6bde889c1c (diff)
downloadfzf-c1c355160d95fbf17237b6d02deb2535da16c7ec.tar.gz
Support border-{up,down} as the synonyms for border-{top,bottom}
-rw-r--r--CHANGELOG.md2
-rw-r--r--man/man1/fzf.114
-rw-r--r--src/options.go4
3 files changed, 11 insertions, 9 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3d2f8859..a20bede7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,8 @@ CHANGELOG
printf "\e[38;5;208mOption 1\e[m\nOption 2" | fzf --ansi
printf "\e[38:5:208mOption 1\e[m\nOption 2" | fzf --ansi
```
+- Support `border-{up,down}` as the synonyms for `border-{top,bottom}` in
+ `--preview-window`
0.32.1
------
diff --git a/man/man1/fzf.1 b/man/man1/fzf.1
index 0077561d..bc066de8 100644
--- a/man/man1/fzf.1
+++ b/man/man1/fzf.1
@@ -189,21 +189,21 @@ Choose the layout (default: default)
A synonym for \fB--layout=reverse\fB
.TP
-.BI "--border" [=STYLE]
+.BI "--border" [=BORDER_OPT]
Draw border around the finder
.br
-.BR rounded " Border with rounded corners (default)"
+.BR rounded " Border with rounded corners (default)"
.br
-.BR sharp " Border with sharp corners"
+.BR sharp " Border with sharp corners"
.br
-.BR horizontal " Horizontal lines above and below the finder"
+.BR horizontal " Horizontal lines above and below the finder"
.br
-.BR vertical " Vertical lines on each side of the finder"
+.BR vertical " Vertical lines on each side of the finder"
.br
-.BR top
+.BR top " (up)"
.br
-.BR bottom
+.BR bottom " (down)"
.br
.BR left
.br
diff --git a/src/options.go b/src/options.go
index 6882eee0..707efb2d 100644
--- a/src/options.go
+++ b/src/options.go
@@ -1228,9 +1228,9 @@ func parsePreviewWindow(opts *previewOpts, input string) {
opts.border = tui.BorderHorizontal
case "border-vertical":
opts.border = tui.BorderVertical
- case "border-top":
+ case "border-up", "border-top":
opts.border = tui.BorderTop
- case "border-bottom":
+ case "border-down", "border-bottom":
opts.border = tui.BorderBottom
case "border-left":
opts.border = tui.BorderLeft