-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature request] add an option to enable tmux popup window borders #4156
Comments
Another variation of the above proposed solution would be extending the
which would wrap the tmux interface and not expose tmux flag names as part of the fzf interface. |
There is an ongoing discussion where we're trying to abstract So considering that, I'd like to avoid leaking any tmux-specific options to the users, so I prefer your last suggestion, but the word |
Somewhat related: #4155 |
Sounds reasonable to me. With a more generic |
This commit adds the `border-native` resulting in the following: ``` --tmux[=[center|top|bottom|left|right][,SIZE[%]][,SIZE[%]][,border-native]] ``` By default, when not specified, the `-B` flag is passed to the `tmux popup-window` command such that no border is drawn around the tmux popup window. When the `border-native` option is present, the `-B` flag is omitted and the popup window is drawn using the border style configured in the tmux config file. Fixes #4156 Signed-off-by: Andreas Auernhammer <[email protected]> Co-authored-by: Junegunn Choi <[email protected]>
Checklist
man fzf
)Output of
fzf --version
0.57.0
OS
Shell
Problem / Steps to reproduce
Currently, the tmux popup window is launched with:
fzf/src/tmux.go
Line 36 in fb3bf6c
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.
vs.
If customizing this should be supported, I see two ways to do this:
--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 arespecified, the current list of default flags is applied.
--tmux-flags
that contains a list of flags passed totmux popup
. Again, if not specified, the currentlist of default flags is applied.
The text was updated successfully, but these errors were encountered: