Skip to content

mini.tabline: How to filter buffers #976

Closed Answered by echasnovski
wiseodd asked this question in Q&A
Discussion options

You must be logged in to vote

The 'mini.tabline' module is designed to show all listed buffers in order of their identifiers. Here "listed" buffer is a special term describing buffers with set 'buflisted' option; they are essentially the buffers which "should be listed". Preserving order is important because :bnext and :bprev (or [b and ]b from 'mini.bracketed') then traverse tabline in order.

That said, recently there is a new format config value which can be used to finalize what text is used to show buffer in a tabline. You can use it to return empty string for buffers which you don't want to be shown in tabline. Here is an example which will not show buffers with 'filetype' equal to 'vim':

require('mini.tabline').s…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@wiseodd
Comment options

@echasnovski
Comment options

@wiseodd
Comment options

Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants