bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gtag skip feature


From: Shigio YAMAGUCHI
Subject: Re: Gtag skip feature
Date: Thu, 16 Jun 2016 23:15:17 +0900

Hi,
> This may be suggestions for gtag.
>
> I have source tree which has many sym links and sub trees
> which I do not want to parse. Gtags has a "skip" feature but
> it's limited and here are suggestions.
>
> 1. Option for not following sym link.
> Currently, follows blindly and increases tag db size.

Please try this:
$ find -type -f -print | gtags -f -

> 1. No glob on skip path.
> Since not able to use glob on path name so have to list out all
> names explicitly which could have too many.

The skip variable is an old facility. I'd like to suggest -f (--file)
option, which can be combined with UNIX's find(1) command.
Since find(1) has rich options to select files, you can do everything.
This technique can also be applied to any other tagging systems like
ctags, cscope, and etc. 

> 3. No multiple skip setting.
> Not able to have "skip" variable more than one in the conf and
> ends up long single line when there are many to skip. For example,

All values of skip, langmap and gtags_parser are adopted and connected
respectively. (man gtags.conf)

Regards,
Shigio


2016-06-16 22:37 GMT+09:00 Park Kit <address@hidden>:

Hi,

This may be suggestions for gtag.

I have source tree which has many sym links and sub trees which I do not want to parse. Gtags has a "skip" feature but it's limited and here are suggestions.

1. Option for not following sym link.
Currently, follows blindly and increases tag db size.

1. No glob on skip path.
Since not able to use glob on path name so have to list out all names explicitly which could have too many.

3. No multiple skip setting.
Not able to have "skip" variable more than one in the conf and ends up long single line when there are many to skip. For example,

# for sub folder x
skip=gggg

# for sub folder y
skip=xxxx

Is there any other easy way to filter out targets files/directories so that can have smaller tag db file and faster running?

Many thanks,
Kit
------
Sorry for a terse reply or typo as sent from a mobile.





--
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3

reply via email to

[Prev in Thread] Current Thread [Next in Thread]