-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: line.bufs().foreach() #157
base: main
Are you sure you want to change the base?
Conversation
BREAKING: changes the API of `tabby.module.filename` and `tabby.feature.buf_name` to use bufid instead of winid
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 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? |
|
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