From 3b68dcdd81394f1ac9f743e1f74ff754f95eef9e Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 10 Jun 2025 00:26:57 +0900 Subject: Add footer Options: --footer=STR String to print as footer --footer-border[=STYLE] Draw border around the footer section [rounded|sharp|bold|block|thinblock|double|horizontal|vertical| top|bottom|left|right|line|none] (default: line) --footer-label=LABEL Label to print on the footer border --footer-label-pos=COL Position of the footer label [POSITIVE_INTEGER: columns from left| NEGATIVE_INTEGER: columns from right][:bottom] (default: 0 or center) The default border type for footer is 'line', which draws a single separator between the footer and the list. It changes its position depending on `--layout`, so you don't have to manually switch between 'top' and 'bottom' The 'line' style is now supported by other border types as well. `--list-border` is the only exception. --- src/tmux.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/tmux.go') diff --git a/src/tmux.go b/src/tmux.go index 87ea38cc..2e8499c5 100644 --- a/src/tmux.go +++ b/src/tmux.go @@ -11,10 +11,14 @@ func runTmux(args []string, opts *Options) (int, error) { // Prepare arguments fzf, rest := args[0], args[1:] args = []string{"--bind=ctrl-z:ignore"} - if !opts.Tmux.border && opts.BorderShape == tui.BorderUndefined { + if !opts.Tmux.border && (opts.BorderShape == tui.BorderUndefined || opts.BorderShape == tui.BorderLine) { // We append --border option at the end, because `--style=full:STYLE` // may have changed the default border style. - rest = append(rest, "--border") + if tui.DefaultBorderShape == tui.BorderRounded { + rest = append(rest, "--border=rounded") + } else { + rest = append(rest, "--border=sharp") + } } if opts.Tmux.border && opts.Margin == defaultMargin() { args = append(args, "--margin=0,1") -- cgit v1.2.3