From 120cd7f25a8209297f15b0a79b36c44b30e641fb Mon Sep 17 00:00:00 2001 From: Andreas Auernhammer Date: Sat, 4 Jan 2025 10:30:32 +0100 Subject: Add `border-native` option to `--tmux` flag (#4157) 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 Co-authored-by: Junegunn Choi --- man/man1/fzf.1 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'man') diff --git a/man/man1/fzf.1 b/man/man1/fzf.1 index 28d27f18..8d499697 100644 --- a/man/man1/fzf.1 +++ b/man/man1/fzf.1 @@ -271,7 +271,7 @@ Adaptive height has the following limitations: Minimum height when \fB\-\-height\fR is given in percent (default: 10). Ignored when \fB\-\-height\fR is not specified. .TP -.BI "\-\-tmux" "[=[center|top|bottom|left|right][,SIZE[%]][,SIZE[%]]]" +.BI "\-\-tmux" "[=[center|top|bottom|left|right][,SIZE[%]][,SIZE[%]][,border-native]]" Start fzf in a tmux popup (default \fBcenter,50%\fR). Requires tmux 3.3 or later. This option is ignored if you are not running fzf inside tmux. @@ -286,7 +286,10 @@ e.g. fzf \-\-tmux bottom,30% # Popup on the top with 80% width and 40% height - fzf \-\-tmux top,80%,40%\fR + fzf \-\-tmux top,80%,40% + + # Popup with a native tmux border in the center with 80% width and height + fzf \-\-tmux center,80%,border\-native\fR .TP .BI "\-\-layout=" "LAYOUT" -- cgit v1.2.3