camspiers / snap

A fast finder system for neovim.
The Unlicense
489 stars 17 forks source link

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

Open ray-x opened 3 years ago

ray-x commented 3 years ago

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 ...)