vim-fugitive
vim-fugitive copied to clipboard
GBranch
Hey @tpope
In the spirit of fugitive, I have been working on a script called Gbranch. Its still very green, but I figured I would share it, and get your thoughts.
It is a standalone script right now because I haven't had a chance to dig deep enough into the specifics of fugitive.
Right now it basically maps d to delete a branch, and c to change to the branch. The 'd' mapping is very useful for cleaning up a repo (which is was my initial motivation).
https://github.com/richsoni/richsoni-vim/blob/master/config/init/gitbranch.vim
I would love to get your thoughts on implementing something like this into fugitive.
@richsoni: If you're interested: https://github.com/sodapopcan/vim-twiggy. I've had this going (and using daily) for years, but only just started hacking on it again.
This has graduated to the "foreseeable future" queue, though that's a slow moving queue.
A prerequisite for Fugitive inclusion would be matching the built-in map conventions. X
is for deletion; you could put the safe variant on x
. (If someone tried one of Fugitive's diff maps in this branch buffer they would be very sad.) coo
is the current "checkout" map; in a dedicated branch buffer I could see supplementing with a shorter map like C
. Vim's built-in q
has some utility in read only buffers so I'm phasing the bdelete
map out in favor of gq
.