-
Notifications
You must be signed in to change notification settings - Fork 86
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
Binding to open in Neovim not working #203
Comments
Hi @euglevi. Thank you for your kind words! I have confirmed your bug. It is an use case I want fzf.fish to support but looks like it doesn't. Based on the limited debugging I did so far (I work a full time job so am not able to spend hours on this), I think it has to do with the strings disappearing when they get passed around as flags. So can you try different permutations of wrapping the |
I tried but with no luck. If I substitute nvim with another app, like libreoffice, the keybinding works. So I suspect this issue has not to do with strings as much as with terminals. I am sorry I cannot be of further help as I know very little fish programming. |
Got it. I will try to find some time to look into it. Thanks for your patience! |
Ok I think I figured it out. The reason executing nvim doesn't work is because fzf is executed in a command substitution.
works but this does not
Let me find a way around this. This is a pretty limiting :( |
Aw man, I don't think there's a way around it. I tried using
but had the same problem. I'll ask the maintainers for fish-shell for ideas or a patch, but it looks grim. Sorry. I will need to remove the idea of using EDIT: asked question here https://gitter.im/fish-shell/fish-shell?at=6188ba1dfb3dcd4e8873db1b |
I could indeed replicate your debug. By the way, it is the same also with the keybindings provided by the official fzf page, so this is clearly not an issue related to the plugin itself. Let us see if maintainers of fish-shell have ideas. Notice that this is not related to Neovim only because the same problem arises also with Vim or with Nano so it must have to do with stdin, as you were suggesting. Thank you very much for your time and effort! |
Ok I think I solved this. Try this:
You need to redirect both input and output to tty. |
Thanks @euglevi! I will add this to the troubleshooting |
Describe the bug
First of all, thank you for the great plugin! I have quite a minimal config in my config.fish:
Everything seems to be working except for the ctrl-v binding. Whenever I try it, I get the following:
I can get out of this screen by pressing \cc.
When I try the same with
ls | fzf --bind "ctrl-v:execute(nvim {})"
, everything works as expected.Environment
Versions installed:
The text was updated successfully, but these errors were encountered: