Skip to content

Add two options, g:bufferline_sort_function and g:bufferline_hide_active_buffer #17

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

Merged
merged 3 commits into from
May 3, 2014

Conversation

bentomas
Copy link
Contributor

@bentomas bentomas commented May 1, 2014

I'm loving bufferline, but wanted to tweak a couple things.

I use the bufstop plugin which I love, and I wanted bufferline to show the buffers in the same order that bufstop uses for its speed toggle. So, being able to specify a custom sort function made that possible.

Then I added an option to not show the active buffer. My terminal windows aren't usually very wide, and since I already have the name of the file in my status bar (I put bufferline in the command bar), I didn't need it doubled up. So, this allows you to hide the active buffer from the bufferline list.

This allows you to change the order the buffers are listed in. For
example, if you wanted to sort them by most recently used.
This allows you to save space when space is at a premium
bling added a commit that referenced this pull request May 3, 2014
Add two options, g:bufferline_sort_function and g:bufferline_hide_active_buffer
@bling bling merged commit 3759c5c into bling:master May 3, 2014
bling added a commit that referenced this pull request May 20, 2014
This reverts commit 3759c5c, reversing
changes made to 1788138.
@khromalabs
Copy link

@bentomas I don't know why this was reverted, but this is just exactly what I was looking for, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants