Skip to content
Myr

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

1 file+16 added−15 removed

modified:README.md+16 added-15 removed
60 unmodified lines
61* [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 lines
349# Screen height - 3350fzf --height -3351```352353#### `--tmux` mode353#### `--popup` mode354355With `--tmux` option, fzf will start in a tmux popup.355With `--popup` option, fzf will start in a popup window356(requires tmux 3.3+ or Zellij 0.44+).357358```sh358# --tmux [center|top|bottom|left|right][,SIZE[%]][,SIZE[%][,border-native]]359# --popup [center|top|bottom|left|right][,SIZE[%]][,SIZE[%][,border-native]]360360fzf --tmux center # Center, 50% width and height361fzf --tmux 80% # Center, 80% width and height362fzf --tmux 100%,50% # Center, 100% width and 50% height363fzf --tmux left,40% # Left, 40% width364fzf --tmux left,40%,90% # Left, 40% width, 90% height365fzf --tmux top,40% # Top, 40% height366fzf --tmux bottom,80%,40% # Bottom, 80% width, 40% height361fzf --popup center # Center, 50% width and height362fzf --popup 80% # Center, 80% width and height363fzf --popup 100%,50% # Center, 100% width and 50% height364fzf --popup left,40% # Left, 40% width365fzf --popup left,40%,90% # Left, 40% width, 90% height366fzf --popup top,40% # Top, 40% height367fzf --popup bottom,80%,40% # Bottom, 80% width, 40% height368```369369`--tmux` is silently ignored when you're not on tmux.370`--popup` is silently ignored when you're not on tmux or Zellij.371372> [!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 out
3 unmodified lines
378> 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> ```385386### Search syntax387
178 unmodified lines
566 sourcing the script567568Display 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'`)571572More tips can be found on [the wiki page](https://github.com/junegunn/fzf/wiki/Configuring-shell-key-bindings).573574Fuzzy completion
536 unmodified lines