Description
- I have read through the manual page (
man fzf
) - I have the latest version of fzf
- I have searched through the existing issues
Info
- OS
- Linux
- Mac OS X
- Windows
- Etc.
- Shell
- bash
- zsh
- fish
Problem / Steps to reproduce
An alternative layout in the preview window that is hidden by default cannot be toggled using the toggle-preview
binding.
fzf --bind 'ctrl-p:toggle-preview' --preview 'stat {}' --preview-window='right,50%,<100(down,50%,hidden)'
If run in a large enough window that the regular layout is used toggling the preview works fine, but in windows that are small enough to use the alternative layout the preview cannot be toggled.
This appears to happen only if the alternative layout is toggled as hidden explicitly, but not if this is inherited from the regular layout:
works: fzf --bind 'ctrl-p:toggle-preview' --preview 'stat {}' --preview-window='right,50%,<100(down,50%)'
works: fzf --bind 'ctrl-p:toggle-preview' --preview 'stat {}' --preview-window='right,50%,hidden,<100(down,50%)'
doesn't work: fzf --bind 'ctrl-p:toggle-preview' --preview 'stat {}' --preview-window='right,50%,<100(down,50%,hidden)'
doesn't work: fzf --bind 'ctrl-p:toggle-preview' --preview 'stat {}' --preview-window='right,50%,hidden,<100(down,50%,hidden)'