akinsho / bufferline.nvim

A snazzy bufferline for Neovim
GNU General Public License v3.0
3.46k stars 195 forks source link

[Feature Request]: Ability to select buffer from tabline and get it using lua api #918

Closed BANanaD3V closed 4 months ago

BANanaD3V commented 4 months ago

What?

Be able to select buffer from tabline and then get its number using lua api

Why?

I want to be able to setup a lua command to split a buffer from tabline horizontally/vertically. I've seen an issue asking for that but it wont be added, so i thought abt that we should have a general api for that.

akinsho commented 4 months ago

Tbh @BANanaD3V as you mention re. the other issue I don't really intend to expose this functionality/give people access to the numbers. As far as I'm concerned with this plugin I'm just focused on keeping it stable rather than expanding it's surface area even more with more APIs and features. I believe it is already way bigger than I want it to be for what I have always envisioned as a small and simple use case a nice looking bufferline all the use cases of window management etc. I think of as beyond the scope atm.