mhinz / vim-grepper

:space_invader: Helps you win at grep.
MIT License
1.22k stars 58 forks source link

As a function writer, I'd like to be able to write "sync" queries #227

Open charlespwd opened 4 years ago

charlespwd commented 4 years ago

From first glance, it doesn't seem like there's a way to script Grepper into a function and "wait" until the query is over.

What I'm trying to do

And it looks like I need to add a sleep 1 in my function body for this to work because vimgrepper makes an async search.

Think there's an easy way to return the job ID and wait on it?