You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
# Start fzf in a small screen so that the preview window is hidden
fzf --bind 'ctrl-p:toggle-preview' --preview 'stat {}' --preview-window='right,50%,<100(down,50%,hidden)'
# Enlarge the screen until the preview window appears. It should not be empty.
man fzf
)Info
Problem / Steps to reproduce
An alternative layout in the preview window that is hidden by default cannot be toggled using the
toggle-preview
binding.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)'
The text was updated successfully, but these errors were encountered: