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

Fix support for using ripgrep with vim-dispatch #276

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

obreitwi
Copy link

Same as ag, ripgrep supports a
--vimgrep flag so that it can be used as g:ackprog.

However, when used via vim-dispatch, stdin is not closed which ripgrep
interprets as a pattern to be supplied and hence fails to execute
anything.

To disable this behavior, we need to explicitly supply a root-directory
to start searching in.

Same as ag, [ripgrep](https://github.com/BurntSushi/ripgrep) supports a
`--vimgrep` flag so that it can be used as `g:ackprog`.

However, when used via `vim-dispatch`, stdin is not closed which ripgrep
interprets as a pattern to be supplied and hence fails to execute
anything.

To disable this behavior, we need to explicitly supply a root-directory
to start searching in.
obreitwi added a commit to obreitwi/dot_vim that referenced this pull request Jul 18, 2021
To use ripgrep with ack, use own fork until
mileszs/ack.vim#276 is merged.
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

Successfully merging this pull request may close these issues.

None yet

1 participant