Support border-{up,down} as the synonyms for border-{top,bottom}

This commit is contained in:
Junegunn Choi 2022-08-18 09:19:02 +09:00
parent 83515d5610
commit c1c355160d
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627
3 changed files with 11 additions and 9 deletions

View File

@ -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
------

View File

@ -189,7 +189,7 @@ 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
@ -201,9 +201,9 @@ Draw border around the finder
.br
.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

View File

@ -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