Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the use of .guttags file #352

Open
MrGeek-zrh opened this issue Sep 4, 2023 · 1 comment
Open

the use of .guttags file #352

MrGeek-zrh opened this issue Sep 4, 2023 · 1 comment

Comments

@MrGeek-zrh
Copy link

Gutentags is a very useful plugin, and I pretty appreciate the author's efforts. I've encountered some issues recently.
What I want to achieve is to run the 'ctags' command with specific options like ctags -f .tags -R --exclude=./src/isa/loongarch32r/* --exclude=./src/isa/mips32/* ./ in the project root directory. So, I created a .gutctagsfile in the project's root directory with the following content:

-R
--exclude=src/isa/loongarch32r/*
--exclude=src/isa/mips32/*
--exclude=src/isa/riscv64/*

I've looked at other issues related to the use of the .gutctags file, and when I execute the command mentioned in issue #126, :call gutentags#toggletrace(), and :GutentagsUpdate!, I get some similar output as mentioned in issue #126, including the -o option being passed to .guttags with some paths. When I execute :echo b:gutentags_root, the result indicates that the current project's root directory is the same as I expected.

However, when I open the project with Vim and execute :ts pattern to search for tags, files from the directories I want to exclude still appear.

@eyalk11
Copy link

eyalk11 commented Sep 16, 2023

Maybe they exist in the tags file before?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants