-
-
Notifications
You must be signed in to change notification settings - Fork 17
An option to turn off show all buffers by default #14
Comments
Can you define “buffers of a current tab”? Currently, when you run the There is a Does that help? I’m open to hearing feedback on how to improve the functionality to making it work the way you describe it. |
Cannot we just hook into BufCreate autocomand and if it does not belong to the list of the current tab buffers then insert it. I wanted to see all the buffers that were created while this tab was active not the others. |
Yeah, I didn’t think of BufCreate. That’s a good idea. I can add that as a feature. That still doesn’t help if someone wants to just open a subset of open buffers be sticky in a new separate tab. |
@kdheepak is there an option to disable tabline in certain filetypes ? |
Not at this point. What did you have in mind? |
I did wanna disable tabline in 'alpha' filetype. |
You want to disable the entire tabline? Or just the buffers? One easy way to do it would be to create your own custom function that checks for the file type of the current buffer and returns an empty string when needed or calls the default tabline function and returns that output. |
entire tabline. |
I just found tabline.nvim and thank you so much for creating it! I love how it looks and I never realised how useful it can be until I tried it. I found that I always do I'm not a big fan of having all buffers visible - when I'm deep into working on a codebase, I may have as much as 30 buffers loaded, but only a handful visible. I would use something like Telescope.nvim to switch buffers instead. What's more useful for me is to have a nice way of organising tabs. Just sharing my use case, hope it helps understand the need for it! |
I tried both tabline.nvim and shadmansaleh/lualine's tabline components, but neither can provide the function as described above. I think vim's command Here is Vim's implementaition, and here is Neovim's implementation. |
I tried this:
and I copied the handler from the repo:
But it doesn't work always. For example when I do "open in new tab"... |
I was looking for the same feature I think the OP was describing, or at least the title of the issue suggests. My workflow is similar to what @rstacruz was describing above. To clarify, in the current state of the plugin, all buffers are shown in the tabline by default, and, the What would be useful to me, would be to have an option that lets me set the opposite as the default. Meaning the tabline skips all "hidden buffers" by default, and the command This would help me have a "clean" tabline and use some finder like Telescope or Fzf to browse through all open buffers. Thanks for your time. |
Unfortunately I'm swamped with personal life obligations and I won't be able to look into this at the moment. I am happy to review a PR, but I suspect I'll only be able to get around to this in a few months. |
Thank you for taking the time to answer, and good luck with all your obligations :) |
I wrote following solution and it is working for me.
Now when I create a new tab then I see only this tab's buffers starting with a single unnamed buffer that is created by default. |
In each tab I would like to see only the buffers of the current tab. I would like an option to make this the default behaviour.
The text was updated successfully, but these errors were encountered: