Comments (3)
See #353
from vim-gutentags.
Thanks. I saw the g:gutentags_project_root_finder
option in the docs and set to a custom function, but somehow I missed g:gutentags_file_list_command
.
However it looks like g:gutentags_file_list_command
only accepts shell commands. Could it be amended to also accept vim function references like g:gutentags_project_root_finder
? Then one could easily set it to a function that returns open vim buffers or tabs. Or someone could add a separate g:gutentags_file_list_function
option.
Maybe I'll try a PR sometime.
from vim-gutentags.
Arguably , you can save the results from vim to a file and do cat from that file.
This maybe helpful
function! GitF(regfilter,curfile)
if (a:curfile)
let tmp=getcwd()
:exe ":cd ". expand("%:p:h")
endif
let top = systemlist("git rev-parse --show-toplevel")[0]
"echo top
:exe ':cd '. top
let a=systemlist("git ls-files --full-name" )
:if len(a:regfilter)>0
let a = filter(a,{idx,val -> (val =~ a:regfilter)})
let a= map(a, {idx,fname -> fnamemodify(fname, ':p')})
:endif
":echo a
:call writefile(a,'c:\temp\filelist.txt')
try
echohl Question
let pattern = input("Search pattern: ")
let pattern = escape(pattern,'"')
finally
echohl None
endtry
if (a:curfile)
:exe ':cd '.tmp
endif
exec printf("Leaderf rg --filelist c:\\temp\\filelist.txt %s\"%s\"", pattern =~ '^\s*$' ? '' : '-e ', pattern )
endfunction
from vim-gutentags.
Related Issues (20)
- ERROR: Invalid value for argument cmd and update_gtags.sh is not executable HOT 4
- E117: Unknown function: gutentags#on_vim_leave
- Tags stop working for specific file (path disappears from tags option) after manually setting tags once in that file
- Cannot generate the GTAGS at windows platform HOT 5
- Does it support different ctags file chosen dynamically? HOT 2
- Error code 122 & 139 HOT 7
- please support the usage of `vim -t symbol` HOT 9
- use gtags failed HOT 2
- update_gtags.sh lost execution permission
- How do I use different tag files for different directories of a same workspace HOT 1
- Is there a way to force gutentags to generate only one tag file?
- Keep tags values when opening the quickfix
- nvim 0.9 remove cscope how to HOT 1
- Guttentags does not support any file? HOT 1
- the use of .guttags file HOT 1
- Whitelisting instead of blacklisting HOT 2
- Bug in update_scopedb.cmd file prevents creation of cscope.out.files correctly HOT 1
- Very large tags file generated ( > 10GB) HOT 2
- Plugin don't work if full filename contains open "[" _and_ close "]" square brackets
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 vim-gutentags.