Open icymist opened 9 years ago
Would be nice indeed!
edit: it is already there. Just change the preset you're using (default: powerline.vim) in tmuxline.vim/autoload/tmuxline/presets/
and add the #F
flag to win
and cwin
.
Man page: #F Current window flag
So, for the powerline preset I use:
call bar.win.add('win', '#W#F')
and
call bar.cwin.add('cwin', '#W#F')
Would be nice to have this by default
in case you like the nerdfont version:
call bar.win.add('win', '#W #{?window_zoomed_flag,🔎 ,}')
call bar.cwin.add('cwin', '#W #{?window_zoomed_flag,🔎 ,}')
Without modifying tmuxline.vim directly, you can configure that behavior from your vimrc.
Example:
let g:tmuxline_status_justify = 'left'
let g:tmuxline_preset = {
\'a' : '#S',
\'win' : '#I #W #F',
\'cwin' : '#I #W #F',
\'y' : [ '%a', '%r', '%Y-%m-%d' ],
\'z' : '#H',
\ }
Nice piece of code. Thank you!
This is a feature request. I am not sure how hard or how easy it would be to implement. Anyways ...
In the default tmux without tmuxline, once you zoom out a pane using C-b z, there is an indication in the status bar with a suffix of *Z. See http://blog.sanctum.geek.nz/zooming-tmux-panes/ for a demo. Right now, tmuxline does not give an indication when a pane has been zoomed using C-b z.
Would be nice if this can be implemented.