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.13k stars 180 forks source link

some sshfs files not found #962

Closed ly1243667342 closed 1 year ago

ly1243667342 commented 1 year ago

Describe your question, feature request, or bug.

ls -alh can see the blow files. but leadf only can find Makefile, other files can not find. why? this dir is by sshfs mount server dir. total 608K drwxrwxrwx 1 68001826 vboxsf 4.0K 10月 12 16:11 . drwxr-xr-x 1 68001826 vboxsf 4.0K 10月 12 16:11 .. -rwxr-xr-x 1 68001826 vboxsf 71K 10月 12 16:11 codegen.c -rw-r--r-- 1 68001826 vboxsf 250 10月 12 16:11 codegen.h -rw-r--r-- 1 68001826 vboxsf 317K 10月 12 16:11 codegen.o -rwxr-xr-x 1 68001826 vboxsf 2.7K 10月 10 13:29 Makefile

Steps to reproduce

Actual behaviour

Expected behaviour

Yggdroot commented 1 year ago

What is the Output of :echo g:Lf_Debug_Cmd?

ly1243667342 commented 1 year ago

What is the Output of :echo g:Lf_Debug_Cmd?

E121: Undefined variable: g:Lf_Debug_Cmd

Yggdroot commented 1 year ago

:echo g:Lf_Debug_Cmd after running Leaderf file.

ly1243667342 commented 1 year ago

:echo g:Lf_Debug_Cmd after running Leaderf file.

rg --no-messages --files --color never

ly1243667342 commented 1 year ago

:echo g:Lf_Debug_Cmd after running Leaderf file.

rg --no-messages --files --color never

➜ api rg --no-messages --files --color never Makefile ➜ api ls -alh total 608K drwxrwxrwx 1 68001826 vboxsf 4.0K 10月 12 16:11 . drwxr-xr-x 1 68001826 vboxsf 4.0K 10月 12 16:11 .. -rwxr-xr-x 1 68001826 vboxsf 71K 10月 12 16:11 codegen.c -rw-r--r-- 1 68001826 vboxsf 250 10月 12 16:11 codegen.h -rw-r--r-- 1 68001826 vboxsf 317K 10月 12 16:11 codegen.o -rwxr-xr-x 1 68001826 vboxsf 2.7K 10月 10 13:29 Makefile ➜ api rg --files Makefile ➜ api find ./ -type f ./codegen.o ./codegen.h ./Makefile ./codegen.c

what is wrong with rg? thanks!

ly1243667342 commented 1 year ago

:echo g:Lf_Debug_Cmd after running Leaderf file.

rg --no-messages --files --color never

➜ api rg --no-messages --files --color never Makefile ➜ api ls -alh total 608K drwxrwxrwx 1 68001826 vboxsf 4.0K 10月 12 16:11 . drwxr-xr-x 1 68001826 vboxsf 4.0K 10月 12 16:11 .. -rwxr-xr-x 1 68001826 vboxsf 71K 10月 12 16:11 codegen.c -rw-r--r-- 1 68001826 vboxsf 250 10月 12 16:11 codegen.h -rw-r--r-- 1 68001826 vboxsf 317K 10月 12 16:11 codegen.o -rwxr-xr-x 1 68001826 vboxsf 2.7K 10月 10 13:29 Makefile ➜ api rg --files Makefile ➜ api find ./ -type f ./codegen.o ./codegen.h ./Makefile ./codegen.c

what is wrong with rg? thanks!

➜ api rg -uuu --files codegen.o codegen.h Makefile codegen.c

add -uuu parameter can resolve the problem. How to alter leaderf to adapt rg?

Yggdroot commented 1 year ago

Have a try Leaderf file --no-ignore.

ly1243667342 commented 1 year ago

Leaderf file --no-ignore.

It works. Thanks

ly1243667342 commented 1 year ago

Leaderf file --no-ignore.

It works. Thanks

But, Leaderf! rg -t c -t cpp -e bufcan not search key word in the mising files.How to resolve the issue?

Yggdroot commented 1 year ago

Have a try Leaderf file --no-ignore.

So why are these files in the .gitignore?

Yggdroot commented 1 year ago

Leaderf file --no-ignore.

It works. Thanks

But, Leaderf! rg -t c -t cpp -e bufcan not search key word in the mising files.How to resolve the issue?

Leaderf rg --no-ignore