Hello,
Do you mean that you can select the target language?
Yes, you can realize it by editing 'langmap' variables in 'gtags.conf' file.
If you want to pick up only java files then
[gtags.conf]
builtin-parser:\
:langmap=c\:.c.h,yacc\:.y,asm\:.s.S,java\:.java,cpp\:.c++.cc.hh.cpp.cxx.hxx.hpp.C.H,php\:.php.php3.phtml:
|
v
builtin-parser:\
:langmap=java\:.java:
If you use universal-ctags with GLOBAL then
[gtags.conf]
universal-ctags|setting to use Universal Ctags plug-in parser:\
:tc=common:\
:ctagscom=/usr/local/bin/ctags:\
:ctagslib=$libdir/gtags/universal-ctags.la:\
:langmap=Ada\:.adb.ads.Ada:\
:langmap=Ant\:(build.xml)(*.build.xml).ant.xml:\
:langmap=Asm\:.A51(*.29[kK])(*.[68][68][kKsSxX])(*.[xX][68][68]).asm.ASM.s.S:\
:langmap=Asp\:.asp.asa:\
... many definitions ...
:langmap=Xtend\:.xtend:\
:gtags_parser=ABAP\:$pygmentslib:\
|
v
universal-ctags|setting to use Universal Ctags plug-in parser:\
:tc=common:\
:ctagscom=/usr/local/bin/ctags:\
:ctagslib=$libdir/gtags/universal-ctags.la:\
:langmap=Java\:.java:\
:gtags_parser=ABAP\:$pygmentslib:\
Regards,
Shigio
2019年3月13日(水) 21:59 bhaskar rana <
address@hidden>:
>
> Hi Help-global team,
>
> As OpenGrok, has Type button, which is a drop-down button ( containing various type like Java, XML,c, Fortron ... etc)
> Does Gnu global have this kind of feature?
> Kindly advice.
>
> Regards
> Bhaskar Rana
> _______________________________________________
> Help-global mailing list
>
address@hidden>
https://lists.gnu.org/mailman/listinfo/help-global--
Shigio YAMAGUCHI <
address@hidden>
PGP fingerprint:
26F6 31B4 3D62 4A92 7E6F 1C33 969C 3BE3 89DD A6EB