Yggdroot / LeaderF

An efficient fuzzy finder that helps to locate files, buffers, mrus, gtags, etc. on the fly for both vim and neovim.
Apache License 2.0
2.15k stars 179 forks source link

leaderf still show deleted file in LeaderfFile result #993

Closed jackywu closed 1 year ago

jackywu commented 1 year ago

vim or neovim?

Xnip2023-03-07_11-02-06


### Describe your question, feature request, or bug.
after delete file, leaderf will still search and hit the file . for example, the first file was deleted,but still appear at top of the result.
![Xnip2023-03-07_10-59-21](https://user-images.githubusercontent.com/587955/223310915-4222e869-b714-4afc-ab4b-48e429e49002.png)

### Steps to reproduce

### Actual behaviour

### Expected behaviour
Yggdroot commented 1 year ago

Because current command using is git ls-files "." && git ls-files --others --exclude-standard ".", if you delete a file from a git repository, you should use git rm.

Anyway, you can set let g:Lf_UseVersionControlTool = 0 to bypass the issue.

jackywu commented 1 year ago

thanks