vim-fugitive icon indicating copy to clipboard operation
vim-fugitive copied to clipboard

GBranch

Open richsoni opened this issue 7 years ago • 2 comments

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 avatar Dec 12 '17 16:12 richsoni

@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.

sodapopcan avatar Jan 17 '18 17:01 sodapopcan

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.

tpope avatar Aug 15 '19 23:08 tpope