edkolev / tmuxline.vim

Simple tmux statusline generator with support for powerline symbols and statusline / airline / lightline integration
MIT License
1.61k stars 90 forks source link

No zoom suffix *Z in tmuxline #42

Open icymist opened 9 years ago

icymist commented 9 years ago

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.

dajuno commented 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')

qrevel commented 7 years ago

Would be nice to have this by default

bradfordwagner commented 4 years ago

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,🔎 ,}')
pbnj commented 4 years ago

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',
      \ }

Screen Shot 2020-08-04 at 9 49 45 PM