Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Rebuild tags after branch change #89

Open
reidrac opened this issue Jun 12, 2019 · 2 comments
Open

Rebuild tags after branch change #89

reidrac opened this issue Jun 12, 2019 · 2 comments

Comments

@reidrac
Copy link

reidrac commented Jun 12, 2019

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
Copy link
Owner

jsfaint commented Jun 13, 2019

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
Copy link
Author

reidrac commented Jun 13, 2019

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.

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

No branches or pull requests

2 participants