Skip to content

[feature request] add an option to enable tmux popup window borders  #4156

Closed
@aead

Description

@aead

Checklist

  • I have read through the manual page (man fzf)
  • I have searched through the existing issues
  • For bug reports, I have checked if the bug is reproducible in the latest version of fzf

Output of fzf --version

0.57.0

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Shell

  • bash
  • zsh
  • fish

Problem / Steps to reproduce

Currently, the tmux popup window is launched with:

tmuxArgs := []string{"display-popup", "-E", "-B", "-d", dir}

The -B flag disables the popup window border. This seems to be a good default. However, there are situations where it would be nice if the popup window had a border. For example, I have a fzf command listing git-log entries and a key binding that executes a pager for viewing the commit message or entire commit (including diff).

Without a popup border, the pager output isn't visually separated from the background and harder to read.

Screenshot 2025-01-03 at 13 18 40

vs.

Screenshot 2025-01-03 at 13 19 41

If customizing this should be supported, I see two ways to do this:

  • Allow tmux flags in the list of elements passed via --tmux[=[center|top|bottom|left|right][,SIZE[%]][,SIZE[%]]]
    For example, --tmux[=[center|top|bottom|left|right][,SIZE[%]][,SIZE[%]],[-B],[-E],[-d DIR]]. If no flags are
    specified, the current list of default flags is applied.
  • Add a new flag --tmux-flags that contains a list of flags passed to tmux popup. Again, if not specified, the current
    list of default flags is applied.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions