Comments (14)
let g:Lf_RecurseSubmodules = 1
from leaderf.
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.
What is the hierarchy of your Repo?
from leaderf.
Are the folders of other git repo in the .gitignore?
from leaderf.
-directory1 (git repository1)
-directory2 (git repository1)
--sub-directory1 (git repository2)
---sub-sub-directory1 (git repository3)
-directory3 (git repository1)
from leaderf.
Run rg --no-messages --files --color never
in the command line, I think it should work.
from leaderf.
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.
Leaderf file --no-ignore
.
from leaderf.
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.
set let g:Lf_UseVersionControlTool = 0
let g:Lf_DefaultExternalTool = "rg"
,
plus with running Leaderf file --no-ignore
works, confusing :)
from leaderf.
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.
using g:Lf_WildIgnore would will fix this, thank you so much
from leaderf.
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.
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)
- LeaderF requires Vim compiled with python and/or a compatible python version. HOT 2
- macOS cmd+v 无法在输入框粘贴 HOT 5
- Leaderf Rg 过滤问题 HOT 7
- Fails to build the C extension under windows HOT 2
- git diff --current-file 会切换工作目录 HOT 5
- Leaderfbuffer got very slow when some large files open HOT 5
- leaderf git diff 和 git blame 报错 HOT 1
- `<C-Up>` and `<C-Down>` Keybindings Not Working in Popup Preview Window HOT 1
- Leaderf file 结果可以按照最后修改时间排序吗? HOT 1
- The leaderf popup window won't change its size when opened second time HOT 2
- 只能显示200条结果 HOT 6
- Lf_ShortcutF 启动搜索 ,使用MobaXterm 无法右键黏贴所有字符,只会出现第一个字符。使用SecureCRTPortable可以正常黏贴所有字符 HOT 1
- Leaderf rg find nothing in case of spaces in path HOT 1
- <C-W>o causes "Autocommands caused command to abort" error HOT 3
- How to include directories in the file list? HOT 1
- 如何搜索子目录sub module中的内容,子目录是另一个git HOT 1
- --popup下输入栏状态栏显示行号 HOT 2
- 使用gtags报错:gtags error! HOT 1
- 如何默认不加载.gitinore文件 ?做到不忽略.gitinore里面指定的文件/文件夹 HOT 1
- leaderf cli.py crash HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leaderf.