Closed capsey closed 6 days ago
Welcome for feedback!
I want to ensure you want all buffers or "tab-local buffers". How to understand "tab-local buffers"? What is the different from windows.
Sorry for confusion, this feature itself just lists all buffers, the same way :ls
does.
By "tab-local buffers" I just mean buffers that have been opened in current tab, even if not currently open in any window. This pull request doesn't implement them (it's out of scope of this plugin?), it was an example of an usecase together with other plugin - scope.nvim which does just that.
I read the "scope.nvim" and I got it. I want to accept this PR. Before that, I have there questions I want to discuss.
How do you think?
okay, i'm gonna do that
Do you have time recently? I like this PR, and I can continue to do it.
sorry for the late reply, yeah you can take over, i got a little busy
Add
line.bufs().foreach()
function for listing buffers. Works same way asline.tabs().foreach()
andline.wins().foreach()
.buf.is_current()
,buf.file_icon()
andbuf.name()
analogously toTabbyWin
This is useful for people who cycle between buffers in a tab (like myself) using scope.nvim for tab-local buffers.
Relevant issues: #123, #86 (comment), #30
BREAKING CHANGE: Changes the API of
tabby.module.filename
andtabby.feature.buf_name
to usebufid
instead ofwinid