Skip to content
Myr

Add 'gap-line' color for the horizontal line on each gap

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Color inheritance: border >> list-border >> gap-line

authored by Junegunn Choi · committed by Junegunn Choi · parent 0a10d14 · Browse files · 4 files+13 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+13 added−1 removed

  • other:+13 added−1 removed

4 files+13 added−1 removed

modified:man/man1/fzf.1+1 added
226 unmodified lines
227 \fBborder \fRBorder around the window (\fB\-\-border\fR and \fB\-\-preview\fR)228 \fBlist\-border \fRBorder around the list section (\fB\-\-list\-border\fR)229 \fBscrollbar \fRScrollbar230 \fBseparator \fRHorizontal separator on info line231 \fBgap\-line \fRHorizontal line on each gap232 \fBpreview\-border \fRBorder around the preview window (\fB\-\-preview\fR)233 \fBpreview\-scrollbar \fRScrollbar234 \fBinput\-border \fRBorder around the input window (\fB\-\-input\-border\fR)235 \fBheader\-border \fRBorder around the header window (\fB\-\-header\-border\fR)
1568 unmodified lines
modified:src/tui/tui.go+9 added
339 unmodified lines
340 PreviewScrollbar ColorAttr341 BorderLabel ColorAttr342 ListLabel ColorAttr343 ListBorder ColorAttr344 GapLine ColorAttr345}346347type Event struct {348 Type EventType
306 unmodified lines
655 ColHeaderBorder ColorPair656 ColHeaderLabel ColorPair657 ColSeparator ColorPair658 ColScrollbar ColorPair659 ColGapLine ColorPair660 ColBorder ColorPair661 ColPreview ColorPair662 ColPreviewBorder ColorPair663 ColBorderLabel ColorPair
45 unmodified lines
709 InputLabel: ColorAttr{colUndefined, AttrUndefined},710 HeaderBg: ColorAttr{colUndefined, AttrUndefined},711 HeaderBorder: ColorAttr{colUndefined, AttrUndefined},712 HeaderLabel: ColorAttr{colUndefined, AttrUndefined},713 GapLine: ColorAttr{colUndefined, AttrUndefined},714 Nth: ColorAttr{colUndefined, AttrUndefined},715 }716}717
36 unmodified lines
754 InputLabel: ColorAttr{colDefault, AttrUndefined},755 HeaderBg: ColorAttr{colDefault, AttrUndefined},756 HeaderBorder: ColorAttr{colDefault, AttrUndefined},757 HeaderLabel: ColorAttr{colDefault, AttrUndefined},758 GapLine: ColorAttr{colDefault, AttrUndefined},759 Nth: ColorAttr{colUndefined, AttrUndefined},760 }761}762
33 unmodified lines
796 Scrollbar: ColorAttr{colUndefined, AttrUndefined},797 InputBg: ColorAttr{colUndefined, AttrUndefined},798 InputBorder: ColorAttr{colUndefined, AttrUndefined},799 InputLabel: ColorAttr{colUndefined, AttrUndefined},800 GapLine: ColorAttr{colUndefined, AttrUndefined},801 Nth: ColorAttr{colUndefined, AttrUndefined},802 }803 Dark256 = &ColorTheme{804 Colored: true,
30 unmodified lines
835 Scrollbar: ColorAttr{colUndefined, AttrUndefined},836 InputBg: ColorAttr{colUndefined, AttrUndefined},837 InputBorder: ColorAttr{colUndefined, AttrUndefined},838 InputLabel: ColorAttr{colUndefined, AttrUndefined},839 GapLine: ColorAttr{colUndefined, AttrUndefined},840 Nth: ColorAttr{colUndefined, AttrUndefined},841 }842 Light256 = &ColorTheme{843 Colored: true,
33 unmodified lines
877 InputLabel: ColorAttr{colUndefined, AttrUndefined},878 HeaderBg: ColorAttr{colUndefined, AttrUndefined},879 HeaderBorder: ColorAttr{colUndefined, AttrUndefined},880 HeaderLabel: ColorAttr{colUndefined, AttrUndefined},881 GapLine: ColorAttr{colUndefined, AttrUndefined},882 Nth: ColorAttr{colUndefined, AttrUndefined},883 }884}885
47 unmodified lines
933 theme.ListLabel = o(theme.BorderLabel, theme.ListLabel)934 theme.ListBorder = o(theme.Border, theme.ListBorder)935 theme.Separator = o(theme.ListBorder, theme.Separator)936 theme.Scrollbar = o(theme.ListBorder, theme.Scrollbar)937 theme.GapLine = o(theme.ListBorder, theme.GapLine)938 /*939 --color list-border:green940 --color scrollbar:red941 --color scrollbar:red,list-border:green
57 unmodified lines
999 ColSpinner = pair(theme.Spinner, theme.InputBg)1000 ColInfo = pair(theme.Info, theme.InputBg)1001 ColSeparator = pair(theme.Separator, theme.InputBg)1002 ColScrollbar = pair(theme.Scrollbar, theme.ListBg)1003 ColGapLine = pair(theme.GapLine, theme.ListBg)1004 ColBorder = pair(theme.Border, theme.Bg)1005 ColBorderLabel = pair(theme.BorderLabel, theme.Bg)1006 ColPreviewLabel = pair(theme.PreviewLabel, theme.PreviewBg)1007 ColPreview = pair(theme.PreviewFg, theme.PreviewBg)
15 unmodified lines
modified:src/options.go+2 added
1260 unmodified lines
1261 case "header", "header-fg":1262 mergeAttr(&theme.Header)1263 case "header-bg":1264 mergeAttr(&theme.HeaderBg)1265 case "gap-line":1266 mergeAttr(&theme.GapLine)1267 default:1268 fail()1269 }1270 }
1961 unmodified lines
modified:src/terminal.go+1 added-1 removed
955 unmodified lines
956 }957958 // Gap line959 if t.gap > 0 && len(*opts.GapLine) > 0 {960 t.gapLine, t.gapLineLen = t.ansiLabelPrinter(*opts.GapLine, &tui.ColListBorder, true)960 t.gapLine, t.gapLineLen = t.ansiLabelPrinter(*opts.GapLine, &tui.ColGapLine, true)961 }962963 if opts.Ellipsis != nil {964 t.ellipsis = *opts.Ellipsis
4895 unmodified lines