Update README: --tmux -> --popup
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Junegunn Choi · committed by Junegunn Choi · parent f584cf3 · Browse files · 1 file·+16 added−15 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+16 added−15 removed
- other:+16 added−15 removed
Provenance
- Commit
1b0d448- Tree
d1f0610- Author
Junegunn Choi <junegunn.c@gmail.com>- Committer
Junegunn Choi <junegunn.c@gmail.com>- Parent
f584cf3
1 file changed+16 added−15 removed
modified:README.md+16 added-15 removed
60 unmodified lines61 * [Usage](#usage)62 * [Using the finder](#using-the-finder)63 * [Display modes](#display-modes)64 * [`--height` mode](#--height-mode)65- * [`--tmux` mode](#--tmux-mode)65+ * [`--popup` mode](#--popup-mode)66 * [Search syntax](#search-syntax)67 * [Environment variables](#environment-variables)68 * [Customizing the look](#customizing-the-look)69 * [Options](#options)279 unmodified lines349 # Screen height - 3350 fzf --height -3351 ```352 353-#### `--tmux` mode353+#### `--popup` mode354 355-With `--tmux` option, fzf will start in a tmux popup.355+With `--popup` option, fzf will start in a popup window356+(requires tmux 3.3+ or Zellij 0.44+).357 358 ```sh358-# --tmux [center|top|bottom|left|right][,SIZE[%]][,SIZE[%][,border-native]]359+# --popup [center|top|bottom|left|right][,SIZE[%]][,SIZE[%][,border-native]]360 360-fzf --tmux center # Center, 50% width and height361-fzf --tmux 80% # Center, 80% width and height362-fzf --tmux 100%,50% # Center, 100% width and 50% height363-fzf --tmux left,40% # Left, 40% width364-fzf --tmux left,40%,90% # Left, 40% width, 90% height365-fzf --tmux top,40% # Top, 40% height366-fzf --tmux bottom,80%,40% # Bottom, 80% width, 40% height361+fzf --popup center # Center, 50% width and height362+fzf --popup 80% # Center, 80% width and height363+fzf --popup 100%,50% # Center, 100% width and 50% height364+fzf --popup left,40% # Left, 40% width365+fzf --popup left,40%,90% # Left, 40% width, 90% height366+fzf --popup top,40% # Top, 40% height367+fzf --popup bottom,80%,40% # Bottom, 80% width, 40% height368 ```369 369-`--tmux` is silently ignored when you're not on tmux.370+`--popup` is silently ignored when you're not on tmux or Zellij.371 372 > [!NOTE]373 > If you're stuck with an old version of tmux that doesn't support popup,374 > or if you want to open fzf in a regular tmux pane, check out3 unmodified lines378 > You can add these options to `$FZF_DEFAULT_OPTS` so that they're applied by379 > default. For example,380 >381 > ```sh381-> # Open in tmux popup if on tmux, otherwise use --height mode382-> export FZF_DEFAULT_OPTS='--height 40% --tmux bottom,40% --layout reverse --border top'382+> # Open in a popup if on tmux or Zellij, otherwise use --height mode383+> export FZF_DEFAULT_OPTS='--height 40% --popup bottom,40% --layout reverse --border top'384 > ```385 386 ### Search syntax387 178 unmodified lines566 sourcing the script567 568 Display modes for these bindings can be separately configured via569 `FZF_{CTRL_T,CTRL_R,ALT_C}_OPTS` or globally via `FZF_DEFAULT_OPTS`.569-(e.g. `FZF_CTRL_R_OPTS='--tmux bottom,60% --height 60% --border top'`)570+(e.g. `FZF_CTRL_R_OPTS='--popup bottom,60% --height 60% --border top'`)571 572 More tips can be found on [the wiki page](https://github.com/junegunn/fzf/wiki/Configuring-shell-key-bindings).573 574 Fuzzy completion536 unmodified lines