I think a flag to kill-window would be better than a new command but otherwise concept seems fine to me.
On Fri, Aug 05, 2011 at 12:17:03AM +0100, Thomas Adam wrote: > Hi, > > I often find myself starting up a new session in tmux with the intent of it > being for a specific purpose, and naming it as such with "rename-session". > But in the course of me doing that, I often end up opening several windows, > all of which are a means to an end, and quickly need to go, as I then want > to clear all windows and concentrate on just one of them. > > Funnily enough, Vim has an ":only" command which will kill other windows > except one of them. I'm considering whether this functionality is useful in > tmux. So for example, we might have: > > kill-windows-except [-s target session] [-w target window] > > which would kill all windows in a session except the named window, or the > currently focused window, if no options were given. > > Is this functionality desired, I wonder? I know I'd personally find it > useful, but that's no guarantee. :) > > If so, I'll code it up, it's trivial, but I wanted to ask first. > > Kindly, > > -- 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.) > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos & much more. Register early & save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users