mihaifm / bck

Enhanced searching for Vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bck doesn't work with the silver searcher (ag)

Fl4t opened this issue · comments

Hi :)

I've try to use your plugin with ag but the Bck's split window show nothing.

I have set the options with this command :

let g:BckPrg='ag --nobreak --nocolor --noheading'

Thanks ;)

I'm also using ag
Try these options, they work for me:

let g:BckPrg = 'ag --nocolor --nogroup --column'

It doesn't fix the issue :(
It works in command line btw.

/D/w/l/rapport_barcraft git:master ❯❯❯ ag --version                                
ag version 0.14

I'm on OS X 10.7.

that's strange
can you change the seach options and see if the 'file' or 'parent dir' search works? (with :BckOpen)
also, can you check if perhaps this is some scrolling issue (by moving around the split window with j/k)

Sorry for the delay.

Yes this is very strange because I don't know what is going on with your plugin.
When I try to use the key F5, F6, F7 and, F8 with :BckOpen my cursor go to the main buffer and uppercase the word to the begin of the line at the cursor (the BckPrg does not matter here), maybe an other issue. I've tried to remove each parameter of ag but nothing work.

ps : When I change the BckPrg option, I need to restart vim to take effect, is it obliged ?

When I change the BckPrg option, I need to restart vim to take effect, is it obliged ?

Yes

Perhaps you mapped those keys to something else?
Inside the :Bck window, what does :verbose map <F5> show

It return call <SNR>15_BckOption(0)
I have no mapping on F5-F8.

I tried using your vimrc and it worked fine for me. I'm using Win7.
...perhaps it's some OS specific issue or a conflict with another plugin...I have no more ideas, I'll leave this open maybe you can figure it out.

Hum, the "F" mapping work correctly in MacVim but not in console vim.
My vim is inside a tmux in the iTerm2 console if it can help.

Unfortunately for ag, it didn't work in both program...