On Tue, May 08, 2012 at 11:04:36 +0100, Thomas Adam wrote: > On 8 May 2012 10:04, Thomas Adam <tho...@xteddy.org> wrote: > > So I am not sure how best do this, other than have -r take a parameter to > > specify a session, and use cmd_find_session() to look it up. > > Something like the following? Completely and utterly untested.
It's pretty much what I have which just uses s instead of r in cmd_find_session. > diff --git a/trunk/cmd-move-window.c b/trunk/cmd-move-window.c > index acb5044..6b17b82 100644 > --- a/trunk/cmd-move-window.c > +++ b/trunk/cmd-move-window.c > @@ -30,7 +30,7 @@ int cmd_move_window_exec(struct cmd *, struct cmd_ctx *); > > const struct cmd_entry cmd_move_window_entry = { > "move-window", "movew", > - "dkrs:t:", 0, 0, > + "dkr:s:t:", 0, 0, > "[-dkr] " CMD_SRCDST_WINDOW_USAGE, > 0, > NULL, - "[-dkr] " CMD_SRCDST_WINDOW_USAGE, + "[-dk] [-r target-session] " CMD_SRCDST_WINDOW_USAGE, Maybe? --Ben
pgpyYiJ6S2Wxv.pgp
Description: PGP signature
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users