Thanks to get interested in my work! 1. I improved the script and add a usage. Please see https://gist.github.com/3901976 .
2. In maximization, pane-maximize does: - make a new window that has a dummy pane. - swap a dummy pane for a target pane. - register a pair of panes on tmux's $pmtable. This code is a part of dummy pane. I need infinity loop, because dummy pane is killed only by restoration. 3. IFS== means IFS='='. 4. See the bottom of COMMANDS section on man tmux. 2012/11/5 John Schmitt <marmalo...@gmail.com>: > On Sat, Nov 03, 2012 at 02:15:20PM +0900, Kazuhiko Sakaguchi wrote: >> Hi all. >> >> I wrote a script to maximize and restore panes in tmux. It's similar >> to the tmux-zoom. >> >> https://gist.github.com/3901976 >> >> Idea of tmux-zoom is awesome, but it has some problems. >> - If title of the zoomed pane is changed, tmux-zoom can't restore the >> pane correctly. >> - tmux-zoom may kills a non-related window. (e.g. after rotate-window) >> - tmux-zoom can zoom pane that it's already zoomed. >> - incompatible with tmux 1.7 >> - etc. >> pane-maximize solves those problems. Please add this script to examples/. >> >> Thanks. > > I love the idea, and I look forward to using it. I have a few questions: > > 1. If I want to invoke this from the command line what are arguments should > be passed in? $1 $2 etc > Do you think a --help message would be appropriate? > > 2. Line 19: Why do you need to do this? > > while : ; do read ; done > > 3. Line 22 starts like this: > > IFS== ; set -- $target ; IFS=' ' ; tmux \ > > What does the == do here? You're a more proficient bash hacker than I am, > but did you mean to put a single = there? > > 4. Why are the semicolons on line 23 and 24 escaped? > > Thank you very much for writing this. > > John > ------------------------------------------------------------------------------ LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users