Skip to content
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

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

Open
charlespwd opened this issue May 11, 2020 · 0 comments
Open

Comments

@charlespwd
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant