NeogitOrg / neogit

An interactive and powerful Git interface for Neovim, inspired by Magit
MIT License
4.1k stars 241 forks source link

Improve window splitting options for `kind` #1465

Closed afonsocarlos closed 2 months ago

afonsocarlos commented 2 months ago

Changes

Add two new options for kind which are split_top and split_bottom. Those allow the window to be split as the top/bottom most window (That'd be the same as :top split and :bottom split respectively). Also, correct the actual behavior of split_above in the docs/comments.

Screenshots

With kind=split as usual:

image

With the new kind=split_bottom:

image

Note: split_above and split_top do the same thing but at the top, of course.

CKolkey commented 2 months ago

Hey! I just merged https://github.com/NeogitOrg/neogit/pull/1443 which implements pretty much the same feature.

Great minds think alike, I guess :) Thanks all the same.