tmuxline.vim icon indicating copy to clipboard operation
tmuxline.vim copied to clipboard

No zoom suffix *Z in tmuxline

Open icymist opened this issue 9 years ago • 4 comments

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.

icymist avatar May 18 '15 13:05 icymist

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

dajuno avatar Aug 17 '15 22:08 dajuno

Would be nice to have this by default

qrevel avatar Sep 27 '17 02:09 qrevel

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,🔎 ,}')

bradfordwagner avatar May 28 '20 16:05 bradfordwagner

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

pbnj avatar Aug 05 '20 04:08 pbnj