Re: pane name or predefined index

2012-12-05 Thread Nicholas Marriott
Use run-shell. On Wed, Dec 05, 2012 at 08:02:07PM +0300, Sergey Naumov wrote: >But how to execute these commands interactively using tmux command-prompt? >my script ~/tmux-man do everything right, but when I try to call it by > >tmux command-prompt -p 'Man:' '#(~/tmux-man %%)' > >

Re: pane name or predefined index

2012-12-05 Thread Sergey Naumov
But how to execute these commands interactively using tmux command-prompt? my script ~/tmux-man do everything right, but when I try to call it by tmux command-prompt -p 'Man:' '#(~/tmux-man %%)' only interactive prompt is shown, even if I replace %% by yes. Also I'm not sure that %% expands corr

Re: pane name or predefined index

2012-12-04 Thread Nicholas Marriott
No panes don't have names and the index is determined by their position. You can use the pane id (%whatever) to uniquely identify a pane no matter where it goes. Try for example: $ PANE=$(tmux splitw -dPF '#{pane_id}') $ tmux killp -t$PANE On Mon, Dec 03, 2012 at 11:36:57PM +0400, Sergey Naumov

pane name or predefined index

2012-12-03 Thread Sergey Naumov
Hello. Is there a way to set a name or predefined index for a new pane with split-window command? I want to achieve the following behavior: 1. by C-a m get a prompt for a manpage name, open man in a new pane, but do not place cursor on that pane. 2. by C-a m get another prompt for a manpage and op