On 2014-03-02 15:34, Kaushal wrote: > BUT when I run the same through run-shell using a key-binding, > ---------- > bind C-e run "tmux list-windows -F '#{session_name}:#{window_index}' | > xargs -I SESS_WIN tmux list-panes -t SESS_WIN -F 'SESS_WIN.#{pane_index}'" > ---------- > I get, > ---------- > kmodi:1.1 > kmodi:1.1 > kmodi:1.1 > kmodi:1.1 > kmodi:1.1 > kmodi:1.1 > kmodi:1.1 > kmodi:1.1 > kmodi:1.1 > ----------
You can easily reproduce this by issuing this: tmux run "tmux list-windows -F #{window_index}" The problem here is that "tmux run" interprets #{window_index} so it will actually run the command "tmux list-windows -F 3" (assuming you run it from window 3). I suggest wrapping your commands in a script and then you just bind a call to that. -- Balazs ------------------------------------------------------------------------------ Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce. http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users