bug-global
[Top][All Lists]
Advanced

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

Re: make gtags.vim work for any dir


From: Shigio YAMAGUCHI
Subject: Re: make gtags.vim work for any dir
Date: Sat, 26 Jan 2019 07:56:14 +0900

Some people do not need this function. I disagree with confusing
existing users.

How about the following?

" The following custom variables are available.
...
" Gtags_EmacsLike_Mode
"       use the tag files of the project to which the current file
"       belongs. By default, use the tag files of the current project.

(If the grammar of this sentence is wrong, can you fix it?)

Only people who want this function should do as follows.

[$HOME/.vimrc]
let Gtags_EmacsLike_Mode = 1

What do you think?

2019年1月26日(土) 0:09 Andrey Butirsky <address@hidden>:
>
> On 25.01.2019 05:21, Shigio YAMAGUCHI wrote:
> > I see.
> >
> > Since the new feature seems to be incompatible with the past, it is 
> > preferable
> > to implement it as a new mode like 'Gtags_No_Auto_Jump'.
> >
> > Could you write the specification and usage of the feature at the head of
> > 'gtags.vim' for users?
>
> I'm not sure we still need old behavior. Anyway, I think we could
> "emulate" it without code changing, just by setting GTAGSROOT
> environment variable.
>
> In the 'gtags.vim', we could write something like this note:
>
> " Global will search for it's tag databases starting from the current file's 
> path upwards.
> " If you need precise database location, set GTAGSROOT environment variable 
> to it's path directory before you start Vim or in your vimrc file.
> " If there no files opened, the search is started from current directory.
> "
> "       :e /project1/subdir/lib.c
> "       :Gtags main                     <- from now on, search 
> /project1/subdir, /project1, / for GTAGS.
> "       :e /project2/main.c
> "       :Gtags main                     <- from now on, search /project2, / 
> for GTAGS.
>
>
> _______________________________________________
> Bug-global mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/bug-global



-- 
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint:
26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB



reply via email to

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