summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorAndreas Auernhammer <github@aead.dev>2025-01-04 10:30:32 +0100
committerGitHub <noreply@github.com>2025-01-04 18:30:32 +0900
commit120cd7f25a8209297f15b0a79b36c44b30e641fb (patch)
tree60e91ffcaeca4fcae11a2b2dc76b1533659493b2 /man
parentfb3bf6c9841d849ec459fc6b251b4aa0f16d8038 (diff)
downloadfzf-120cd7f25a8209297f15b0a79b36c44b30e641fb.tar.gz
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 <github@aead.dev> Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
Diffstat (limited to 'man')
-rw-r--r--man/man1/fzf.17
1 files changed, 5 insertions, 2 deletions
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"