barbar.nvim icon indicating copy to clipboard operation
barbar.nvim copied to clipboard

Let each tabpage have its own associated buffers

Open bresilla opened this issue 5 years ago • 3 comments

I was using this plugin called CtrlSpace which each tab holds a separate list of buffers, thus making it very comfortable holding different buffers for different tabs.

In my daily CPP-CMAKE dev routine i usually have two separate type of file that i work on:

Would be cool to have buffers in separate tabs (so they aren't shown in barbar tabs when the other tab is active).

Sorry, this might be a naive request, cos i am still struggling to understand buffers/tabs in vim (after 2 years of being a vim user). Or maybe this plugin already separates each buffer into it's tab with some flag variable or something but i haven't figured that out still even though i check before so i woudn't duplicate this request/feature/issue, but I couldn't find anything.

Thank you again for this plugin, i am using it always and is amazing (especially the closing animation).

P.S. I know that buffers don’t exist “in a tab” and that a tab is just an arrangement of windows, and a window is just a view at a particular buffer at any moment... i'm just wondering how CtrlSpace did it and would it be feasible for this plugin...

bresilla avatar Nov 30 '20 10:11 bresilla

I understand the request and it would be nice to have it but I don't have much time these days so I don't know when I'll be able to work on this. The best word to talk about vim view layouts is "tabpage".

romgrk avatar Nov 30 '20 19:11 romgrk

@romgrk Thanks for your reply. I understand. I don't know enough Lua to submit a PR. I hope in the future i can help with this somehow.

bresilla avatar Dec 02 '20 17:12 bresilla

Yes cool, let's keep it open in case someone wants to work on it

romgrk avatar Dec 02 '20 23:12 romgrk

Closing this for now after having read this statement.

tl;dr: install scope.nvim until the functionality is implemented upstream.

Iron-E avatar Nov 21 '22 20:11 Iron-E