danielfalk / smart-open.nvim

Neovim plugin for fast file-finding
MIT License
498 stars 25 forks source link

sometimes it still finds ignored files #68

Open kschulz-samsung opened 4 months ago

kschulz-samsung commented 4 months ago

I have installed this recently and it mostly works great. I have not changed the default config, but still I see files from .git folders from time to time:

image

Any idea why this happens?

danielfalk commented 4 months ago

One way it might happen is if those files have gotten in your history. The files come from 2 sources: the history and the filesystem via recursive scan. If they're not in your history (looks unlikely in this case), then it would be related to the patterns that are passed into ripgrep as command line arguments. Maybe there should be some way of turning on diagnostics to be able to see the resulting command, but putting in a temporary print() could do it.