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 correctly inside #().
2012/12/4 Nicholas Marriott <nicholas.marri...@gmail.com>
> 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 wrote:
> > 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 open new man in the
> same
> > designated pane.
> > 3. by C-a m ENTER check that manpage name is empty and so close the
> > designated pane.
> > Is it possible in tmux?
> >
> > Also is there a shortcut similar to C-a x, but that kills all panes
> but
> > current?
> >
> > Thanks in advance,
> > Sergey Naumov.
>
> >
> ------------------------------------------------------------------------------
> > Keep yourself connected to Go Parallel:
> > BUILD Helping you discover the best ways to construct your parallel
> projects.
> > http://goparallel.sourceforge.net
>
> > _______________________________________________
> > tmux-users mailing list
> > tmux-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/tmux-users
>
>
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users