V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
guoxx_
V2EX  ›  问与答

emacs projectile 处理 git submodule

  •  
  •   guoxx_ · Apr 22, 2014 · 3315 views
    This topic created in 4399 days ago, the information mentioned may be changed or developed.
    projectile能够处理独立的git repo的情况,
    但是当我的repo里包含submodule的时候使用projectile-find-file就无法找到submodule里的文件。


    (setq projectile-indexing-method 'native)
    这样设置也能够解决我的问题,不过速度是在太慢了。
    4 replies    1970-01-01 08:00:00 +08:00
    ufo22940268
        1
    ufo22940268  
       Apr 22, 2014
    在外面的git项目下面创一个.projectile文件试试?
    goofansu
        2
    goofansu  
       Apr 22, 2014 via iPhone
    它的find file是用外部命令的,比如git或者svn,你可以改他的源码,只要你能用git命令列出文件,它就能显示
    guoxx_
        3
    guoxx_  
    OP
       Apr 22, 2014
    @ufo22940268 试过了,没有任何作用。我还是尝试看看源代码吧。
    guoxx_
        4
    guoxx_  
    OP
       Apr 23, 2014
    (setq projectile-git-command "git-ls-all-files")

    https://gist.github.com/11200287

    另外projectile-files-via-ext-command需要把结果用\0分隔开,我直接修改为[\0\n]+了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3763 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 04:46 · PVG 12:46 · LAX 21:46 · JFK 00:46
    ♥ Do have faith in what you're doing.