Giter Site home page Giter Site logo

Comments (14)

Yggdroot avatar Yggdroot commented on August 17, 2024

let g:Lf_RecurseSubmodules = 1

from leaderf.

JaminYoung avatar JaminYoung commented on August 17, 2024

Actually,I did try to set let g:Lf_RecurseSubmodules = 1 before, and didn't work again.
after run echo g:Lf_Debug_Cmd which output is git ls-files --recurse-submodules "." && git ls-files --others --exclude-standard "."

Note that my project doesn't managed by git submodule but repo, which there are individual git repositories. I thought g:Lf_RecurseSubmodules should only works for git submodule

from leaderf.

Yggdroot avatar Yggdroot commented on August 17, 2024

What is the hierarchy of your Repo?

from leaderf.

Yggdroot avatar Yggdroot commented on August 17, 2024

Are the folders of other git repo in the .gitignore?

from leaderf.

JaminYoung avatar JaminYoung commented on August 17, 2024

-directory1 (git repository1)
-directory2 (git repository1)
--sub-directory1 (git repository2)
---sub-sub-directory1 (git repository3)
-directory3 (git repository1)

from leaderf.

Yggdroot avatar Yggdroot commented on August 17, 2024

Run rg --no-messages --files --color never in the command line, I think it should work.

from leaderf.

JaminYoung avatar JaminYoung commented on August 17, 2024

Are the folders of other git repo in the .gitignore?

Are the folders of other git repo in the .gitignore?

yes, so it seems to be the reason? How can I exclude the .gitignore files whithout modifiled the .gitignore

from leaderf.

Yggdroot avatar Yggdroot commented on August 17, 2024

Leaderf file --no-ignore.

from leaderf.

JaminYoung avatar JaminYoung commented on August 17, 2024

Run rg --no-messages --files --color never in the command line, I think it should work.

I run rg --no-messages --files --color never > tmp_file, and files in sub-directory didn't exits in the tmp_files.
but if run rg --files "xxx" > tmp_file, files in sub-directory match the pattern 'xxx' can be found

run Leaderf file --no-ignore only show up the directory'name in .gitignore which matchs the pattern , but files under sub-directory which matchs the patternstill can't be found

from leaderf.

JaminYoung avatar JaminYoung commented on August 17, 2024

set let g:Lf_UseVersionControlTool = 0
let g:Lf_DefaultExternalTool = "rg" ,
plus with running Leaderf file --no-ignore works, confusing :)

from leaderf.

JaminYoung avatar JaminYoung commented on August 17, 2024

but I do want to exclude some files in .gitnore except the the sub-directory , is there any bettery way to acchive this?

from leaderf.

JaminYoung avatar JaminYoung commented on August 17, 2024

using g:Lf_WildIgnore would will fix this, thank you so much

from leaderf.

416207298 avatar 416207298 commented on August 17, 2024

How to auto execute this command Leaderf file --no-ignore when enter vim ?
I've tried to write down autocmd BufWinEnter Leaderf file --no-ignore in .vimrc but it did not work.

from leaderf.

416207298 avatar 416207298 commented on August 17, 2024

Finally, I write like this to solve that:

func OpenLeaderF()
  :Leaderf file --no-ignore
  :LeaderfFile
endfunc

nnoremap <c-p> :call OpenLeaderF()<cr>

from leaderf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.