change-preview-window to take multiple option sets separated by '|'

So you can "rotate" through the different options with a single binding.

  fzf --preview 'cat {}' \
      --bind 'ctrl-/:change-preview-window(70%|down,40%,border-horizontal|hidden|)'

Close #2376
This commit is contained in:
Junegunn Choi
2021-12-04 11:46:15 +09:00
parent 20b4e6953e
commit 43f0d0cacd
5 changed files with 87 additions and 37 deletions

View File

@@ -7,6 +7,10 @@ CHANGELOG
- cf. `preview(...)` is a one-off action that doesn't change the default
preview command
- Added `change-preview-window(...)` action
- You can rotate through the different options separated by `|`
```sh
fzf --preview 'cat {}' --bind 'ctrl-/:change-preview-window(right,70%|down,40%,border-horizontal|hidden|right)'
```
0.28.0
------