Skip to content
Myr

Add --list-border for additional border around the list section

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

Close #4148

authored by Junegunn Choi · committed by Junegunn Choi · parent b8d2b0d · Browse files · 11 files+620 added−329 removed
This commit

State

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

Diff stats

11 files+620 added−329 removed

  • other:+620 added−329 removed

11 files+620 added−329 removed

modified:man/man1/fzf.1+33 added-27 removed
550 unmodified lines
551 \fB16 \fRColor scheme for 16-color terminal552 \fBbw \fRNo colors (equivalent to \fB\-\-no\-color\fR)553554.B COLOR NAMES:555 \fBfg \fRText556 \fBselected\-fg \fRSelected line text557 \fBpreview\-fg \fRPreview window text558 \fBbg \fRBackground559 \fBselected\-bg \fRSelected line background560 \fBpreview\-bg \fRPreview window background561 \fBhl \fRHighlighted substrings562 \fBselected\-hl \fRHighlighted substrings in the selected line563 \fBcurrent\-fg (fg+) \fRText (current line)564 \fBcurrent\-bg (bg+) \fRBackground (current line)565 \fBgutter \fRGutter on the left566 \fBcurrent\-hl (hl+) \fRHighlighted substrings (current line)567 \fBquery \fRQuery string568 \fBdisabled \fRQuery string when search is disabled (\fB\-\-disabled\fR)569 \fBinfo \fRInfo line (match counters)570 \fBborder \fRBorder around the window (\fB\-\-border\fR and \fB\-\-preview\fR)571 \fBscrollbar \fRScrollbar572 \fBpreview\-border \fRBorder around the preview window (\fB\-\-preview\fR)573 \fBpreview\-scrollbar \fRScrollbar574 \fBseparator \fRHorizontal separator on info line575 \fBlabel \fRBorder label (\fB\-\-border\-label\fR and \fB\-\-preview\-label\fR)576 \fBpreview\-label \fRBorder label of the preview window (\fB\-\-preview\-label\fR)577 \fBprompt \fRPrompt578 \fBpointer \fRPointer to the current line579 \fBmarker \fRMulti\-select marker580 \fBspinner \fRStreaming input indicator581 \fBheader \fRHeader555 \fBfg \fRText556 \fBlist\-fg \fRText in the list section557 \fBselected\-fg \fRSelected line text558 \fBpreview\-fg \fRPreview window text559 \fBbg \fRBackground560 \fBlist\-bg \fRBackground in the list section561 \fBselected\-bg \fRSelected line background562 \fBpreview\-bg \fRPreview window background563 \fBhl \fRHighlighted substrings564 \fBselected\-hl \fRHighlighted substrings in the selected line565 \fBcurrent\-fg (fg+) \fRText (current line)566 \fBcurrent\-bg (bg+) \fRBackground (current line)567 \fBgutter \fRGutter on the left568 \fBcurrent\-hl (hl+) \fRHighlighted substrings (current line)569 \fBquery \fRQuery string570 \fBdisabled \fRQuery string when search is disabled (\fB\-\-disabled\fR)571 \fBinfo \fRInfo line (match counters)572 \fBborder \fRBorder around the window (\fB\-\-border\fR and \fB\-\-preview\fR)573 \fBlist\-border \fRBorder around the list section (\fB\-\-list\-border\fR)574 \fBscrollbar \fRScrollbar575 \fBseparator \fRHorizontal separator on info line576 \fBpreview\-border \fRBorder around the preview window (\fB\-\-preview\fR)577 \fBpreview\-scrollbar \fRScrollbar578 \fBlabel \fRBorder label (\fB\-\-border\-label\fR, \fB\-\-list\-label\fR, and \fB\-\-preview\-label\fR)579 \fBlist\-label \fRBorder label of the list section (\fB\-\-list\-label\fR)580 \fBpreview\-label \fRBorder label of the preview window (\fB\-\-preview\-label\fR)581 \fBprompt \fRPrompt582 \fBpointer \fRPointer to the current line583 \fBmarker \fRMulti\-select marker584 \fBspinner \fRStreaming input indicator585 \fBheader \fRHeader586587.B ANSI COLORS:588 \fB\-1 \fRDefault terminal foreground/background color589 \fB \fR(or the original color of the text)
853 unmodified lines
1443 \fBbeginning\-of\-line\fR \fIctrl\-a home\fR1444 \fBcancel\fR (clear query string if not empty, abort fzf otherwise)1445 \fBchange\-border\-label(...)\fR (change \fB\-\-border\-label\fR to the given string)1446 \fBchange\-header(...)\fR (change header to the given string; doesn't affect \fB\-\-header\-lines\fR)1447 \fBchange\-list\-label(...)\fR (change \fB\-\-list\-label\fR to the given string)1448 \fBchange\-multi\fR (enable multi-select mode with no limit)1449 \fBchange\-multi(...)\fR (enable multi-select mode with a limit or disable it with 0)1450 \fBchange\-preview(...)\fR (change \fB\-\-preview\fR option)1451 \fBchange\-preview\-label(...)\fR (change \fB\-\-preview\-label\fR to the given string)
76 unmodified lines
1528 \fBtrack\-current\fR (track the current item; automatically disabled if focus changes)1529 \fBtransform(...)\fR (transform states using the output of an external command)1530 \fBtransform\-border\-label(...)\fR (transform border label using an external command)1531 \fBtransform\-header(...)\fR (transform header using an external command)1532 \fBtransform\-list\-label(...)\fR (transform list label using an external command)1533 \fBtransform\-preview\-label(...)\fR (transform preview label using an external command)1534 \fBtransform\-prompt(...)\fR (transform prompt string using an external command)1535 \fBtransform\-query(...)\fR (transform query string using an external command)1536 \fBunbind(...)\fR (unbind bindings)
178 unmodified lines
modified:src/tui/dummy.go+2 added-1 removed
28 unmodified lines
29 StrikeThrough = Attr(1 << 7)30)3132func (r *FullscreenRenderer) Init() error { return nil }33func (r *FullscreenRenderer) DefaultTheme() *ColorTheme { return nil }34func (r *FullscreenRenderer) Resize(maxHeightFunc func(int) int) {}35func (r *FullscreenRenderer) Pause(bool) {}36func (r *FullscreenRenderer) Resume(bool, bool) {}37func (r *FullscreenRenderer) PassThrough(string) {}
10 unmodified lines
48func (r *FullscreenRenderer) MaxY() int { return 0 }4950func (r *FullscreenRenderer) RefreshWindows(windows []Window) {}5151func (r *FullscreenRenderer) NewWindow(top int, left int, width int, height int, preview bool, borderStyle BorderStyle) Window {52func (r *FullscreenRenderer) NewWindow(top int, left int, width int, height int, windowType WindowType, borderStyle BorderStyle, erase bool) Window {53 return nil54}
modified:src/tui/light_unix.go+1 added-1 removed
16 unmodified lines
17func IsLightRendererSupported() bool {18 return true19}2021func (r *LightRenderer) defaultTheme() *ColorTheme {21func (r *LightRenderer) DefaultTheme() *ColorTheme {22 if strings.Contains(os.Getenv("TERM"), "256") {23 return Dark25624 }25 colors, err := exec.Command("tput", "colors").Output()
100 unmodified lines
modified:src/tui/light_windows.go+1 added-1 removed
37 unmodified lines
38 windows.SetConsoleMode(windows.Stderr, oldState)39 return canSetVt10040}4142func (r *LightRenderer) defaultTheme() *ColorTheme {42func (r *LightRenderer) DefaultTheme() *ColorTheme {43 // the getenv check is borrowed from here: https://github.com/gdamore/tcell/commit/0c473b86d82f68226a142e96cc5a34c5a29b3690#diff-b008fcd5e6934bf31bc3d33bf49f47d8R178:44 if !IsLightRendererSupported() || os.Getenv("ConEmuPID") != "" || os.Getenv("TCELL_TRUECOLOR") == "disable" {45 return Default1646 }
111 unmodified lines
modified:src/tui/light.go+47 added-34 removed
114 unmodified lines
115 origStateOutput uint32116}117118type LightWindow struct {119 renderer *LightRenderer120 colored bool121 preview bool122 border BorderStyle123 top int124 left int125 width int126 height int127 posx int128 posy int129 tabstop int130 fg Color131 bg Color119 renderer *LightRenderer120 colored bool121 windowType WindowType122 border BorderStyle123 top int124 left int125 width int126 height int127 posx int128 posy int129 tabstop int130 fg Color131 bg Color132}133134func NewLightRenderer(ttyin *os.File, theme *ColorTheme, forceBlack bool, mouse bool, tabstop int, clearOnExit bool, fullscreen bool, maxHeightFunc func(int) int) (Renderer, error) {135 out, err := openTtyOut()
37 unmodified lines
173 if err := r.initPlatform(); err != nil {174 return err175 }176 r.updateTerminalSize()177 initTheme(r.theme, r.defaultTheme(), r.forceBlack)177178 if r.fullscreen {179 r.smcup()180 } else {
597 unmodified lines
778 }779 return r.height780}781783func (r *LightRenderer) NewWindow(top int, left int, width int, height int, preview bool, borderStyle BorderStyle) Window {782func (r *LightRenderer) NewWindow(top int, left int, width int, height int, windowType WindowType, borderStyle BorderStyle, erase bool) Window {783 w := &LightWindow{785 renderer: r,786 colored: r.theme.Colored,787 preview: preview,788 border: borderStyle,789 top: top,790 left: left,791 width: width,792 height: height,793 tabstop: r.tabstop,794 fg: colDefault,795 bg: colDefault}796 if preview {797 w.fg = r.theme.PreviewFg.Color798 w.bg = r.theme.PreviewBg.Color799 } else {784 renderer: r,785 colored: r.theme.Colored,786 windowType: windowType,787 border: borderStyle,788 top: top,789 left: left,790 width: width,791 height: height,792 tabstop: r.tabstop,793 fg: colDefault,794 bg: colDefault}795 switch windowType {796 case WindowBase:797 w.fg = r.theme.Fg.Color798 w.bg = r.theme.Bg.Color799 case WindowList:800 w.fg = r.theme.ListFg.Color801 w.bg = r.theme.ListBg.Color802 case WindowPreview:803 w.fg = r.theme.PreviewFg.Color804 w.bg = r.theme.PreviewBg.Color805 }803 if !w.bg.IsDefault() && w.border.shape != BorderNone {806 if erase && !w.bg.IsDefault() && w.border.shape != BorderNone {807 // fzf --color bg:blue --border --padding 1,2808 w.Erase()809 }810 w.drawBorder(false)811 return w
36 unmodified lines
848}849850func (w *LightWindow) drawBorderHorizontal(top, bottom bool) {851 color := ColBorder848 if w.preview {852 switch w.windowType {853 case WindowList:854 color = ColListBorder855 case WindowPreview:856 color = ColPreviewBorder857 }858 hw := runeWidth(w.border.top)859 if top {
9 unmodified lines
869870func (w *LightWindow) drawBorderVertical(left, right bool) {871 vw := runeWidth(w.border.left)872 color := ColBorder866 if w.preview {873 switch w.windowType {874 case WindowList:875 color = ColListBorder876 case WindowPreview:877 color = ColPreviewBorder878 }879 for y := 0; y < w.height; y++ {880 if left {
11 unmodified lines
892893func (w *LightWindow) drawBorderAround(onlyHorizontal bool) {894 w.Move(0, 0)895 color := ColBorder886 if w.preview {896 switch w.windowType {897 case WindowList:898 color = ColListBorder899 case WindowPreview:900 color = ColPreviewBorder901 }902 hw := runeWidth(w.border.top)903 tcw := runeWidth(w.border.topLeft) + runeWidth(w.border.topRight)
281 unmodified lines
modified:src/tui/tcell.go+34 added-19 removed
38 unmodified lines
39type Attr int324041type TcellWindow struct {42 color bool43 preview bool43 windowType WindowType44 top int45 left int46 width int47 height int
57 unmodified lines
105}106107func (r *FullscreenRenderer) Resize(maxHeightFunc func(int) int) {}108109func (r *FullscreenRenderer) defaultTheme() *ColorTheme {110 if _screen.Colors() >= 256 {109func (r *FullscreenRenderer) DefaultTheme() *ColorTheme {110 s, e := r.getScreen()111 if e != nil {112 return Default16113 }114 if s.Colors() >= 256 {115 return Dark256116 }117 return Default16118}
32 unmodified lines
151 _prevMouseButton tcell.ButtonMask152 _initialResize bool = true153)154155func (r *FullscreenRenderer) getScreen() (tcell.Screen, error) {156 if _screen == nil {157 s, e := tcell.NewScreen()158 if e != nil {159 return nil, e160 }161 _screen = s162 }163 return _screen, nil164}165166func (r *FullscreenRenderer) initScreen() error {152 s, e := tcell.NewScreen()167 s, e := r.getScreen()168 if e != nil {169 return e170 }171 if e = s.Init(); e != nil {
3 unmodified lines
175 s.EnableMouse()176 } else {177 s.DisableMouse()178 }164 _screen = s179180 return nil181}182
4 unmodified lines
187188 if err := r.initScreen(); err != nil {189 return err190 }177 initTheme(r.theme, r.defaultTheme(), r.forceBlack)191192 return nil193}194
354 unmodified lines
549 }550 _screen.Show()551}552540func (r *FullscreenRenderer) NewWindow(top int, left int, width int, height int, preview bool, borderStyle BorderStyle) Window {541 normal := ColNormal542 if preview {543 normal = ColPreview553func (r *FullscreenRenderer) NewWindow(top int, left int, width int, height int, windowType WindowType, borderStyle BorderStyle, erase bool) Window {554 normal := ColBorder555 switch windowType {556 case WindowList:557 normal = ColListBorder558 case WindowPreview:559 normal = ColPreviewBorder560 }561 w := &TcellWindow{562 color: r.theme.Colored,547 preview: preview,563 windowType: windowType,564 top: top,565 left: left,566 width: width,567 height: height,
11 unmodified lines
579 }580}581582func (w *TcellWindow) Erase() {567 if w.borderStyle.shape.HasLeft() {568 fill(w.left-1, w.top, w.width, w.height-1, w.normal, ' ')569 } else {570 fill(w.left, w.top, w.width-1, w.height-1, w.normal, ' ')583 fill(w.left, w.top, w.width-1, w.height-1, w.normal, ' ')571 }584 w.drawBorder(false)585}586587func (w *TcellWindow) EraseMaybe() bool {
191 unmodified lines
779 bot := top + w.height780781 var style tcell.Style782 if w.color {771 if w.preview {772 style = ColPreviewBorder.style()773 } else {783 switch w.windowType {784 case WindowBase:785 style = ColBorder.style()786 case WindowList:787 style = ColListBorder.style()788 case WindowPreview:789 style = ColPreviewBorder.style()790 }791 } else {792 style = w.normal.style()793 }
50 unmodified lines
modified:src/tui/tui.go+64 added-19 removed
301 unmodified lines
302 Input ColorAttr303 Disabled ColorAttr304 Fg ColorAttr305 Bg ColorAttr306 ListFg ColorAttr307 ListBg ColorAttr308 SelectedFg ColorAttr309 SelectedBg ColorAttr310 SelectedMatch ColorAttr311 PreviewFg ColorAttr
12 unmodified lines
324 Separator ColorAttr325 Scrollbar ColorAttr326 Border ColorAttr327 PreviewBorder ColorAttr328 PreviewLabel ColorAttr329 PreviewScrollbar ColorAttr330 BorderLabel ColorAttr328 PreviewLabel ColorAttr331 ListLabel ColorAttr332 ListBorder ColorAttr333}334335type Event struct {336 Type EventType
61 unmodified lines
398 }399 return true400}401402func (s BorderShape) Visible() bool {403 return s != BorderNone404}405406type BorderStyle struct {407 shape BorderShape408 top rune409 bottom rune
122 unmodified lines
532 PxWidth int533 PxHeight int534}535536type WindowType int537538const (539 WindowBase WindowType = iota540 WindowList541 WindowPreview542)543544type Renderer interface {545 DefaultTheme() *ColorTheme546 Init() error547 Resize(maxHeightFunc func(int) int)548 Pause(clear bool)549 Resume(clear bool, sigcont bool)
12 unmodified lines
562 MaxY() int563564 Size() TermSize565549 NewWindow(top int, left int, width int, height int, preview bool, borderStyle BorderStyle) Window566 NewWindow(top int, left int, width int, height int, windowType WindowType, borderStyle BorderStyle, erase bool) Window567}568569type Window interface {570 Top() int
72 unmodified lines
643 ColBorderLabel ColorPair644 ColPreviewLabel ColorPair645 ColPreviewScrollbar ColorPair646 ColPreviewSpinner ColorPair647 ColListBorder ColorPair648 ColListLabel ColorPair649)650651func EmptyTheme() *ColorTheme {652 return &ColorTheme{653 Colored: true,654 Input: ColorAttr{colUndefined, AttrUndefined},655 Fg: ColorAttr{colUndefined, AttrUndefined},656 Bg: ColorAttr{colUndefined, AttrUndefined},657 ListFg: ColorAttr{colUndefined, AttrUndefined},658 ListBg: ColorAttr{colUndefined, AttrUndefined},659 SelectedFg: ColorAttr{colUndefined, AttrUndefined},660 SelectedBg: ColorAttr{colUndefined, AttrUndefined},661 SelectedMatch: ColorAttr{colUndefined, AttrUndefined},662 DarkBg: ColorAttr{colUndefined, AttrUndefined},
7 unmodified lines
670 Marker: ColorAttr{colUndefined, AttrUndefined},671 Header: ColorAttr{colUndefined, AttrUndefined},672 Border: ColorAttr{colUndefined, AttrUndefined},673 BorderLabel: ColorAttr{colUndefined, AttrUndefined},674 ListLabel: ColorAttr{colUndefined, AttrUndefined},675 ListBorder: ColorAttr{colUndefined, AttrUndefined},676 Disabled: ColorAttr{colUndefined, AttrUndefined},677 PreviewFg: ColorAttr{colUndefined, AttrUndefined},678 PreviewBg: ColorAttr{colUndefined, AttrUndefined},679 Gutter: ColorAttr{colUndefined, AttrUndefined},
10 unmodified lines
690 Colored: false,691 Input: ColorAttr{colDefault, AttrUndefined},692 Fg: ColorAttr{colDefault, AttrUndefined},693 Bg: ColorAttr{colDefault, AttrUndefined},694 ListFg: ColorAttr{colDefault, AttrUndefined},695 ListBg: ColorAttr{colDefault, AttrUndefined},696 SelectedFg: ColorAttr{colDefault, AttrUndefined},697 SelectedBg: ColorAttr{colDefault, AttrUndefined},698 SelectedMatch: ColorAttr{colDefault, AttrUndefined},699 DarkBg: ColorAttr{colDefault, AttrUndefined},
14 unmodified lines
714 Gutter: ColorAttr{colDefault, AttrUndefined},715 PreviewBorder: ColorAttr{colDefault, AttrUndefined},716 PreviewScrollbar: ColorAttr{colDefault, AttrUndefined},717 PreviewLabel: ColorAttr{colDefault, AttrUndefined},718 ListLabel: ColorAttr{colDefault, AttrUndefined},719 ListBorder: ColorAttr{colDefault, AttrUndefined},720 Separator: ColorAttr{colDefault, AttrUndefined},721 Scrollbar: ColorAttr{colDefault, AttrUndefined},722 }723}
3 unmodified lines
727 Colored: true,728 Input: ColorAttr{colDefault, AttrUndefined},729 Fg: ColorAttr{colDefault, AttrUndefined},730 Bg: ColorAttr{colDefault, AttrUndefined},731 ListFg: ColorAttr{colUndefined, AttrUndefined},732 ListBg: ColorAttr{colUndefined, AttrUndefined},733 SelectedFg: ColorAttr{colUndefined, AttrUndefined},734 SelectedBg: ColorAttr{colUndefined, AttrUndefined},735 SelectedMatch: ColorAttr{colUndefined, AttrUndefined},736 DarkBg: ColorAttr{colBlack, AttrUndefined},
14 unmodified lines
751 Gutter: ColorAttr{colUndefined, AttrUndefined},752 PreviewBorder: ColorAttr{colUndefined, AttrUndefined},753 PreviewScrollbar: ColorAttr{colUndefined, AttrUndefined},754 PreviewLabel: ColorAttr{colUndefined, AttrUndefined},755 ListLabel: ColorAttr{colUndefined, AttrUndefined},756 ListBorder: ColorAttr{colUndefined, AttrUndefined},757 Separator: ColorAttr{colUndefined, AttrUndefined},758 Scrollbar: ColorAttr{colUndefined, AttrUndefined},759 }760 Dark256 = &ColorTheme{761 Colored: true,762 Input: ColorAttr{colDefault, AttrUndefined},763 Fg: ColorAttr{colDefault, AttrUndefined},764 Bg: ColorAttr{colDefault, AttrUndefined},765 ListFg: ColorAttr{colUndefined, AttrUndefined},766 ListBg: ColorAttr{colUndefined, AttrUndefined},767 SelectedFg: ColorAttr{colUndefined, AttrUndefined},768 SelectedBg: ColorAttr{colUndefined, AttrUndefined},769 SelectedMatch: ColorAttr{colUndefined, AttrUndefined},770 DarkBg: ColorAttr{236, AttrUndefined},
14 unmodified lines
785 Gutter: ColorAttr{colUndefined, AttrUndefined},786 PreviewBorder: ColorAttr{colUndefined, AttrUndefined},787 PreviewScrollbar: ColorAttr{colUndefined, AttrUndefined},788 PreviewLabel: ColorAttr{colUndefined, AttrUndefined},789 ListLabel: ColorAttr{colUndefined, AttrUndefined},790 ListBorder: ColorAttr{colUndefined, AttrUndefined},791 Separator: ColorAttr{colUndefined, AttrUndefined},792 Scrollbar: ColorAttr{colUndefined, AttrUndefined},793 }794 Light256 = &ColorTheme{795 Colored: true,796 Input: ColorAttr{colDefault, AttrUndefined},797 Fg: ColorAttr{colDefault, AttrUndefined},798 Bg: ColorAttr{colDefault, AttrUndefined},799 ListFg: ColorAttr{colUndefined, AttrUndefined},800 ListBg: ColorAttr{colUndefined, AttrUndefined},801 SelectedFg: ColorAttr{colUndefined, AttrUndefined},802 SelectedBg: ColorAttr{colUndefined, AttrUndefined},803 SelectedMatch: ColorAttr{colUndefined, AttrUndefined},804 DarkBg: ColorAttr{251, AttrUndefined},
14 unmodified lines
819 Gutter: ColorAttr{colUndefined, AttrUndefined},820 PreviewBorder: ColorAttr{colUndefined, AttrUndefined},821 PreviewScrollbar: ColorAttr{colUndefined, AttrUndefined},822 PreviewLabel: ColorAttr{colUndefined, AttrUndefined},823 ListLabel: ColorAttr{colUndefined, AttrUndefined},824 ListBorder: ColorAttr{colUndefined, AttrUndefined},825 Separator: ColorAttr{colUndefined, AttrUndefined},826 Scrollbar: ColorAttr{colUndefined, AttrUndefined},827 }828}829791func initTheme(theme *ColorTheme, baseTheme *ColorTheme, forceBlack bool) {830func InitTheme(theme *ColorTheme, baseTheme *ColorTheme, forceBlack bool) {831 if forceBlack {832 theme.Bg = ColorAttr{colBlack, AttrUndefined}833 }834
23 unmodified lines
858 theme.Border = o(baseTheme.Border, theme.Border)859 theme.BorderLabel = o(baseTheme.BorderLabel, theme.BorderLabel)860861 // These colors are not defined in the base themes862 theme.ListFg = o(theme.Fg, theme.ListFg)863 theme.ListBg = o(theme.Bg, theme.ListBg)823 theme.SelectedFg = o(theme.Fg, theme.SelectedFg)824 theme.SelectedBg = o(theme.Bg, theme.SelectedBg)864 theme.SelectedFg = o(theme.ListFg, theme.SelectedFg)865 theme.SelectedBg = o(theme.ListBg, theme.SelectedBg)866 theme.SelectedMatch = o(theme.Match, theme.SelectedMatch)867 theme.Disabled = o(theme.Input, theme.Disabled)868 theme.Gutter = o(theme.DarkBg, theme.Gutter)869 theme.PreviewFg = o(theme.Fg, theme.PreviewFg)870 theme.PreviewBg = o(theme.Bg, theme.PreviewBg)871 theme.PreviewLabel = o(theme.BorderLabel, theme.PreviewLabel)872 theme.PreviewBorder = o(theme.Border, theme.PreviewBorder)873 theme.ListLabel = o(theme.BorderLabel, theme.ListLabel)874 theme.ListBorder = o(theme.Border, theme.ListBorder)832 theme.Separator = o(theme.Border, theme.Separator)833 theme.Scrollbar = o(theme.Border, theme.Scrollbar)875 theme.Separator = o(theme.ListBorder, theme.Separator)876 theme.Scrollbar = o(theme.ListBorder, theme.Scrollbar)877 theme.PreviewScrollbar = o(theme.PreviewBorder, theme.PreviewScrollbar)878879 initPalette(theme)880}
4 unmodified lines
885 bg.Color = colDefault886 }887 return ColorPair{fg.Color, bg.Color, fg.Attr}888 }846 blank := theme.Fg889 blank := theme.ListFg890 blank.Attr = AttrRegular891849 ColPrompt = pair(theme.Prompt, theme.Bg)850 ColNormal = pair(theme.Fg, theme.Bg)892 ColPrompt = pair(theme.Prompt, theme.ListBg)893 ColNormal = pair(theme.ListFg, theme.ListBg)894 ColSelected = pair(theme.SelectedFg, theme.SelectedBg)852 ColInput = pair(theme.Input, theme.Bg)853 ColDisabled = pair(theme.Disabled, theme.Bg)854 ColMatch = pair(theme.Match, theme.Bg)895 ColInput = pair(theme.Input, theme.ListBg)896 ColDisabled = pair(theme.Disabled, theme.ListBg)897 ColMatch = pair(theme.Match, theme.ListBg)898 ColSelectedMatch = pair(theme.SelectedMatch, theme.SelectedBg)899 ColCursor = pair(theme.Cursor, theme.Gutter)900 ColCursorEmpty = pair(blank, theme.Gutter)858 if theme.SelectedBg.Color != theme.Bg.Color {901 if theme.SelectedBg.Color != theme.ListBg.Color {902 ColMarker = pair(theme.Marker, theme.SelectedBg)903 } else {904 ColMarker = pair(theme.Marker, theme.Gutter)905 }
2 unmodified lines
908 ColCurrentCursor = pair(theme.Cursor, theme.DarkBg)909 ColCurrentCursorEmpty = pair(blank, theme.DarkBg)910 ColCurrentMarker = pair(theme.Marker, theme.DarkBg)911 ColCurrentSelectedEmpty = pair(blank, theme.DarkBg)869 ColSpinner = pair(theme.Spinner, theme.Bg)870 ColInfo = pair(theme.Info, theme.Bg)871 ColHeader = pair(theme.Header, theme.Bg)872 ColSeparator = pair(theme.Separator, theme.Bg)873 ColScrollbar = pair(theme.Scrollbar, theme.Bg)912 ColSpinner = pair(theme.Spinner, theme.ListBg)913 ColInfo = pair(theme.Info, theme.ListBg)914 ColHeader = pair(theme.Header, theme.ListBg)915 ColSeparator = pair(theme.Separator, theme.ListBg)916 ColScrollbar = pair(theme.Scrollbar, theme.ListBg)917 ColBorder = pair(theme.Border, theme.Bg)918 ColBorderLabel = pair(theme.BorderLabel, theme.Bg)919 ColPreviewLabel = pair(theme.PreviewLabel, theme.PreviewBg)920 ColPreview = pair(theme.PreviewFg, theme.PreviewBg)921 ColPreviewBorder = pair(theme.PreviewBorder, theme.PreviewBg)922 ColPreviewScrollbar = pair(theme.PreviewScrollbar, theme.PreviewBg)923 ColPreviewSpinner = pair(theme.Spinner, theme.PreviewBg)924 ColListLabel = pair(theme.ListLabel, theme.ListBg)925 ColListBorder = pair(theme.ListBorder, theme.ListBg)926}927928func runeWidth(r rune) int {929 return uniseg.StringWidth(string(r))
1 unmodified line
modified:src/actiontype_string.go+102 added-100 removed
23 unmodified lines
24 _ = x[actBackwardDeleteCharEof-13]25 _ = x[actBackwardWord-14]26 _ = x[actCancel-15]27 _ = x[actChangeBorderLabel-16]28 _ = x[actChangeHeader-17]29 _ = x[actChangeMulti-18]30 _ = x[actChangePreviewLabel-19]31 _ = x[actChangePrompt-20]32 _ = x[actChangeQuery-21]33 _ = x[actClearScreen-22]34 _ = x[actClearQuery-23]35 _ = x[actClearSelection-24]36 _ = x[actClose-25]37 _ = x[actDeleteChar-26]38 _ = x[actDeleteCharEof-27]39 _ = x[actEndOfLine-28]40 _ = x[actFatal-29]41 _ = x[actForwardChar-30]42 _ = x[actForwardWord-31]43 _ = x[actKillLine-32]44 _ = x[actKillWord-33]45 _ = x[actUnixLineDiscard-34]46 _ = x[actUnixWordRubout-35]47 _ = x[actYank-36]48 _ = x[actBackwardKillWord-37]49 _ = x[actSelectAll-38]50 _ = x[actDeselectAll-39]51 _ = x[actToggle-40]52 _ = x[actToggleSearch-41]53 _ = x[actToggleAll-42]54 _ = x[actToggleDown-43]55 _ = x[actToggleUp-44]56 _ = x[actToggleIn-45]57 _ = x[actToggleOut-46]58 _ = x[actToggleTrack-47]59 _ = x[actToggleTrackCurrent-48]60 _ = x[actToggleHeader-49]61 _ = x[actToggleWrap-50]62 _ = x[actToggleMultiLine-51]63 _ = x[actToggleHscroll-52]64 _ = x[actTrackCurrent-53]65 _ = x[actUntrackCurrent-54]66 _ = x[actDown-55]67 _ = x[actUp-56]68 _ = x[actPageUp-57]69 _ = x[actPageDown-58]70 _ = x[actPosition-59]71 _ = x[actHalfPageUp-60]72 _ = x[actHalfPageDown-61]73 _ = x[actOffsetUp-62]74 _ = x[actOffsetDown-63]75 _ = x[actOffsetMiddle-64]76 _ = x[actJump-65]77 _ = x[actJumpAccept-66]78 _ = x[actPrintQuery-67]79 _ = x[actRefreshPreview-68]80 _ = x[actReplaceQuery-69]81 _ = x[actToggleSort-70]82 _ = x[actShowPreview-71]83 _ = x[actHidePreview-72]84 _ = x[actTogglePreview-73]85 _ = x[actTogglePreviewWrap-74]86 _ = x[actTransform-75]87 _ = x[actTransformBorderLabel-76]88 _ = x[actTransformHeader-77]89 _ = x[actTransformPreviewLabel-78]90 _ = x[actTransformPrompt-79]91 _ = x[actTransformQuery-80]92 _ = x[actPreview-81]93 _ = x[actChangePreview-82]94 _ = x[actChangePreviewWindow-83]95 _ = x[actPreviewTop-84]96 _ = x[actPreviewBottom-85]97 _ = x[actPreviewUp-86]98 _ = x[actPreviewDown-87]99 _ = x[actPreviewPageUp-88]100 _ = x[actPreviewPageDown-89]101 _ = x[actPreviewHalfPageUp-90]102 _ = x[actPreviewHalfPageDown-91]103 _ = x[actPrevHistory-92]104 _ = x[actPrevSelected-93]105 _ = x[actPrint-94]106 _ = x[actPut-95]107 _ = x[actNextHistory-96]108 _ = x[actNextSelected-97]109 _ = x[actExecute-98]110 _ = x[actExecuteSilent-99]111 _ = x[actExecuteMulti-100]112 _ = x[actSigStop-101]113 _ = x[actFirst-102]114 _ = x[actLast-103]115 _ = x[actReload-104]116 _ = x[actReloadSync-105]117 _ = x[actDisableSearch-106]118 _ = x[actEnableSearch-107]119 _ = x[actSelect-108]120 _ = x[actDeselect-109]121 _ = x[actUnbind-110]122 _ = x[actRebind-111]123 _ = x[actBecome-112]124 _ = x[actShowHeader-113]125 _ = x[actHideHeader-114]28 _ = x[actChangeListLabel-17]29 _ = x[actChangeHeader-18]30 _ = x[actChangeMulti-19]31 _ = x[actChangePreviewLabel-20]32 _ = x[actChangePrompt-21]33 _ = x[actChangeQuery-22]34 _ = x[actClearScreen-23]35 _ = x[actClearQuery-24]36 _ = x[actClearSelection-25]37 _ = x[actClose-26]38 _ = x[actDeleteChar-27]39 _ = x[actDeleteCharEof-28]40 _ = x[actEndOfLine-29]41 _ = x[actFatal-30]42 _ = x[actForwardChar-31]43 _ = x[actForwardWord-32]44 _ = x[actKillLine-33]45 _ = x[actKillWord-34]46 _ = x[actUnixLineDiscard-35]47 _ = x[actUnixWordRubout-36]48 _ = x[actYank-37]49 _ = x[actBackwardKillWord-38]50 _ = x[actSelectAll-39]51 _ = x[actDeselectAll-40]52 _ = x[actToggle-41]53 _ = x[actToggleSearch-42]54 _ = x[actToggleAll-43]55 _ = x[actToggleDown-44]56 _ = x[actToggleUp-45]57 _ = x[actToggleIn-46]58 _ = x[actToggleOut-47]59 _ = x[actToggleTrack-48]60 _ = x[actToggleTrackCurrent-49]61 _ = x[actToggleHeader-50]62 _ = x[actToggleWrap-51]63 _ = x[actToggleMultiLine-52]64 _ = x[actToggleHscroll-53]65 _ = x[actTrackCurrent-54]66 _ = x[actUntrackCurrent-55]67 _ = x[actDown-56]68 _ = x[actUp-57]69 _ = x[actPageUp-58]70 _ = x[actPageDown-59]71 _ = x[actPosition-60]72 _ = x[actHalfPageUp-61]73 _ = x[actHalfPageDown-62]74 _ = x[actOffsetUp-63]75 _ = x[actOffsetDown-64]76 _ = x[actOffsetMiddle-65]77 _ = x[actJump-66]78 _ = x[actJumpAccept-67]79 _ = x[actPrintQuery-68]80 _ = x[actRefreshPreview-69]81 _ = x[actReplaceQuery-70]82 _ = x[actToggleSort-71]83 _ = x[actShowPreview-72]84 _ = x[actHidePreview-73]85 _ = x[actTogglePreview-74]86 _ = x[actTogglePreviewWrap-75]87 _ = x[actTransform-76]88 _ = x[actTransformBorderLabel-77]89 _ = x[actTransformListLabel-78]90 _ = x[actTransformHeader-79]91 _ = x[actTransformPreviewLabel-80]92 _ = x[actTransformPrompt-81]93 _ = x[actTransformQuery-82]94 _ = x[actPreview-83]95 _ = x[actChangePreview-84]96 _ = x[actChangePreviewWindow-85]97 _ = x[actPreviewTop-86]98 _ = x[actPreviewBottom-87]99 _ = x[actPreviewUp-88]100 _ = x[actPreviewDown-89]101 _ = x[actPreviewPageUp-90]102 _ = x[actPreviewPageDown-91]103 _ = x[actPreviewHalfPageUp-92]104 _ = x[actPreviewHalfPageDown-93]105 _ = x[actPrevHistory-94]106 _ = x[actPrevSelected-95]107 _ = x[actPrint-96]108 _ = x[actPut-97]109 _ = x[actNextHistory-98]110 _ = x[actNextSelected-99]111 _ = x[actExecute-100]112 _ = x[actExecuteSilent-101]113 _ = x[actExecuteMulti-102]114 _ = x[actSigStop-103]115 _ = x[actFirst-104]116 _ = x[actLast-105]117 _ = x[actReload-106]118 _ = x[actReloadSync-107]119 _ = x[actDisableSearch-108]120 _ = x[actEnableSearch-109]121 _ = x[actSelect-110]122 _ = x[actDeselect-111]123 _ = x[actUnbind-112]124 _ = x[actRebind-113]125 _ = x[actBecome-114]126 _ = x[actShowHeader-115]127 _ = x[actHideHeader-116]128}129128const _actionType_name = "actIgnoreactStartactClickactInvalidactCharactMouseactBeginningOfLineactAbortactAcceptactAcceptNonEmptyactAcceptOrPrintQueryactBackwardCharactBackwardDeleteCharactBackwardDeleteCharEofactBackwardWordactCancelactChangeBorderLabelactChangeHeaderactChangeMultiactChangePreviewLabelactChangePromptactChangeQueryactClearScreenactClearQueryactClearSelectionactCloseactDeleteCharactDeleteCharEofactEndOfLineactFatalactForwardCharactForwardWordactKillLineactKillWordactUnixLineDiscardactUnixWordRuboutactYankactBackwardKillWordactSelectAllactDeselectAllactToggleactToggleSearchactToggleAllactToggleDownactToggleUpactToggleInactToggleOutactToggleTrackactToggleTrackCurrentactToggleHeaderactToggleWrapactToggleMultiLineactToggleHscrollactTrackCurrentactUntrackCurrentactDownactUpactPageUpactPageDownactPositionactHalfPageUpactHalfPageDownactOffsetUpactOffsetDownactOffsetMiddleactJumpactJumpAcceptactPrintQueryactRefreshPreviewactReplaceQueryactToggleSortactShowPreviewactHidePreviewactTogglePreviewactTogglePreviewWrapactTransformactTransformBorderLabelactTransformHeaderactTransformPreviewLabelactTransformPromptactTransformQueryactPreviewactChangePreviewactChangePreviewWindowactPreviewTopactPreviewBottomactPreviewUpactPreviewDownactPreviewPageUpactPreviewPageDownactPreviewHalfPageUpactPreviewHalfPageDownactPrevHistoryactPrevSelectedactPrintactPutactNextHistoryactNextSelectedactExecuteactExecuteSilentactExecuteMultiactSigStopactFirstactLastactReloadactReloadSyncactDisableSearchactEnableSearchactSelectactDeselectactUnbindactRebindactBecomeactShowHeaderactHideHeader"130const _actionType_name = "actIgnoreactStartactClickactInvalidactCharactMouseactBeginningOfLineactAbortactAcceptactAcceptNonEmptyactAcceptOrPrintQueryactBackwardCharactBackwardDeleteCharactBackwardDeleteCharEofactBackwardWordactCancelactChangeBorderLabelactChangeListLabelactChangeHeaderactChangeMultiactChangePreviewLabelactChangePromptactChangeQueryactClearScreenactClearQueryactClearSelectionactCloseactDeleteCharactDeleteCharEofactEndOfLineactFatalactForwardCharactForwardWordactKillLineactKillWordactUnixLineDiscardactUnixWordRuboutactYankactBackwardKillWordactSelectAllactDeselectAllactToggleactToggleSearchactToggleAllactToggleDownactToggleUpactToggleInactToggleOutactToggleTrackactToggleTrackCurrentactToggleHeaderactToggleWrapactToggleMultiLineactToggleHscrollactTrackCurrentactUntrackCurrentactDownactUpactPageUpactPageDownactPositionactHalfPageUpactHalfPageDownactOffsetUpactOffsetDownactOffsetMiddleactJumpactJumpAcceptactPrintQueryactRefreshPreviewactReplaceQueryactToggleSortactShowPreviewactHidePreviewactTogglePreviewactTogglePreviewWrapactTransformactTransformBorderLabelactTransformListLabelactTransformHeaderactTransformPreviewLabelactTransformPromptactTransformQueryactPreviewactChangePreviewactChangePreviewWindowactPreviewTopactPreviewBottomactPreviewUpactPreviewDownactPreviewPageUpactPreviewPageDownactPreviewHalfPageUpactPreviewHalfPageDownactPrevHistoryactPrevSelectedactPrintactPutactNextHistoryactNextSelectedactExecuteactExecuteSilentactExecuteMultiactSigStopactFirstactLastactReloadactReloadSyncactDisableSearchactEnableSearchactSelectactDeselectactUnbindactRebindactBecomeactShowHeaderactHideHeader"131130var _actionType_index = [...]uint16{0, 9, 17, 25, 35, 42, 50, 68, 76, 85, 102, 123, 138, 159, 183, 198, 207, 227, 242, 256, 277, 292, 306, 320, 333, 350, 358, 371, 387, 399, 407, 421, 435, 446, 457, 475, 492, 499, 518, 530, 544, 553, 568, 580, 593, 604, 615, 627, 641, 662, 677, 690, 708, 724, 739, 756, 763, 768, 777, 788, 799, 812, 827, 838, 851, 866, 873, 886, 899, 916, 931, 944, 958, 972, 988, 1008, 1020, 1043, 1061, 1085, 1103, 1120, 1130, 1146, 1168, 1181, 1197, 1209, 1223, 1239, 1257, 1277, 1299, 1313, 1328, 1336, 1342, 1356, 1371, 1381, 1397, 1412, 1422, 1430, 1437, 1446, 1459, 1475, 1490, 1499, 1510, 1519, 1528, 1537, 1550, 1563}132var _actionType_index = [...]uint16{0, 9, 17, 25, 35, 42, 50, 68, 76, 85, 102, 123, 138, 159, 183, 198, 207, 227, 245, 260, 274, 295, 310, 324, 338, 351, 368, 376, 389, 405, 417, 425, 439, 453, 464, 475, 493, 510, 517, 536, 548, 562, 571, 586, 598, 611, 622, 633, 645, 659, 680, 695, 708, 726, 742, 757, 774, 781, 786, 795, 806, 817, 830, 845, 856, 869, 884, 891, 904, 917, 934, 949, 962, 976, 990, 1006, 1026, 1038, 1061, 1082, 1100, 1124, 1142, 1159, 1169, 1185, 1207, 1220, 1236, 1248, 1262, 1278, 1296, 1316, 1338, 1352, 1367, 1375, 1381, 1395, 1410, 1420, 1436, 1451, 1461, 1469, 1476, 1485, 1498, 1514, 1529, 1538, 1549, 1558, 1567, 1576, 1589, 1602}133134func (i actionType) String() string {135 if i < 0 || i >= actionType(len(_actionType_index)-1) {136 return "actionType(" + strconv.FormatInt(int64(i), 10) + ")"
3 unmodified lines
modified:src/options.go+149 added-95 removed
85 unmodified lines
86 --border-label-pos=COL Position of the border label87 [POSITIVE_INTEGER: columns from left|88 NEGATIVE_INTEGER: columns from right][:bottom]89 (default: 0 or center)90 --list-border[=STYLE] Draw border around the list section91 [rounded|sharp|bold|block|thinblock|double|horizontal|vertical|92 top|bottom|left|right|none] (default: none)93 --list-label=LABEL Label to print on the list border94 --list-label-pos=COL Position of the list label95 [POSITIVE_INTEGER: columns from left|96 NEGATIVE_INTEGER: columns from right][:bottom]97 (default: 0 or center)98 --margin=MARGIN Screen margin (TRBL | TB,RL | T,RL,B | T,R,B,L)99 --padding=PADDING Padding inside border (TRBL | TB,RL | T,RL,B | T,R,B,L)100 --info=STYLE Finder info style101 [default|right|hidden|inline[-right][:PREFIX]]
341 unmodified lines
443}444445// Options stores the values of command-line options446type Options struct {439 Input chan string440 Output chan string441 NoWinpty bool442 Tmux *tmuxOptions443 ForceTtyIn bool444 ProxyScript string445 Bash bool446 Zsh bool447 Fish bool448 Man bool449 Fuzzy bool450 FuzzyAlgo algo.Algo451 Scheme string452 Extended bool453 Phony bool454 Case Case455 Normalize bool456 Nth []Range457 WithNth []Range458 Delimiter Delimiter459 Sort int460 Track trackOption461 Tac bool462 Tail int463 Criteria []criterion464 Multi int465 Ansi bool466 Mouse bool467 Theme *tui.ColorTheme468 Black bool469 Bold bool470 Height heightSpec471 MinHeight int472 Layout layoutType473 Cycle bool474 Wrap bool475 WrapSign *string476 MultiLine bool477 CursorLine bool478 KeepRight bool479 Hscroll bool480 HscrollOff int481 ScrollOff int482 FileWord bool483 InfoStyle infoStyle484 InfoPrefix string485 InfoCommand string486 Separator *string487 JumpLabels string488 Prompt string489 Pointer *string490 Marker *string491 MarkerMulti *[3]string492 Query string493 Select1 bool494 Exit0 bool495 Filter *string496 ToggleSort bool497 Expect map[tui.Event]string498 Keymap map[tui.Event][]*action499 Preview previewOpts500 PrintQuery bool501 ReadZero bool502 Printer func(string)503 PrintSep string504 Sync bool505 History *History506 Header []string507 HeaderLines int508 HeaderFirst bool509 Gap int510 Ellipsis *string511 Scrollbar *string512 Margin [4]sizeSpec513 Padding [4]sizeSpec514 BorderShape tui.BorderShape515 BorderLabel labelOpts516 PreviewLabel labelOpts517 Unicode bool518 Ambidouble bool519 Tabstop int520 WithShell string521 ListenAddr *listenAddress522 Unsafe bool523 ClearOnExit bool524 WalkerOpts walkerOpts525 WalkerRoot []string526 WalkerSkip []string527 Version bool528 Help bool529 CPUProfile string530 MEMProfile string531 BlockProfile string532 MutexProfile string447 Input chan string448 Output chan string449 NoWinpty bool450 Tmux *tmuxOptions451 ForceTtyIn bool452 ProxyScript string453 Bash bool454 Zsh bool455 Fish bool456 Man bool457 Fuzzy bool458 FuzzyAlgo algo.Algo459 Scheme string460 Extended bool461 Phony bool462 Case Case463 Normalize bool464 Nth []Range465 WithNth []Range466 Delimiter Delimiter467 Sort int468 Track trackOption469 Tac bool470 Tail int471 Criteria []criterion472 Multi int473 Ansi bool474 Mouse bool475 Theme *tui.ColorTheme476 Black bool477 Bold bool478 Height heightSpec479 MinHeight int480 Layout layoutType481 Cycle bool482 Wrap bool483 WrapSign *string484 MultiLine bool485 CursorLine bool486 KeepRight bool487 Hscroll bool488 HscrollOff int489 ScrollOff int490 FileWord bool491 InfoStyle infoStyle492 InfoPrefix string493 InfoCommand string494 Separator *string495 JumpLabels string496 Prompt string497 Pointer *string498 Marker *string499 MarkerMulti *[3]string500 Query string501 Select1 bool502 Exit0 bool503 Filter *string504 ToggleSort bool505 Expect map[tui.Event]string506 Keymap map[tui.Event][]*action507 Preview previewOpts508 PrintQuery bool509 ReadZero bool510 Printer func(string)511 PrintSep string512 Sync bool513 History *History514 Header []string515 HeaderLines int516 HeaderFirst bool517 Gap int518 Ellipsis *string519 Scrollbar *string520 Margin [4]sizeSpec521 Padding [4]sizeSpec522 BorderShape tui.BorderShape523 ListBorderShape tui.BorderShape524 BorderLabel labelOpts525 ListLabel labelOpts526 PreviewLabel labelOpts527 Unicode bool528 Ambidouble bool529 Tabstop int530 WithShell string531 ListenAddr *listenAddress532 Unsafe bool533 ClearOnExit bool534 WalkerOpts walkerOpts535 WalkerRoot []string536 WalkerSkip []string537 Version bool538 Help bool539 CPUProfile string540 MEMProfile string541 BlockProfile string542 MutexProfile string543}544545func filterNonEmpty(input []string) []string {546 output := make([]string, 0, len(input))
628 unmodified lines
1175 case "fg":1176 mergeAttr(&theme.Fg)1177 case "bg":1178 mergeAttr(&theme.Bg)1179 case "list-fg":1180 mergeAttr(&theme.ListFg)1181 case "list-bg":1182 mergeAttr(&theme.ListBg)1183 case "preview-fg":1184 mergeAttr(&theme.PreviewFg)1185 case "preview-bg":1186 mergeAttr(&theme.PreviewBg)
24 unmodified lines
1211 case "preview-scrollbar":1212 mergeAttr(&theme.PreviewScrollbar)1213 case "label":1214 mergeAttr(&theme.BorderLabel)1215 case "list-label":1216 mergeAttr(&theme.ListLabel)1217 case "list-border":1218 mergeAttr(&theme.ListBorder)1219 case "preview-label":1220 mergeAttr(&theme.PreviewLabel)1221 case "prompt":1222 mergeAttr(&theme.Prompt)
59 unmodified lines
1282)12831284func init() {1285 executeRegexp = regexp.MustCompile(1268 `(?si)[:+](become|execute(?:-multi|-silent)?|reload(?:-sync)?|preview|(?:change|transform)-(?:header|query|prompt|border-label|preview-label)|transform|change-(?:preview-window|preview|multi)|(?:re|un)bind|pos|put|print)`)1286 `(?si)[:+](become|execute(?:-multi|-silent)?|reload(?:-sync)?|preview|(?:change|transform)-(?:header|query|prompt|border-label|list-label|preview-label)|transform|change-(?:preview-window|preview|multi)|(?:re|un)bind|pos|put|print)`)1287 splitRegexp = regexp.MustCompile("[,:]+")1288 actionNameRegexp = regexp.MustCompile("(?i)^[a-z-]+")1289}1290
347 unmodified lines
1638 case "rebind":1639 return actRebind1640 case "preview":1641 return actPreview1642 case "change-list-label":1643 return actChangeListLabel1644 case "change-border-label":1645 return actChangeBorderLabel1646 case "change-header":1647 return actChangeHeader
22 unmodified lines
1670 case "put":1671 return actPut1672 case "transform":1673 return actTransform1674 case "transform-list-label":1675 return actTransformListLabel1676 case "transform-border-label":1677 return actTransformBorderLabel1678 case "transform-preview-label":1679 return actTransformPreviewLabel
797 unmodified lines
2477 hasArg, arg := optionalNextString(allArgs, &i)2478 if opts.BorderShape, err = parseBorder(arg, !hasArg); err != nil {2479 return err2480 }2481 case "--list-border":2482 hasArg, arg := optionalNextString(allArgs, &i)2483 if opts.ListBorderShape, err = parseBorder(arg, !hasArg); err != nil {2484 return err2485 }2486 case "--no-list-border":2487 opts.ListBorderShape = tui.BorderNone2488 case "--no-list-label":2489 opts.ListLabel.label = ""2490 case "--list-label":2491 opts.ListLabel.label, err = nextString(allArgs, &i, "label required")2492 if err != nil {2493 return err2494 }2495 case "--list-label-pos":2496 pos, err := nextString(allArgs, &i, "label position required (positive or negative integer or 'center')")2497 if err != nil {2498 return err2499 }2500 if err := parseLabelPosition(&opts.ListLabel, pos); err != nil {2501 return err2502 }2503 case "--no-border-label":2504 opts.BorderLabel.label = ""2505 case "--border-label":2506 opts.BorderLabel.label, err = nextString(allArgs, &i, "label required")
129 unmodified lines
2636 } else if match, value := optString(arg, "--border="); match {2637 if opts.BorderShape, err = parseBorder(value, false); err != nil {2638 return err2639 }2640 } else if match, value := optString(arg, "--list-label="); match {2641 opts.ListLabel.label = value2642 } else if match, value := optString(arg, "--list-label-pos="); match {2643 if err := parseLabelPosition(&opts.ListLabel, value); err != nil {2644 return err2645 }2646 } else if match, value := optString(arg, "--border-label="); match {2647 opts.BorderLabel.label = value2648 } else if match, value := optString(arg, "--border-label-pos="); match {2649 if err := parseLabelPosition(&opts.BorderLabel, value); err != nil {
263 unmodified lines
2913 if opts.BorderShape == tui.BorderUndefined {2914 opts.BorderShape = tui.BorderNone2915 }29162917 if opts.ListBorderShape == tui.BorderUndefined {2918 opts.ListBorderShape = tui.BorderNone2919 }29202921 if opts.Pointer == nil {2922 defaultPointer := "▌"2923 if !opts.Unicode {2924 defaultPointer = ">"
201 unmodified lines
modified:src/terminal.go+171 added-32 removed
295 unmodified lines
296 listenPort *int297 listener net.Listener298 listenUnsafe bool299 borderShape tui.BorderShape300 listBorderShape tui.BorderShape301 listLabel labelPrinter302 listLabelLen int303 listLabelOpts labelOpts304 cleanExit bool305 executor *util.Executor306 paused bool307 border tui.Window308 window tui.Window309 wborder tui.Window310 pborder tui.Window311 pwindow tui.Window312 borderWidth int313 count int
79 unmodified lines
393 reqActivate394 reqReinit395 reqFullRedraw396 reqResize397 reqRedrawListLabel398 reqRedrawBorderLabel399 reqRedrawPreviewLabel400 reqClose401 reqPrintQuery
32 unmodified lines
434 actBackwardDeleteCharEof435 actBackwardWord436 actCancel437 actChangeBorderLabel438 actChangeListLabel439 actChangeHeader440 actChangeMulti441 actChangePreviewLabel442 actChangePrompt
52 unmodified lines
495 actTogglePreview496 actTogglePreviewWrap497 actTransform498 actTransformBorderLabel499 actTransformListLabel500 actTransformHeader501 actTransformPreviewLabel502 actTransformPrompt503 actTransformQuery
326 unmodified lines
830 unicode: opts.Unicode,831 listenAddr: opts.ListenAddr,832 listenUnsafe: opts.Unsafe,833 borderShape: opts.BorderShape,834 listBorderShape: opts.ListBorderShape,835 borderWidth: 1,836 listLabel: nil,837 listLabelOpts: opts.ListLabel,838 borderLabel: nil,839 borderLabelOpts: opts.BorderLabel,840 previewLabel: nil,841 previewLabelOpts: opts.PreviewLabel,
48 unmodified lines
890 initFunc: func() error { return renderer.Init() },891 executing: util.NewAtomicBool(false),892 lastAction: actStart,893 lastFocus: minItem.Index()}894895 // This should be called before accessing tui.Color*896 tui.InitTheme(opts.Theme, renderer.DefaultTheme(), opts.Black)897898 t.prompt, t.promptLen = t.parsePrompt(opts.Prompt)899 // Pre-calculated empty pointer and marker signs900 t.pointerEmpty = strings.Repeat(" ", t.pointerLen)901 t.markerEmpty = strings.Repeat(" ", t.markerLen)902 t.listLabel, t.listLabelLen = t.ansiLabelPrinter(opts.ListLabel.label, &tui.ColListLabel, false)903 t.borderLabel, t.borderLabelLen = t.ansiLabelPrinter(opts.BorderLabel.label, &tui.ColBorderLabel, false)904 t.previewLabel, t.previewLabelLen = t.ansiLabelPrinter(opts.PreviewLabel.label, &tui.ColPreviewLabel, false)905 if opts.Separator == nil || len(*opts.Separator) > 0 {906 bar := "─"
81 unmodified lines
988 env = append(env, "FZF_KEY="+t.lastKey)989 env = append(env, "FZF_PROMPT="+string(t.promptString))990 env = append(env, "FZF_PREVIEW_LABEL="+t.previewLabelOpts.label)991 env = append(env, "FZF_BORDER_LABEL="+t.borderLabelOpts.label)992 env = append(env, "FZF_LIST_LABEL="+t.listLabelOpts.label)993 env = append(env, fmt.Sprintf("FZF_TOTAL_COUNT=%d", t.count))994 env = append(env, fmt.Sprintf("FZF_MATCH_COUNT=%d", t.merger.Length()))995 env = append(env, fmt.Sprintf("FZF_SELECT_COUNT=%d", len(t.selected)))996 env = append(env, fmt.Sprintf("FZF_LINES=%d", t.areaLines))
133 unmodified lines
1130 // ------- // Do not apply ANSI attributes to the trailing whitespaces1131 // // unless the part has a non-default ANSI state1132 loc := whiteSuffix.FindStringIndex(trimmed)1133 if loc != nil {1117 blankState := ansiOffset{[2]int32{int32(loc[0]), int32(loc[1])}, ansiState{-1, -1, tui.AttrClear, -1, nil}}1134 blankState := ansiOffset{[2]int32{int32(loc[0]), int32(loc[1])}, ansiState{tui.ColPrompt.Fg(), tui.ColPrompt.Bg(), tui.AttrClear, -1, nil}}1135 if item.colors != nil {1136 lastColor := (*item.colors)[len(*item.colors)-1]1137 if lastColor.offset[1] < int32(loc[1]) {1138 blankState.offset[0] = lastColor.offset[1]
423 unmodified lines
1562 }1563 if t.window != nil {1564 t.window = nil1565 }1566 if t.wborder != nil {1567 t.wborder = nil1568 }1569 if t.pborder != nil {1570 t.pborder = nil1571 }1572 hadPreviewWindow := t.hasPreviewWindow()
18 unmodified lines
1591 if t.borderShape.HasLeft() {1592 offsets[1] -= 1 + bw1593 offsets[2] += 1 + bw1594 }1575 if t.border == nil && t.borderShape != tui.BorderNone {1595 if t.border == nil && t.borderShape.Visible() {1596 t.border = t.tui.NewWindow(1597 marginInt[0]+offsets[0], marginInt[3]+offsets[1], width+offsets[2], height+offsets[3],1578 false, tui.MakeBorderStyle(t.borderShape, t.unicode))1598 tui.WindowBase, tui.MakeBorderStyle(t.borderShape, t.unicode), true)1599 }16001601 // Add padding to margin1602 for idx, val := range paddingInt {
1 unmodified line
1604 }1605 width -= paddingInt[1] + paddingInt[3]1606 height -= paddingInt[0] + paddingInt[2]16071608 hasListBorder := t.listBorderShape.Visible()1609 innerWidth := width1610 innerHeight := height1611 innerMarginInt := marginInt1612 innerBorderFn := func(top int, left int, width int, height int) {1613 if hasListBorder {1614 t.wborder = t.tui.NewWindow(1615 top, left, width, height, tui.WindowList, tui.MakeBorderStyle(t.listBorderShape, t.unicode), false)1616 }1617 }1618 if hasListBorder {1619 if t.listBorderShape.HasTop() {1620 innerHeight--1621 innerMarginInt[0]++1622 }1623 if t.listBorderShape.HasBottom() {1624 innerHeight--1625 }1626 if t.listBorderShape.HasLeft() {1627 innerWidth -= 21628 innerMarginInt[3] += 21629 }1630 if t.listBorderShape.HasRight() {1631 innerWidth--1632 }1633 }16341635 t.areaLines = height1636 t.areaColumns = width16371638 // Set up preview window1639 noBorder := tui.MakeBorderStyle(tui.BorderNone, t.unicode)1640 if forcePreview || t.needPreviewWindow() {1641 var resizePreviewWindows func(previewOpts *previewOpts)1642 stickToRight := false1643 resizePreviewWindows = func(previewOpts *previewOpts) {1644 t.activePreviewOpts = previewOpts1645 if previewOpts.size.size == 0 {1646 return
2 unmodified lines
1649 createPreviewWindow := func(y int, x int, w int, h int) {1650 pwidth := w1651 pheight := h1652 previewBorder := tui.MakeBorderStyle(previewOpts.border, t.unicode)1605 t.pborder = t.tui.NewWindow(y, x, w, h, true, previewBorder)1653 t.pborder = t.tui.NewWindow(y, x, w, h, tui.WindowPreview, previewBorder, false)1654 pwidth -= borderColumns(previewOpts.border, bw)1655 pheight -= borderLines(previewOpts.border)1656 if previewOpts.border.HasLeft() {1657 x += 1 + bw
6 unmodified lines
1664 pwidth -= 11665 }1666 pwidth = util.Max(0, pwidth)1667 pheight = util.Max(0, pheight)1620 t.pwindow = t.tui.NewWindow(y, x, pwidth, pheight, true, noBorder)1668 t.pwindow = t.tui.NewWindow(y, x, pwidth, pheight, tui.WindowPreview, noBorder, true)1669 if !hadPreviewWindow {1670 t.pwindow.Erase()1671 }1672 }
21 unmodified lines
1694 if previewOpts.hidden {1695 return1696 }1697 if previewOpts.position == posUp {1698 innerBorderFn(marginInt[0]+pheight, marginInt[3], width, height-pheight)1699 t.window = t.tui.NewWindow(1651 marginInt[0]+pheight, marginInt[3], width, height-pheight, false, noBorder)1700 innerMarginInt[0]+pheight, innerMarginInt[3], innerWidth, innerHeight-pheight, tui.WindowList, noBorder, true)1701 createPreviewWindow(marginInt[0], marginInt[3], width, pheight)1702 } else {1703 innerBorderFn(marginInt[0], marginInt[3], width, height-pheight)1704 t.window = t.tui.NewWindow(1655 marginInt[0], marginInt[3], width, height-pheight, false, noBorder)1705 innerMarginInt[0], innerMarginInt[3], innerWidth, innerHeight-pheight, tui.WindowList, noBorder, true)1706 createPreviewWindow(marginInt[0]+height-pheight, marginInt[3], width, pheight)1707 }1708 case posLeft, posRight:1709 minListWidth := minWidth1710 if t.listBorderShape.HasLeft() {1711 minListWidth += 21712 }1713 if t.listBorderShape.HasRight() {1714 minListWidth++1715 }1659 pwidth := calculateSize(width, previewOpts.size, minWidth, minPreviewWidth)1716 pwidth := calculateSize(width, previewOpts.size, minListWidth, minPreviewWidth)1717 if hasThreshold && pwidth < previewOpts.threshold {1718 t.activePreviewOpts = previewOpts.alternative1719 if forcePreview {1720 previewOpts.alternative.hidden = false
10 unmodified lines
1731 return1732 }1733 if previewOpts.position == posLeft {1734 // Put scrollbar closer to the right border for consistent look1678 if t.borderShape.HasRight() {1679 width++1735 if t.borderShape.HasRight() && !hasListBorder {1736 innerWidth++1737 }1738 // Add a 1-column margin between the preview window and the main window1739 m := 01740 if !hasListBorder {1741 m = 11742 }1743 t.window = t.tui.NewWindow(1683 marginInt[0], marginInt[3]+pwidth+1, width-pwidth-1, height, false, noBorder)1744 innerMarginInt[0], innerMarginInt[3]+pwidth+m, innerWidth-pwidth-m, innerHeight, tui.WindowList, noBorder, true)17451746 // Clear characters on the margin1747 // fzf --bind 'space:preview(seq 100)' --preview-window left,11748 if !hasListBorder {1687 for y := 0; y < height; y++ {1688 t.window.Move(y, -1)1689 t.window.Print(" ")1749 for y := 0; y < innerHeight; y++ {1750 t.window.Move(y, -1)1751 t.window.Print(" ")1752 }1753 }17541755 innerBorderFn(marginInt[0], marginInt[3]+pwidth, width-pwidth, height)1756 createPreviewWindow(marginInt[0], marginInt[3], pwidth, height)1757 } else {1758 // NOTE: fzf --preview 'cat {}' --preview-window border-left --border1695 if !previewOpts.border.HasRight() && t.borderShape.HasRight() {1759 stickToRight = !previewOpts.border.HasRight() && t.borderShape.HasRight()1760 if stickToRight {1761 innerWidth++1762 width++1763 }1764 innerBorderFn(marginInt[0], marginInt[3], width-pwidth, height)1765 t.window = t.tui.NewWindow(1699 marginInt[0], marginInt[3], width-pwidth, height, false, noBorder)1766 innerMarginInt[0], innerMarginInt[3], innerWidth-pwidth, innerHeight, tui.WindowList, noBorder, true)1767 x := marginInt[3] + width - pwidth1768 createPreviewWindow(marginInt[0], x, pwidth, height)1769 }1770 }1771 }1772 resizePreviewWindows(&t.previewOpts)17731774 if t.borderShape.HasRight() && !stickToRight {1775 // Need to clear the extra margin between the borders1776 // fzf --preview 'seq 1000' --preview-window border-left --bind space:change-preview-window:border-rounded --border vertical1777 // fzf --preview 'seq 1000' --preview-window up,hidden --bind space:toggle-preview --border vertical1778 y := 01779 if t.borderShape.HasTop() {1780 y++1781 }1782 maxY := t.border.Height()1783 if t.borderShape.HasBottom() {1784 maxY--1785 }1786 for ; y < maxY; y++ {1787 t.border.Move(y, t.border.Width()-2)1788 t.border.Print(" ")1789 }1790 }1791 } else {1792 t.activePreviewOpts = &t.previewOpts1793 }17941795 // Without preview window1796 if t.window == nil {1712 if t.borderShape.HasRight() {1797 if t.borderShape.HasRight() && !hasListBorder {1798 // Put scrollbar closer to the right border for consistent look1799 innerWidth++1800 width++1801 }1802 innerBorderFn(marginInt[0], marginInt[3], width, height)1803 t.window = t.tui.NewWindow(1717 marginInt[0],1718 marginInt[3],1719 width,1720 height, false, noBorder)1804 innerMarginInt[0],1805 innerMarginInt[3],1806 innerWidth,1807 innerHeight, tui.WindowList, noBorder, true)1808 }18091810 // Print border label1811 t.printLabel(t.wborder, t.listLabel, t.listLabelOpts, t.listLabelLen, t.listBorderShape, false)1812 t.printLabel(t.border, t.borderLabel, t.borderLabelOpts, t.borderLabelLen, t.borderShape, false)1813 t.printLabel(t.pborder, t.previewLabel, t.previewLabelOpts, t.previewLabelLen, t.activePreviewOpts.border, false)1814}1815
110 unmodified lines
1926 return string(runes) + strings.Repeat(".", util.Constrain(maxWidth, 0, 2))1927}19281929func (t *Terminal) printInfo() {1930 if t.window.Width() <= 1 {1931 return1932 }1933 pos := 01934 line := t.promptLine()1935 maxHeight := t.window.Height()1936 move := func(y int, x int, clear bool) bool {
130 unmodified lines
2067 t.window.CPrint(tui.ColInfo, output)2068 } else {2069 outputPrinter(t.window, maxWidth-1)2070 }2071 if fillLength >= 0 {1980 t.window.Print(" ") // Margin2072 t.window.Print(" ") // Margin2073 }2074 return2075 }20762077 if t.infoStyle == infoInlineRight {
129 unmodified lines
2207}22082209func (t *Terminal) printBar(lineNum int, forceRedraw bool, barRange [2]int) bool {2210 hasBar := lineNum >= barRange[0] && lineNum < barRange[1]2118 if hasBar != t.prevLines[lineNum].hasBar || forceRedraw {2211 if (hasBar != t.prevLines[lineNum].hasBar || forceRedraw) && t.window.Width() > 0 {2212 t.move(lineNum, t.window.Width()-1, true)2213 if len(t.scrollbar) > 0 && hasBar {2214 t.window.CPrint(tui.ColScrollbar, t.scrollbar)2215 }
88 unmodified lines
2304 return marker2305 }2306 if current {2307 preTask := func(marker markerClass) {2308 w := t.window.Width() - t.pointerLen2309 if w < 0 {2310 return2311 }2312 if len(label) == 0 {2313 t.window.CPrint(tui.ColCurrentCursorEmpty, t.pointerEmpty)2314 } else {2315 t.window.CPrint(tui.ColCurrentCursor, label)2316 }2317 if w-t.markerLen < 0 {2318 return2319 }2320 if selected {2321 t.window.CPrint(tui.ColCurrentMarker, markerFor(marker))2322 } else {2323 t.window.CPrint(tui.ColCurrentSelectedEmpty, t.markerEmpty)
1 unmodified line
2325 }2326 finalLineNum = t.printHighlighted(result, tui.ColCurrent, tui.ColCurrentMatch, true, true, line, maxLine, forceRedraw, preTask, postTask)2327 } else {2328 preTask := func(marker markerClass) {2329 w := t.window.Width() - t.pointerLen2330 if w < 0 {2331 return2332 }2333 if len(label) == 0 {2334 t.window.CPrint(tui.ColCursorEmpty, t.pointerEmpty)2335 } else {2336 t.window.CPrint(tui.ColCursor, label)2337 }2338 if w-t.markerLen < 0 {2339 return2340 }2341 if selected {2342 t.window.CPrint(tui.ColMarker, markerFor(marker))2343 } else {2344 t.window.Print(t.markerEmpty)
707 unmodified lines
3052func (t *Terminal) flush() {3053 t.placeCursor()3054 if !t.suppress {3055 windows := make([]tui.Window, 0, 4)2949 if t.borderShape != tui.BorderNone {3056 if t.borderShape.Visible() {3057 windows = append(windows, t.border)3058 }3059 if t.hasPreviewWindow() {3060 if t.pborder != nil {
900 unmodified lines
3961 t.suppress = false3962 if t.hasPreviewer() {3963 t.previewBox.Set(reqPreviewReady, nil)3964 }3965 case reqRedrawListLabel:3966 t.printLabel(t.wborder, t.listLabel, t.listLabelOpts, t.listLabelLen, t.listBorderShape, true)3967 case reqRedrawBorderLabel:3968 t.printLabel(t.border, t.borderLabel, t.borderLabelOpts, t.borderLabelLen, t.borderShape, true)3969 case reqRedrawPreviewLabel:3970 t.printLabel(t.pborder, t.previewLabel, t.previewLabelOpts, t.previewLabelLen, t.activePreviewOpts.border, true)
89 unmodified lines
4060 }()4061 previewDraggingPos := -14062 barDragging := false4063 pbarDragging := false3955 pborderDragging := false4064 pborderDragging := -14065 wasDown := false4066 needBarrier := true40674068 // If an action is bound to 'start', we're going to process it before reading
275 unmodified lines
4344 req(reqHeader, reqList, reqPrompt, reqInfo)4345 } else {4346 req(reqHeader)4347 }4348 case actChangeListLabel:4349 t.listLabelOpts.label = a.a4350 if t.wborder != nil {4351 t.listLabel, t.listLabelLen = t.ansiLabelPrinter(a.a, &tui.ColListLabel, false)4352 req(reqRedrawListLabel)4353 }4354 case actChangeBorderLabel:4355 t.borderLabelOpts.label = a.a4356 if t.border != nil {4357 t.borderLabel, t.borderLabelLen = t.ansiLabelPrinter(a.a, &tui.ColBorderLabel, false)
9 unmodified lines
4367 body := t.executeCommand(a.a, false, true, true, false, "")4368 if actions, err := parseSingleActionList(strings.Trim(body, "\r\n")); err == nil {4369 return doActions(actions)4370 }4371 case actTransformListLabel:4372 label := t.executeCommand(a.a, false, true, true, true, "")4373 t.listLabelOpts.label = label4374 if t.wborder != nil {4375 t.listLabel, t.listLabelLen = t.ansiLabelPrinter(label, &tui.ColListLabel, false)4376 req(reqRedrawListLabel)4377 }4378 case actTransformBorderLabel:4379 label := t.executeCommand(a.a, false, true, true, true, "")4380 t.borderLabelOpts.label = label4381 if t.border != nil {
423 unmodified lines
4805 wasDown = me.Down4806 if !me.Down {4807 barDragging = false4808 pbarDragging = false4687 pborderDragging = false4809 pborderDragging = -14810 previewDraggingPos = -14811 }48124813 // Scrolling
47 unmodified lines
4861 break4862 }48634864 // Preview border dragging (resizing)4743 if !pborderDragging && clicked && t.hasPreviewWindow() && t.pborder.Enclose(my, mx) {4865 if pborderDragging < 0 && clicked && t.hasPreviewWindow() {4866 switch t.activePreviewOpts.position {4867 case posUp:4746 pborderDragging = my == t.pborder.Top()+t.pborder.Height()-14868 if t.pborder.Enclose(my, mx) && my == t.pborder.Top()+t.pborder.Height()-1 {4869 pborderDragging = 04870 } else if t.listBorderShape.HasTop() && t.wborder.Enclose(my, mx) && my == t.wborder.Top() {4871 pborderDragging = 14872 }4873 case posDown:4748 pborderDragging = my == t.pborder.Top()4874 if t.pborder.Enclose(my, mx) && my == t.pborder.Top() {4875 pborderDragging = 04876 } else if t.listBorderShape.HasBottom() && t.wborder.Enclose(my, mx) && my == t.wborder.Top()+t.wborder.Height()-1 {4877 pborderDragging = 14878 }4879 case posLeft:4750 pborderDragging = mx == t.pborder.Left()+t.pborder.Width()-14880 if t.pborder.Enclose(my, mx) && mx == t.pborder.Left()+t.pborder.Width()-1 {4881 pborderDragging = 04882 } else if t.listBorderShape.HasLeft() && t.wborder.Enclose(my, mx) && mx == t.wborder.Left() {4883 pborderDragging = 14884 }4885 case posRight:4752 pborderDragging = mx == t.pborder.Left()4886 if t.pborder.Enclose(my, mx) && mx == t.pborder.Left() {4887 pborderDragging = 04888 } else if t.listBorderShape.HasRight() && t.wborder.Enclose(my, mx) && mx == t.wborder.Left()+t.wborder.Width()-1 {4889 pborderDragging = 14890 }4891 }4892 }48934756 if pborderDragging {4894 if pborderDragging >= 0 {4895 var newSize int4896 var prevSize int4897 switch t.activePreviewOpts.position {4898 case posLeft:
12 unmodified lines
4911 prevSize = t.pwindow.Width()4912 offset := mx - t.pborder.Left()4913 newSize = prevSize - offset4914 }4915 newSize -= pborderDragging4916 if newSize < 1 {4917 newSize = 14918 }4919
496 unmodified lines
modified:CHANGELOG.md+16 added
1CHANGELOG2=========340.58.05------6- Additional border and label for the list section7 - Options8 - `--list-border[=STYLE]`9 - `--list-label=LABEL`10 - `--list-label-pos=COL[:bottom]`11 - Colors12 - `list-fg`13 - `list-bg`14 - `list-border`15 - `list-label`16 - Actions17 - `change-list-label`18 - `transform-list-label`19200.57.021------22- You can now resize the preview window by dragging the border23- Built-in walker improvements
2325 unmodified lines