-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: winopts.preview.hidden = 'hidden'
not respected after recent updates
#1584
Comments
Closing this as I cannot reproduce this anymore 😅 |
I have to open this again because the bug appears again and I can reproduce the bug 50% of the time with the provided minimal config. Don't know why it is unstable. |
Might be related to fzf's alternate layout which changes the rotation based on available width. Is it possible this happens only on certain width due to the split command |
If this is the issue, setting Ths is the relevant upstream issue, junegunn/fzf#4100. To solve this I'd need to go back to using a |
Thanks for your reply! It's getting really late and I will test it tomorrow. |
@Bekaboo, 0527d79 this should fix the starting state 100% of the times. There will still be an issue if you toggle the preview and then resize the screen triggering an fzf layout change as it the hidden state is separate for each layout as per junegunn/fzf#4100, I do plan on changing this to a transform one day but there's no rush on it. |
Thanks, this works.
<3 |
RTFM Checklist
man fzf
/ I am well versed in shell fzfOperating system
Linux
Shell
fish
Neovim version (
nvim --version
)v0.10.2
Fzf version (
fzf --version
)0.56.3 (add1aec6)
Output of
:lua print(os.getenv('FZF_DEFAULT_OPTS'))
--reverse --preview='fzf-file-previewer {}' --preview-window=right,55%,border-sharp,nocycle --info=inline-right --no-separator --no-scrollbar --border=none --margin=1,0,0 --height=~45% --min-height=16 --scroll-off=999 --multi --ansi --color=fg:-1,bg:-1,hl:bold:cyan --color=fg+:-1,bg+:-1,hl+:bold:cyan --color=border:white,preview-border:white --color=marker:bold:cyan,prompt:bold:red,pointer:bold:red --color=gutter:-1,info:bold:red,spinner:cyan,header:white --bind=ctrl-k:kill-line --bind=alt-a:toggle-all --bind=alt-{:first,alt-}:last --bind=shift-up:preview-up,shift-down:preview-down --bind=alt-v:preview-half-page-up,ctrl-v:preview-half-page-down
Is the problem reproducible with
mini.sh
?mini.sh
mini.sh
mini.sh
(not relevant, requires LSP, Windows, etc)Fzf-lua configuration
Describe the bug / steps to reproduce
winopts.preview.hidden
is not respected ifwinopts.split
is set.In commit 0063769, this disables the preview window. However the option is not respected in the latest commit (commit 887f584).
Steps to reproduce:
minimal.lua
nvim --clean -u minimal.lua
<C-\>
to open the buffers pickerThe bug cannot be reproduced when using floating window layout.
The text was updated successfully, but these errors were encountered: