Open DanielPower opened 4 years ago
I think this is a great idea, I may need to research a little on how to make it work with vim and neovim. In the meantime, you can use fugitive itself to do the checkout:
let g:fzf_branch_actions = {
\ 'checkout': {
\ 'execute': 'Git checkout {branch}'
\ },
\}
I appreciate you considering this enhancement, I think it would be good to be built-in to the plugin for a better first-use experience for users.
And thank you so much for the suggestion to have Fugitive handle the checkout. That solution works perfectly for me.
I use githooks which automatically perform some actions when doing a git checkout. As a result, checkouts take some time. When running
:G checkout
with fugitive, it will open a new split, showing the output of the checkout as it's running, so I can see the progress of these actions, and know when they're finished.With
:GBranches
however, vim simply becomes unresponsive until the checkout is complete, then the split will open showing all of the output.Having this output appear in real time like it does with fugitive would be a great addition to an already very helpful plugin.