tmux-plugins / tpm

Tmux Plugin Manager
MIT License
11.98k stars 419 forks source link

prefix+I does not update a plugin even if the repo is different #86

Open jutkko opened 7 years ago

jutkko commented 7 years ago

Say I got set -g @plugin 'tmux-plugins/tmux-battery' in my .tmux.conf, but I update the plugin to be set -g @plugin 'jutkko/tmux-battery', the manager doesn't seem to be noticing this.

martinbeentjes commented 7 years ago

I have been working in the install_plugins.sh to add a @v2.x.x support in tmux configuration files. The reason why there is no change in the plugin version, is because the output of the git clone command is being piped to /dev/null.

I noticed the same behavior as my url was not filtered correctly in my fork. Maybe it should be changed to something like tmux_echo $(git clone). I will try something like that in my fork.

There are several ways this could be solved:

Edit: I have been looking into the source code of Vundle (the plugin manager one can use for Vim) and it seems they are checking the the url of the origin via git config --get remote.origin.url. Currently trying to figure out the exact internals if Vundle, but using this configurations looks as a quite interesting technique. We possibly can use this mechanism in our advantage to solve this issue.