vim-grepper icon indicating copy to clipboard operation
vim-grepper copied to clipboard

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

Open charlespwd opened this issue 5 years ago • 0 comments

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
  • Find all usages of an import statement for the current file 'foo/bar/baz' (quickfix)
  • Replace them with '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?

charlespwd avatar May 11 '20 19:05 charlespwd