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

Failed to open file with producer.ripgrep.vimgrep #85

Open
ray-x opened this issue Nov 10, 2021 · 0 comments
Open

Failed to open file with producer.ripgrep.vimgrep #85

ray-x opened this issue Nov 10, 2021 · 0 comments

Comments

@ray-x
Copy link

ray-x commented Nov 10, 2021

Here is my config

        snap.run {
          prompt = "  Grep  ",
          producer = limit(1000, snap.get'producer.ripgrep.vimgrep'.args({'--ignore-case'})),
          steps = {{consumer = snap.get 'consumer.fzf', config = {prompt = " Fzf  "}}},
          select = snap.get'select.file'.select,
          multiselect = snap.get'select.file'.multiselect,
          views = {snap.get 'preview.vimgrep'}
        }

If I search for something and open the target. The file could not be open. The reason is the URL is incorrect.

It trying to open file with this URL. e.g.
~/github/dotfiles/nvim/init.lua:129:12 local lib = require'core.lib'

Instead, it should open ~/github/dotfiles/nvim/init.lua. (without :129:12 ...)

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