mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-14 11:45:48 -07:00
@@ -582,6 +582,7 @@ type Options struct {
|
||||
HeaderLines int
|
||||
HeaderFirst bool
|
||||
Gap int
|
||||
GapLine *string
|
||||
Ellipsis *string
|
||||
Scrollbar *string
|
||||
Margin [4]sizeSpec
|
||||
@@ -2567,6 +2568,15 @@ func parseOptions(index *int, opts *Options, allArgs []string) error {
|
||||
}
|
||||
case "--no-gap":
|
||||
opts.Gap = 0
|
||||
case "--gap-line":
|
||||
if given, bar := optionalNextString(); given {
|
||||
opts.GapLine = &bar
|
||||
} else {
|
||||
opts.GapLine = nil
|
||||
}
|
||||
case "--no-gap-line":
|
||||
empty := ""
|
||||
opts.GapLine = &empty
|
||||
case "--ellipsis":
|
||||
str, err := nextString("ellipsis string required")
|
||||
if err != nil {
|
||||
@@ -2987,6 +2997,14 @@ func postProcessOptions(opts *Options) error {
|
||||
opts.Pointer = &defaultPointer
|
||||
}
|
||||
|
||||
if opts.GapLine == nil {
|
||||
defaultGapLine := "┈"
|
||||
if !opts.Unicode {
|
||||
defaultGapLine = "-"
|
||||
}
|
||||
opts.GapLine = &defaultGapLine
|
||||
}
|
||||
|
||||
markerLen := 1
|
||||
if opts.Marker == nil {
|
||||
if opts.MarkerMulti != nil && opts.MarkerMulti[0] == "" {
|
||||
|
Reference in New Issue
Block a user