Skip to content

Fix support for using ripgrep with vim-dispatch#276

Open
obreitwi wants to merge 1 commit intomileszs:masterfrom
obreitwi:master
Open

Fix support for using ripgrep with vim-dispatch#276
obreitwi wants to merge 1 commit intomileszs:masterfrom
obreitwi:master

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.

1 participant