On Tue, Jul 03, 2012 at 01:25:35PM -0700, John Magolske wrote: > * Thomas Adam <tho...@xteddy.org> [120702 15:46]: > > On 2 July 2012 18:38, John Magolske <listm...@b79.net> wrote: > > > With #N shown here to represent "total number of windows in a session" > > > > Use tmux from SVN trunk, and then read up on "FORMATS", specifically > > "#{session_windows}". > > I'm running version 1.6 (installed from the Debian repositories), and > had read the FORMATS section. I just fiddled with "#{session_windows}" > a bit more and came up with this: > > set -g status-left " #I/#(tmux list-windows -F \"#{session_windows}\") : #W " > > Which does what I want, but it seems to get confused if more than one > session is running. Also, the number of windows displayed won't always
Well, yes, since that has no concept per-se of which session you mean. > be up-to-date, lagging by up to 15 seconds or whatever status-interval > is set to. I'll need to test this some more, but I think a solution to > both of these problems would be to re-map all commands that create or > kill windows and tag a "refresh-client -S" on to the end of them. I wouldn't have thought so, to be honest. It would be easier to change tmux to support this. I'll send a patch through in due course. -- Thomas Adam -- "Deep in my heart I wish I was wrong. But deep in my heart I know I am not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.) ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users