Other problem is this could be reused... maybe an ever-increasing pane id is a better move.
On Sat, Nov 13, 2010 at 04:51:23PM +0000, Nicholas Marriott wrote: > > > > > > Also, since panes and such can move around, tracking a specific pane to > > > interact with via scripts and such can be hard. Would it be possible to > > > have tmux inject a TMUX_PANE_ID into a pane's environment that is static > > > and unique for the life of the pane so that panes can always be reached? > > > Maybe using '%' as an ID identifier in target commands would be > > > possible. Commands to query for the current pane with focus and get back > > > its address and ID would also make sense. > > > > This is a nice idea, I'll add it to the todo list. > > I was thinking about this and in fact every pane already has a unique > identifier - the name of the slave side of the pty. So if we just made > it so that you could pass that as a pane target and so the pty was in eg > list-panes, it'd work. > > It isn't in the environment, but we could put it in as part of $TMUX or > in $TMUX_TTY or something (probably the latter, I regret making TMUX > compound rather than separate variables). > > Only problem is confusion with client identifiers which use their pty. > > > > > > > > > This problem arises in screen.vim[1] which cannot reliably track a tmux > > > pane to interact with a specific one. > > > > > > --Ben > > > > > > [1]https://github.com/ervandew/screen > > > > > > > > > ------------------------------------------------------------------------------ > > > Centralized Desktop Delivery: Dell and VMware Reference Architecture > > > Simplifying enterprise desktop deployment and management using > > > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > > > client virtualization framework. Read more! > > > http://p.sf.net/sfu/dell-eql-dev2dev > > > > > _______________________________________________ > > > tmux-users mailing list > > > tmux-users@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/tmux-users > > > > ------------------------------------------------------------------------------ > Centralized Desktop Delivery: Dell and VMware Reference Architecture > Simplifying enterprise desktop deployment and management using > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > client virtualization framework. Read more! > http://p.sf.net/sfu/dell-eql-dev2dev > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users