Add 'transform-border-label' and 'transform-preview-label'
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Junegunn Choi · committed by Junegunn Choi · parent c3d73e7 · Browse files · 8 files·+199 added−128 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
8 files+199 added−128 removed
- tests:+11 added−1 removed
- other:+188 added−127 removed
Provenance
- Commit
d51980a- Tree
6041fc6- Author
Junegunn Choi <junegunn.c@gmail.com>- Committer
Junegunn Choi <junegunn.c@gmail.com>- Parent
c3d73e7
8 files changed+199 added−128 removed
modified:man/man1/fzf.1+71 added-69 removed
970 unmodified lines971 972 .SS AVAILABLE ACTIONS:973 A key or an event can be bound to one or more of the following actions.974 975- \fBACTION: DEFAULT BINDINGS (NOTES):976- \fBabort\fR \fIctrl-c ctrl-g ctrl-q esc\fR977- \fBaccept\fR \fIenter double-click\fR978- \fBaccept-non-empty\fR (same as \fBaccept\fR except that it prevents fzf from exiting without selection)979- \fBbackward-char\fR \fIctrl-b left\fR980- \fBbackward-delete-char\fR \fIctrl-h bspace\fR981- \fBbackward-delete-char/eof\fR (same as \fBbackward-delete-char\fR except aborts fzf if query is empty)982- \fBbackward-kill-word\fR \fIalt-bs\fR983- \fBbackward-word\fR \fIalt-b shift-left\fR984- \fBbeginning-of-line\fR \fIctrl-a home\fR985- \fBcancel\fR (clear query string if not empty, abort fzf otherwise)986- \fBchange-preview(...)\fR (change \fB--preview\fR option)987- \fBchange-preview-window(...)\fR (change \fB--preview-window\fR option; rotate through the multiple option sets separated by '|')988- \fBchange-preview-label(...)\fR (change \fB--preview-label\fR to the given string)989- \fBchange-prompt(...)\fR (change prompt to the given string)990- \fBchange-border-label(...)\fR (change \fB--border-label\fR to the given string) 991- \fBchange-query(...)\fR (change query string to the given string)992- \fBclear-screen\fR \fIctrl-l\fR993- \fBclear-selection\fR (clear multi-selection)994- \fBclose\fR (close preview window if open, abort fzf otherwise)995- \fBclear-query\fR (clear query string)996- \fBdelete-char\fR \fIdel\fR997- \fBdelete-char/eof\fR \fIctrl-d\fR (same as \fBdelete-char\fR except aborts fzf if query is empty)975+ \fBACTION: DEFAULT BINDINGS (NOTES):976+ \fBabort\fR \fIctrl-c ctrl-g ctrl-q esc\fR977+ \fBaccept\fR \fIenter double-click\fR978+ \fBaccept-non-empty\fR (same as \fBaccept\fR except that it prevents fzf from exiting without selection)979+ \fBbackward-char\fR \fIctrl-b left\fR980+ \fBbackward-delete-char\fR \fIctrl-h bspace\fR981+ \fBbackward-delete-char/eof\fR (same as \fBbackward-delete-char\fR except aborts fzf if query is empty)982+ \fBbackward-kill-word\fR \fIalt-bs\fR983+ \fBbackward-word\fR \fIalt-b shift-left\fR984+ \fBbeginning-of-line\fR \fIctrl-a home\fR985+ \fBcancel\fR (clear query string if not empty, abort fzf otherwise)986+ \fBchange-preview(...)\fR (change \fB--preview\fR option)987+ \fBchange-preview-window(...)\fR (change \fB--preview-window\fR option; rotate through the multiple option sets separated by '|')988+ \fBchange-preview-label(...)\fR (change \fB--preview-label\fR to the given string)989+ \fBchange-prompt(...)\fR (change prompt to the given string)990+ \fBchange-border-label(...)\fR (change \fB--border-label\fR to the given string)991+ \fBchange-query(...)\fR (change query string to the given string)992+ \fBclear-screen\fR \fIctrl-l\fR993+ \fBclear-selection\fR (clear multi-selection)994+ \fBclose\fR (close preview window if open, abort fzf otherwise)995+ \fBclear-query\fR (clear query string)996+ \fBdelete-char\fR \fIdel\fR997+ \fBdelete-char/eof\fR \fIctrl-d\fR (same as \fBdelete-char\fR except aborts fzf if query is empty)998 \fBdeselect\fR999- \fBdeselect-all\fR (deselect all matches)1000- \fBdisable-search\fR (disable search functionality)1001- \fBdown\fR \fIctrl-j ctrl-n down\fR1002- \fBenable-search\fR (enable search functionality)1003- \fBend-of-line\fR \fIctrl-e end\fR1004- \fBexecute(...)\fR (see below for the details)1005- \fBexecute-silent(...)\fR (see below for the details)1006- \fBfirst\fR (move to the first match; same as \fBpos(1)\fR)1007- \fBforward-char\fR \fIctrl-f right\fR1008- \fBforward-word\fR \fIalt-f shift-right\fR999+ \fBdeselect-all\fR (deselect all matches)1000+ \fBdisable-search\fR (disable search functionality)1001+ \fBdown\fR \fIctrl-j ctrl-n down\fR1002+ \fBenable-search\fR (enable search functionality)1003+ \fBend-of-line\fR \fIctrl-e end\fR1004+ \fBexecute(...)\fR (see below for the details)1005+ \fBexecute-silent(...)\fR (see below for the details)1006+ \fBfirst\fR (move to the first match; same as \fBpos(1)\fR)1007+ \fBforward-char\fR \fIctrl-f right\fR1008+ \fBforward-word\fR \fIalt-f shift-right\fR1009 \fBignore\fR1010- \fBjump\fR (EasyMotion-like 2-keystroke movement)1011- \fBjump-accept\fR (jump and accept)1010+ \fBjump\fR (EasyMotion-like 2-keystroke movement)1011+ \fBjump-accept\fR (jump and accept)1012 \fBkill-line\fR1013- \fBkill-word\fR \fIalt-d\fR1014- \fBlast\fR (move to the last match; same as \fBpos(-1)\fR)1015- \fBnext-history\fR (\fIctrl-n\fR on \fB--history\fR)1016- \fBnext-selected\fR (move to the next selected item)1017- \fBpage-down\fR \fIpgdn\fR1018- \fBpage-up\fR \fIpgup\fR1013+ \fBkill-word\fR \fIalt-d\fR1014+ \fBlast\fR (move to the last match; same as \fBpos(-1)\fR)1015+ \fBnext-history\fR (\fIctrl-n\fR on \fB--history\fR)1016+ \fBnext-selected\fR (move to the next selected item)1017+ \fBpage-down\fR \fIpgdn\fR1018+ \fBpage-up\fR \fIpgup\fR1019 \fBhalf-page-down\fR1020 \fBhalf-page-up\fR1021- \fBpos(...)\fR (move cursor to the numeric position; negative number to count from the end)1022- \fBprev-history\fR (\fIctrl-p\fR on \fB--history\fR)1023- \fBprev-selected\fR (move to the previous selected item)1024- \fBpreview(...)\fR (see below for the details)1025- \fBpreview-down\fR \fIshift-down\fR1026- \fBpreview-up\fR \fIshift-up\fR1021+ \fBpos(...)\fR (move cursor to the numeric position; negative number to count from the end)1022+ \fBprev-history\fR (\fIctrl-p\fR on \fB--history\fR)1023+ \fBprev-selected\fR (move to the previous selected item)1024+ \fBpreview(...)\fR (see below for the details)1025+ \fBpreview-down\fR \fIshift-down\fR1026+ \fBpreview-up\fR \fIshift-up\fR1027 \fBpreview-page-down\fR1028 \fBpreview-page-up\fR1029 \fBpreview-half-page-down\fR1030 \fBpreview-half-page-up\fR1031 \fBpreview-bottom\fR1032 \fBpreview-top\fR1033- \fBprint-query\fR (print query and exit)1034- \fBput\fR (put the character to the prompt)1035- \fBput(...)\fR (put the given string to the prompt)1033+ \fBprint-query\fR (print query and exit)1034+ \fBput\fR (put the character to the prompt)1035+ \fBput(...)\fR (put the given string to the prompt)1036 \fBrefresh-preview\fR1037- \fBrebind(...)\fR (rebind bindings after \fBunbind\fR)1038- \fBreload(...)\fR (see below for the details)1039- \fBreload-sync(...)\fR (see below for the details)1040- \fBreplace-query\fR (replace query string with the current selection)1037+ \fBrebind(...)\fR (rebind bindings after \fBunbind\fR)1038+ \fBreload(...)\fR (see below for the details)1039+ \fBreload-sync(...)\fR (see below for the details)1040+ \fBreplace-query\fR (replace query string with the current selection)1041 \fBselect\fR1042- \fBselect-all\fR (select all matches)1043- \fBtoggle\fR (\fIright-click\fR)1044- \fBtoggle-all\fR (toggle all matches)1045- \fBtoggle+down\fR \fIctrl-i (tab)\fR1046- \fBtoggle-in\fR (\fB--layout=reverse*\fR ? \fBtoggle+up\fR : \fBtoggle+down\fR)1047- \fBtoggle-out\fR (\fB--layout=reverse*\fR ? \fBtoggle+down\fR : \fBtoggle+up\fR)1042+ \fBselect-all\fR (select all matches)1043+ \fBtoggle\fR (\fIright-click\fR)1044+ \fBtoggle-all\fR (toggle all matches)1045+ \fBtoggle+down\fR \fIctrl-i (tab)\fR1046+ \fBtoggle-in\fR (\fB--layout=reverse*\fR ? \fBtoggle+up\fR : \fBtoggle+down\fR)1047+ \fBtoggle-out\fR (\fB--layout=reverse*\fR ? \fBtoggle+down\fR : \fBtoggle+up\fR)1048 \fBtoggle-preview\fR1049 \fBtoggle-preview-wrap\fR1050- \fBtoggle-search\fR (toggle search functionality)1050+ \fBtoggle-search\fR (toggle search functionality)1051 \fBtoggle-sort\fR1052+ \fBtoggle+up\fR \fIbtab (shift-tab)\fR1053+ \fBtransform-border-label(...)\fR (transform border label using an external command)1052- \fBtoggle+up\fR \fIbtab (shift-tab)\fR1053- \fBtransform-prompt(...)\fR (transform prompt string using an external command)1054- \fBtransform-query(...)\fR (transform query string using an external command)1055- \fBunbind(...)\fR (unbind bindings)1056- \fBunix-line-discard\fR \fIctrl-u\fR1057- \fBunix-word-rubout\fR \fIctrl-w\fR1058- \fBup\fR \fIctrl-k ctrl-p up\fR1059- \fByank\fR \fIctrl-y\fR1054+ \fBtransform-preview-label(...)\fR (transform preview label using an external command)1055+ \fBtransform-prompt(...)\fR (transform prompt string using an external command)1056+ \fBtransform-query(...)\fR (transform query string using an external command)1057+ \fBunbind(...)\fR (unbind bindings)1058+ \fBunix-line-discard\fR \fIctrl-u\fR1059+ \fBunix-word-rubout\fR \fIctrl-w\fR1060+ \fBup\fR \fIctrl-k ctrl-p up\fR1061+ \fByank\fR \fIctrl-y\fR1062 1063 .SS ACTION COMPOSITION1064 1065 Multiple actions can be chained using \fB+\fR separator.141 unmodified linesmodified:src/tui/light.go+26 added-11 removed
717 unmodified lines718 } else {719 w.fg = r.theme.Fg.Color720 w.bg = r.theme.Bg.Color721 }722- w.drawBorder()722+ w.drawBorder(false)723 return w724 }725 726-func (w *LightWindow) drawBorder() {726+func (w *LightWindow) DrawHBorder() {727+ w.drawBorder(true)728+}729+730+func (w *LightWindow) drawBorder(onlyHorizontal bool) {731 switch w.border.shape {732 case BorderRounded, BorderSharp, BorderBold, BorderDouble:729- w.drawBorderAround()733+ w.drawBorderAround(onlyHorizontal)734 case BorderHorizontal:735 w.drawBorderHorizontal(true, true)736 case BorderVertical:737+ if onlyHorizontal {738+ return739+ }740 w.drawBorderVertical(true, true)741 case BorderTop:742 w.drawBorderHorizontal(true, false)743 case BorderBottom:744 w.drawBorderHorizontal(false, true)745 case BorderLeft:746+ if onlyHorizontal {747+ return748+ }749 w.drawBorderVertical(true, false)750 case BorderRight:751+ if onlyHorizontal {752+ return753+ }754 w.drawBorderVertical(false, true)755 }756 }757 33 unmodified lines791 }792 }793 }794 782-func (w *LightWindow) drawBorderAround() {795+func (w *LightWindow) drawBorderAround(onlyHorizontal bool) {796 w.Move(0, 0)797 color := ColBorder798 if w.preview {799 color = ColPreviewBorder800 }801 hw := runewidth.RuneWidth(w.border.horizontal)789- vw := runewidth.RuneWidth(w.border.vertical)802 tcw := runewidth.RuneWidth(w.border.topLeft) + runewidth.RuneWidth(w.border.topRight)803 bcw := runewidth.RuneWidth(w.border.bottomLeft) + runewidth.RuneWidth(w.border.bottomRight)804 rem := (w.width - tcw) % hw805 w.CPrint(color, string(w.border.topLeft)+repeat(w.border.horizontal, (w.width-tcw)/hw)+repeat(' ', rem)+string(w.border.topRight))806+ if !onlyHorizontal {807+ vw := runewidth.RuneWidth(w.border.vertical)794- for y := 1; y < w.height-1; y++ {795- w.Move(y, 0)796- w.CPrint(color, string(w.border.vertical))797- w.CPrint(color, repeat(' ', w.width-vw*2))798- w.CPrint(color, string(w.border.vertical))808+ for y := 1; y < w.height-1; y++ {809+ w.Move(y, 0)810+ w.CPrint(color, string(w.border.vertical))811+ w.CPrint(color, repeat(' ', w.width-vw*2))812+ w.CPrint(color, string(w.border.vertical))813+ }814 }815 w.Move(w.height-1, 0)816 rem = (w.width - bcw) % hw817 w.CPrint(color, string(w.border.bottomLeft)+repeat(w.border.horizontal, (w.width-bcw)/hw)+repeat(' ', rem)+string(w.border.bottomRight))236 unmodified lines1054 }1055 }1056 1057 func (w *LightWindow) Erase() {1043- w.drawBorder()1058+ w.drawBorder(false)1059 // We don't erase the window here to avoid flickering during scroll1060 w.Move(0, 0)1061 }modified:src/tui/tcell.go+18 added-12 removed
510 unmodified lines511 width: width,512 height: height,513 normal: normal,514 borderStyle: borderStyle}515- w.drawBorder()515+ w.drawBorder(false)516 return w517 }518 519 func (w *TcellWindow) Close() {149 unmodified lines669 }670 return w.fillString(str, NewColorPair(fg, bg, a))671 }672 673-func (w *TcellWindow) drawBorder() {673+func (w *TcellWindow) DrawHBorder() {674+ w.drawBorder(true)675+}676+677+func (w *TcellWindow) drawBorder(onlyHorizontal bool) {678 shape := w.borderStyle.shape679 if shape == BorderNone {680 return681 }39 unmodified lines721 for x := left; x <= max; x += hw {722 _screen.SetContent(x, bot-1, w.borderStyle.horizontal, nil, style)723 }724 }725+ if !onlyHorizontal {721- switch shape {722- case BorderRounded, BorderSharp, BorderBold, BorderDouble, BorderVertical, BorderLeft:723- for y := top; y < bot; y++ {724- _screen.SetContent(left, y, w.borderStyle.vertical, nil, style)726+ switch shape {727+ case BorderRounded, BorderSharp, BorderBold, BorderDouble, BorderVertical, BorderLeft:728+ for y := top; y < bot; y++ {729+ _screen.SetContent(left, y, w.borderStyle.vertical, nil, style)730+ }731 }726- }727- switch shape {728- case BorderRounded, BorderSharp, BorderBold, BorderDouble, BorderVertical, BorderRight:729- vw := runewidth.RuneWidth(w.borderStyle.vertical)730- for y := top; y < bot; y++ {731- _screen.SetContent(right-vw, y, w.borderStyle.vertical, nil, style)732+ switch shape {733+ case BorderRounded, BorderSharp, BorderBold, BorderDouble, BorderVertical, BorderRight:734+ vw := runewidth.RuneWidth(w.borderStyle.vertical)735+ for y := top; y < bot; y++ {736+ _screen.SetContent(right-vw, y, w.borderStyle.vertical, nil, style)737+ }738 }739 }740 switch shape {741 case BorderRounded, BorderSharp, BorderBold, BorderDouble:6 unmodified linesmodified:src/tui/tui.go+1 added
424 unmodified lines425 Left() int426 Width() int427 Height() int428 429+ DrawHBorder()430 Refresh()431 FinishFill()432 Close()433 279 unmodified linesmodified:src/options.go+9 added-5 removed
910 unmodified lines911 )912 913 func init() {914 executeRegexp = regexp.MustCompile(915- `(?si)[:+](execute(?:-multi|-silent)?|reload(?:-sync)?|preview|(?:change|transform)-(?:query|prompt)|change-preview-window|change-preview-label|change-border-label|change-preview|(?:re|un)bind|pos|put)`)915+ `(?si)[:+](execute(?:-multi|-silent)?|reload(?:-sync)?|preview|(?:change|transform)-(?:query|prompt|border-label|preview-label)|change-preview-window|change-preview|(?:re|un)bind|pos|put)`)916 splitRegexp = regexp.MustCompile("[,:]+")917 actionNameRegexp = regexp.MustCompile("(?i)^[a-z-]+")918 }919 299 unmodified lines1219 case "rebind":1220 return actRebind1221 case "preview":1222 return actPreview1223+ case "change-border-label":1224+ return actChangeBorderLabel1225+ case "change-preview-label":1226+ return actChangePreviewLabel1227 case "change-preview-window":1228 return actChangePreviewWindow1229 case "change-preview":1230 return actChangePreview1227- case "change-preview-label":1228- return actChangePreviewLabel1231 case "change-prompt":1232 return actChangePrompt1231- case "change-border-label":1232- return actChangeBorderLabel1233 case "change-query":1234 return actChangeQuery1235 case "pos":1236 return actPosition4 unmodified lines1241 case "execute-multi":1242 return actExecuteMulti1243 case "put":1244 return actPut1245+ case "transform-border-label":1246+ return actTransformBorderLabel1247+ case "transform-preview-label":1248+ return actTransformPreviewLabel1249 case "transform-prompt":1250 return actTransformPrompt1251 case "transform-query":1252 return actTransformQuery777 unmodified linesmodified:src/terminal.go+57 added-29 removed
274 unmodified lines275 reqJump276 reqRefresh277 reqReinit278 reqFullRedraw279+ reqRedrawBorderLabel280+ reqRedrawPreviewLabel281 reqClose282 reqPrintQuery283 reqPreviewEnqueue284 reqPreviewDisplay65 unmodified lines350 actReplaceQuery351 actToggleSort352 actTogglePreview353 actTogglePreviewWrap354+ actTransformBorderLabel355+ actTransformPreviewLabel356 actTransformPrompt357 actTransformQuery358 actPreview359 actChangePreview895 unmodified lines1255 height, false, noBorder)1256 }1257 1258 // Print border label1255- printLabel := func(window tui.Window, render labelPrinter, opts labelOpts, length int, borderShape tui.BorderShape) {1256- if window == nil || render == nil {1257- return1258- }1259+ t.printLabel(t.border, t.borderLabel, t.borderLabelOpts, t.borderLabelLen, t.borderShape, false)1260+ t.printLabel(t.pborder, t.previewLabel, t.previewLabelOpts, t.previewLabelLen, t.previewOpts.border, false)1261 1260- switch borderShape {1261- case tui.BorderHorizontal, tui.BorderTop, tui.BorderBottom, tui.BorderRounded, tui.BorderSharp, tui.BorderBold, tui.BorderDouble:1262- var col int1263- if opts.column == 0 {1264- col = util.Max(0, (window.Width()-length)/2)1265- } else if opts.column < 0 {1266- col = util.Max(0, window.Width()+opts.column+1-length)1267- } else {1268- col = util.Min(opts.column-1, window.Width()-length)1269- }1270- row := 01271- if borderShape == tui.BorderBottom || opts.bottom {1272- row = window.Height() - 11273- }1274- window.Move(row, col)1275- render(window, window.Width())1276- }1277- }1278- printLabel(t.border, t.borderLabel, t.borderLabelOpts, t.borderLabelLen, t.borderShape)1279- printLabel(t.pborder, t.previewLabel, t.previewLabelOpts, t.previewLabelLen, t.previewOpts.border)1280-1262 for i := 0; i < t.window.Height(); i++ {1263 t.window.MoveAndClear(i, 0)1264 }1265 }1266 1267+func (t *Terminal) printLabel(window tui.Window, render labelPrinter, opts labelOpts, length int, borderShape tui.BorderShape, redrawBorder bool) {1268+ if window == nil || render == nil {1269+ return1270+ }1271+1272+ switch borderShape {1273+ case tui.BorderHorizontal, tui.BorderTop, tui.BorderBottom, tui.BorderRounded, tui.BorderSharp, tui.BorderBold, tui.BorderDouble:1274+ if redrawBorder {1275+ window.DrawHBorder()1276+ }1277+ var col int1278+ if opts.column == 0 {1279+ col = util.Max(0, (window.Width()-length)/2)1280+ } else if opts.column < 0 {1281+ col = util.Max(0, window.Width()+opts.column+1-length)1282+ } else {1283+ col = util.Min(opts.column-1, window.Width()-length)1284+ }1285+ row := 01286+ if borderShape == tui.BorderBottom || opts.bottom {1287+ row = window.Height() - 11288+ }1289+ window.Move(row, col)1290+ render(window, window.Width())1291+ }1292+}1293+1294 func (t *Terminal) move(y int, x int, clear bool) {1295 h := t.window.Height()1296 1297 switch t.layout {1368 unmodified lines2666 case reqHeader:2667 t.printHeader()2668 case reqRefresh:2669 t.suppress = false2670+ case reqRedrawBorderLabel:2671+ t.printLabel(t.border, t.borderLabel, t.borderLabelOpts, t.borderLabelLen, t.borderShape, true)2672+ case reqRedrawPreviewLabel:2673+ t.printLabel(t.pborder, t.previewLabel, t.previewLabelOpts, t.previewLabelLen, t.previewOpts.border, true)2674 case reqReinit:2675 t.tui.Resume(t.fullscreen, t.sigstop)2676 t.redraw()2677 case reqFullRedraw:245 unmodified lines2923 case actChangeQuery:2924 t.input = []rune(a.a)2925 t.cx = len(t.input)2926 case actChangeBorderLabel:2927+ if t.border != nil {2915- t.borderLabel, t.borderLabelLen = t.ansiLabelPrinter(a.a, &tui.ColBorderLabel, false)2916- req(reqFullRedraw)2928+ t.borderLabel, t.borderLabelLen = t.ansiLabelPrinter(a.a, &tui.ColBorderLabel, false)2929+ req(reqRedrawBorderLabel)2930+ }2931 case actChangePreviewLabel:2932+ if t.pborder != nil {2918- t.previewLabel, t.previewLabelLen = t.ansiLabelPrinter(a.a, &tui.ColPreviewLabel, false)2919- req(reqFullRedraw)2933+ t.previewLabel, t.previewLabelLen = t.ansiLabelPrinter(a.a, &tui.ColPreviewLabel, false)2934+ req(reqRedrawPreviewLabel)2935+ }2936+ case actTransformBorderLabel:2937+ if t.border != nil {2938+ label := t.executeCommand(a.a, false, true, true)2939+ t.borderLabel, t.borderLabelLen = t.ansiLabelPrinter(label, &tui.ColBorderLabel, false)2940+ req(reqRedrawBorderLabel)2941+ }2942+ case actTransformPreviewLabel:2943+ if t.pborder != nil {2944+ label := t.executeCommand(a.a, false, true, true)2945+ t.previewLabel, t.previewLabelLen = t.ansiLabelPrinter(label, &tui.ColPreviewLabel, false)2946+ req(reqRedrawPreviewLabel)2947+ }2948 case actChangePrompt:2949 t.prompt, t.promptLen = t.parsePrompt(a.a)2950 req(reqPrompt)2951 case actPreview:598 unmodified linesmodified:test/test_go.rb+11 added-1 removed
2472 unmodified lines2473 end2474 end2475 2476 def test_labels_center2477- tmux.send_keys ': | fzf --border --border-label foobar --preview : --preview-label barfoo', :Enter2477+ tmux.send_keys 'echo x | fzf --border --border-label foobar --preview : --preview-label barfoo --bind "space:change-border-label(foobarfoo)+change-preview-label(barfoobar),enter:transform-border-label(echo foo{}foo)+transform-preview-label(echo bar{}bar)"', :Enter2478 tmux.until do2479 assert_includes(_1[0], '─foobar─')2480 assert_includes(_1[1], '─barfoo─')2481 end2482+ tmux.send_keys :space2483+ tmux.until do2484+ assert_includes(_1[0], '─foobarfoo─')2485+ assert_includes(_1[1], '─barfoobar─')2486+ end2487+ tmux.send_keys :Enter2488+ tmux.until do2489+ assert_includes(_1[0], '─fooxfoo─')2490+ assert_includes(_1[1], '─barxbar─')2491+ end2492 end2493 2494 def test_labels_left2495 tmux.send_keys ': | fzf --border --border-label foobar --border-label-pos 2 --preview : --preview-label barfoo --preview-label-pos 2', :Enter566 unmodified linesmodified:CHANGELOG.md+6 added-1 removed
1 CHANGELOG2 =========3 4-0.36.14+0.37.05 ------6+- New actions7+ - `change-border-label`8+ - `change-preview-label`9+ - `transform-border-label`10+ - `transform-preview-label`11 - Bug fixes and improvements12 13 0.36.014 ------1510 unmodified lines