Skip to content

Commit

Permalink
Update ADVANCED.md
Browse files Browse the repository at this point in the history
  • Loading branch information
junegunn committed Apr 9, 2021
1 parent 252fd7e commit faf32d4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions ADVANCED.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ fzf --height=40% --layout=reverse --info=inline --border --margin=1 --padding=1

But you definitely don't want to repeat `--height=40% --layout=reverse
--info=inline --border --margin=1 --padding=1` every time you use fzf. You
could write a wrapper script or shell alise, but there is an easier option.
could write a wrapper script or shell alias, but there is an easier option.
Define `$FZF_DEFAULT_OPTS` like so:

```sh
Expand All @@ -111,6 +111,7 @@ fzf-tmux --layout=reverse

The limitation of `fzf-tmux` is that it only works when you're on tmux unlike
`--height` option. But the advantage of it is that it's more flexible.
(See `man fzf-tmux` for available options.)

```sh
# On the right (50%)
Expand All @@ -133,8 +134,8 @@ fzf-tmux -u30%

But here's the really cool part; tmux 3.2 (stable version is not yet released
as of now) supports popup windows. So if you have tmux built from the latest
source, you can open fzf in a popup window, which is quite useful when you're
working on split panes.
source, you can open fzf in a popup window, which is quite useful if you
frequently use split panes.

```sh
# Open tmux in a tmux popup window (default size: 50% of the screen)
Expand All @@ -146,6 +147,12 @@ fzf-tmux -p 80%,60%

![image](https://user-images.githubusercontent.com/700826/113380106-4a9bfd80-93b6-11eb-8cee-aeb1c4ce1a1f.png)

> You might also want to check out my tmux plugins which support this popup
> window layout.
>
> - https://github.com/junegunn/tmux-fzf-url
> - https://github.com/junegunn/tmux-fzf-maccy
Dynamic reloading of the list
-----------------------------

Expand Down

0 comments on commit faf32d4

Please sign in to comment.