Open charlespwd opened 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
:MoveFileAndRename foo/bar/spam
'foo/bar/baz'
'foo/bar/zoo'
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.
sleep 1
Think there's an easy way to return the job ID and wait on it?
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
:MoveFileAndRename foo/bar/spam
'foo/bar/baz'
(quickfix)'foo/bar/zoo'
(cfdo)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?