-
-
Notifications
You must be signed in to change notification settings - Fork 577
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
Pains connecting fzf, MacVim and ripgrep #315
Comments
I'll see why it works inconsistently, but I believe you're better off using single quotes around the argument either with |
Hmm, I found that
That explains the problem you run into. I'll see what I can do. |
I updated the vim plugin of the main repo to escape |
Wow, you have narrowed that down really quick. I must report that progress has been made. I have updated the plugin and removed "if" statement so now I have only one version. It works in both MacVim and terminal (brew vim) but only with double '\\!' on MacVim. So the difference is that before vim was probably breaking and didn't show any results with MacVim (double '\\!') variant and it works fine now. But I still have to double escape. without escaping with '\' in MacVim the commandline looks following:
MacVim breaks and vim works OK with single escaping '\'
MacVim breaks (notice the "zsh: event not found: .git/" message) and vim works fine with double escaping '\'
MacVim works fine and vim as well. I am using this MacVim - fzf glue script. I have attached screenshot with second scenario (after pressing Esc). |
Unfortunately what I have reported above isn't universal. I am using two laptops at the moment, Pro and a Macbook. They are (should be) identical clones regarding .vimrc, .zshrc, scripts et all. What I have reported above works on Pro. On a Macbook it is the oposite. Version with double as well as single escaping works OK on MacVim (and fails without escaping) but breaks (shows no results) on brew vim. It works fine without escaping with vim and breaks MacVim. So it seems I cannot even reproduce this behavior consistently. |
So . . . what was the resolution to this? I have the same problem . . . any pattern negated within a |
Okay, FINALLY. See here: BurntSushi/ripgrep#830. A change was made to ripgrep at some point so that, basically, you don't want to use |
@tandrewnichols I'm having the same problems that you describe, except even what you said isn't working. I'm trying to ignore So far it only works if I set it to |
I don't know. I would think |
I figured it out, it was due to some confusion of mine in regards to the shell and vim. |
This isn't an issue with fzf.vim per se but result of few lost hours connecting fzf, MacVim and ripgrep.
When using ripgrep glob with negation I had to escape ! character not once but twice - '--glob "\!.git/*". Otherwise no luck. There is probably logical explanation for that as the command is passed via shell [zsh], applescript and shell again.
However terminal vim does not tolerate even single escaping (it should). I have ended up with this:
Perhaps someone will make use of it.
The text was updated successfully, but these errors were encountered: