jsfaint / gen_tags.vim

Async plugin for vim and neovim to ease the use of ctags/gtags
https://vim.sourceforge.io/scripts/script.php?script_id=5499
MIT License
312 stars 42 forks source link

Rebuild tags after branch change #89

Open reidrac opened 5 years ago

reidrac commented 5 years ago

Not sure if this is a feature request or a question but it would be very useful if gen_tags was rebuilding the tags DB after a branch change.

It gets me confused evey now and then and I basically clean the tags and generate them again (not sure if the first step is required).

Thanks in advance.

This plugin is awesome, thanks for sharing it!

jsfaint commented 5 years ago

Thanks for the issue! This is the issue that I alway want to fix. But I have no idea how to detect the change of git brach in vim instantly.

Any suggestions?

reidrac commented 5 years ago

Not sure. I guess it could somethinbg like checking for a branch change when there's an event in vim. What event? Good question. What are plugins like vim-gitgutter doing?

EDIT: also, if the branch change happens because something in vim (.e.g. fugitive), perhaps linking to that is a possibility too.