-
-
Notifications
You must be signed in to change notification settings - Fork 486
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
add option for statusline overwriting #163
Conversation
I'm curious. It seems that vim-airline already supports tagbar. Why does this patch still make sense? |
I had actually implemented a customisable statusline function similar to what ctrlp does some time ago as an experiment for PowerLine, but since the author didn't have enough time to have a look at it and test it out I haven't merged it yet. I can check whether it still works and push it to a branch if you would like to try it out. That would make it possible to display more information in the Tagbar statusline, like the current sort order. |
@jchain this patch is specifically for detecting active window splits. tagbar (and a lot of plugins) use |
@majutsushi yep, understood. btw, is there something you don't like about this change? |
Not as such, I just think it would be a bit more useful if the |
i just added the use of |
It looks like #165 relates to this issue. @bling @majutsushi What is currently the best solution for this problem. Should I use bling/vim-airline#105 as workaround. Thanks. |
@qva5on3 for the original issue in airline, it's been "fixed" since i've resorted to the hack fix. the performance cost is negligible so i included it. if this patch gets merged or if @majutsushi comes up with another solution i'll remove the change from airline. |
Hi @bling, I have just pushed some experimental changes to the To use the new statusline assign a function name to |
thanks @majutsushi! this is much cleaner. i did some basic tests and it appears to be working. i need some extra work on my side to account for the inactive state, but that was on my todo list anyways so this is a good catalyst. please close off this PR when you feel your changes are good and merged into master. thanks again. |
Okay, I've merged the code now. Note that it may be useful to define the statusline function with an additional vararg just so it doesn't break if there's a need to add more arguments in the future. |
thanks @majutsushi! changes are in on my end as well. |
Nice, it seems to work great! |
this would be the easiest route for fixing vim-airline/vim-airline#105. thanks.