diff options
author | Mike <10135646+mikesmithgh@users.noreply.github.com> | 2023-06-10 01:48:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-10 14:48:29 +0900 |
commit | ce8a745fb4ea6d0725e76d13d97fdf4b7433331d (patch) | |
tree | 5f8143c23c41a68c47bcb17c6a51b401ad35cefe /src/options.go | |
parent | 3e9efd1401404da8afdcf9757ac9996f5c48290f (diff) |
Add new border style: 'thinblock' (#3327)
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
Diffstat (limited to 'src/options.go')
-rw-r--r-- | src/options.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/options.go b/src/options.go index 4db34640..69e5db91 100644 --- a/src/options.go +++ b/src/options.go @@ -63,7 +63,7 @@ const usage = `usage: fzf [options] (default: 10) --layout=LAYOUT Choose layout: [default|reverse|reverse-list] --border[=STYLE] Draw border around the finder - [rounded|sharp|bold|block|double|horizontal|vertical| + [rounded|sharp|bold|block|thinblock|double|horizontal|vertical| top|bottom|left|right|none] (default: rounded) --border-label=LABEL Label to print on the border --border-label-pos=COL Position of the border label @@ -546,6 +546,8 @@ func parseBorder(str string, optional bool) tui.BorderShape { return tui.BorderBold case "block": return tui.BorderBlock + case "thinblock": + return tui.BorderThinBlock case "double": return tui.BorderDouble case "horizontal": @@ -566,7 +568,7 @@ func parseBorder(str string, optional bool) tui.BorderShape { if optional && str == "" { return tui.DefaultBorderShape } - errorExit("invalid border style (expected: rounded|sharp|bold|block|double|horizontal|vertical|top|bottom|left|right|none)") + errorExit("invalid border style (expected: rounded|sharp|bold|block|thinblock|double|horizontal|vertical|top|bottom|left|right|none)") } return tui.BorderNone } @@ -1438,6 +1440,8 @@ func parsePreviewWindowImpl(opts *previewOpts, input string, exit func(string)) opts.border = tui.BorderBold case "border-block": opts.border = tui.BorderBlock + case "border-thinblock": + opts.border = tui.BorderThinBlock case "border-double": opts.border = tui.BorderDouble case "noborder", "border-none": |