On 2014-07-17 18:02 +0000, Seth Milliken wrote: > I'd like to create tmux bindings to "toggle" a window in and out of > the current layout by using `join-pane` and `break-pane -d` > respectively. The problem is that when I toggle the window out with > `break-pane -d`, the resulting window does not have a distinct name > and its index is unstable, which makes it difficult to address that > window as the source for a subsequent `join-pane` to toggle it back > in.
By "toggling a window in and out of the current layout" you mean moving the current pane to its separate window - then automagically joining it to the current window after a while? I think you can already do this via other means. You can bind the keys to the following shell scripts. For breaking: tmux new-window -d -n tmp_window dst=$(tmux list-panes -t tmp_window -F '#{pane_id}') tmux move-pane -d -t $dst tmux kill-pane -t $dst For joining: dst=$(tmux list-panes -t tmp_window -F '#{pane_id}') tmux move-pane -d -s $dst Does something like that work for you? -- Balazs ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users