All,

I was trying to setup a tmux script, but ran into the following issue -
after a bit of googling, there doesn't seem to be a way to use send-keys to
actually send a key *binding* to another window (not just text to be run).

A bit of background - I would like to be able to run a command in another
window, but be absolutely sure that the command in question is run in the
right pane. Hence, I would like to send a:

    C-b q2

to select the pane # 2 in the window and when re-focused, and only then run
the command.

So - how do you do this, or send key bindings to a given window? Closest
I've come to is pane management is the select-pane command, but that seems
to only select panes based off of relative motions (ie:

tmux select-pane -D -t icebox_session_shared:0

which is suboptimal for scripting because it is relative, and you cannot be
guaranteed which pane is focused after doing it.

Any help on this would be cool, I'm so close to having a standardized,
multi-command enviornment, and absolute pane selection via automation would
go a long way to getting there.


Thanks much,

Ed
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to