romgrk / barbar.nvim

The neovim tabline plugin.
2.26k stars 85 forks source link

[QUESTION]: Group windows inside a single tab? #548

Closed ls-devs closed 8 months ago

ls-devs commented 8 months ago

Hi, I was wondering if it is possible to have two windows inside a single tab ?

Let's say I have tab1 with two windows split vertically or horizontally and I have another tab, tab2 with only one window and I switch back to tab1 it retores the two splitted windows ?

romgrk commented 8 months ago

I think there is some confusion between what barbar calls a "tab", which is equivalent to a listed vim buffer, and what vim calls a "tabpage", which is a window layout. Barbar doesn't use tabpages, it shows one tab for each buffer. You can also use tabpages.

Iron-E commented 8 months ago

As above, see :h windows-intro. Here is a brief summary:

A buffer is the in-memory text of a file. A window is a viewport on a buffer. A tab page is a collection of windows.