-
Notifications
You must be signed in to change notification settings - Fork 178
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: User mapping alt-h shadows flag binding for toggle_hidden #1810
Comments
Still shouldn’t happen, I did a similar test many times with live_grep ctrl-g and was never able to get it to hang, I’ll try with alt-h. |
Why does it show |
Oh, that's the title of my terminal (Wezterm) which got set to
I tried the above command with
|
(2) should be fixed with b3e9303. Will keep this open till we solve (1). |
(2) is better now, no error 👍 However I noticed that after moving out of one picker (say The picker in snacks.nvim avoids this issue happening by auto-closing the popup if the popup window is left. Auto closing would also have confused me left the first time I accidentally moved out of the FzfLua popup. Has autoclose been considered? |
Easily fixable by “reconfiguring” the window (I’ll add that).
This used to be the default but some users wanted to be able to switch out of the window without closing it so I remove the auto close. |
Mind me asking why do you need fzf-lua if you’re already using snacks? |
I'm using a vim heavy config with vim-plug and fzf.vim, but investigating alternatives for fzf.vim. Specifically some more out of the box lsp-fuzzy integrations. Haven't decided if I want to stay with fzf.vim yet or not. I tried fzf-lua first and then afterwards tried snacks. Would you not recommend fzf-lua over snacks? |
As the maintainer I’m obviously biased but users tend to like shiny new toys and snacks is great, personally I eat my own dog food or I wouldn’t maintain this project. |
For a tinkerer fzf-lua is unmatched, the sky is the limit, i have yet to face a use case i can not create a picker or a pipeline of pickers to achieve, also if you care about speed or performance. |
Did you try fzf.vim or snacks? |
@kaddkaka, I am able to somewhat reproduce this (the interface exits, doesn't hang) but for some odd reason this only happens when the binds are prefixed with
local fzf = require("fzf-lua")
fzf.setup({
actions = {
files = {
true,
["alt-i"] = false,
["alt-h"] = false,
["alt-f"] = false,
["ctrl-i"] = { fn = fzf.actions.toggle_ignore, reuse = true, header = false },
["ctrl-h"] = { fn = fzf.actions.toggle_hidden, reuse = true, header = false },
["ctrl-f"] = { fn = fzf.actions.toggle_follow, reuse = true, header = false },
},
},
}) |
RTFM Checklist
man fzf
/ I am well versed in shell fzfOperating system
Linux
Shell
bash
Neovim version (
nvim --version
)VIM v0.10.4
Fzf version (
fzf --version
)0.44.1 (debian)
(maybe I receive newer verion from vim-plug)Output of
:lua print(os.getenv('FZF_DEFAULT_OPTS'))
--no-mouse
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
ctrl-p
alt-h
for 10~15 secondsThe picker window hangs and goes empty:
Trying to get out of this state (by pressing
ctrl-\
I received this error message:And ended up in the buffers picker:

Is this a case of "if it hurts don't do it"?
The text was updated successfully, but these errors were encountered: