romgrk / barbar.nvim

The neovim tabline plugin.
2.16k stars 81 forks source link

[Feature Request]: One Tab per Tab (buffer mode vs tab mode) #497

Closed Lazerbeak12345 closed 1 year ago

Lazerbeak12345 commented 1 year ago

User story

  1. Open nvim on a file
  2. :tabnew on another file
  3. :vs (or :sp) on a third file

Expected behavior

  1. With auto_hide set to true, barbar is not rendered.
  2. New "tab" is rendered for the new tab (two tabs shown, one per tab)
  3. With this new feature enabled, there are still only two "tabs" in barbar, one for the first file, and one for the third.

Actual behavior

  1. With auto_hide set to true, barbar is not rendered.
  2. New "tab" is rendered for the new tab (two tabs shown, one per tab)
  3. Feature does not exist, so instead there are three "tabs" in barbar, one per buffer.

Reason

I'm looking for something that has much of the same behavior as the built-in tab-line, but that looks better, is more configurable, and has many of the features of barbar. This setting is all that's missing to make barbar the perfect fit for my workflow.

romgrk commented 1 year ago

What vim calls "tabs" is actually window layouts, you can't use vim-tabs like tabs. Barbar doesn't plan to support that use case. If you want to use barbar, just use :e instead of :tabe.

Iron-E commented 1 year ago

Related: #76, #87

It was previously decided not to implement this feature (for the sake of complexity)

Lazerbeak12345 commented 1 year ago

Thanks for clarification. Don't know how I missed those previous bugs.