@cmd('<STR_LIT>', options='<STR_LIT>')<EOL>def move_window(pymux, variables):
dst_window = variables['<STR_LIT>']<EOL>try:<EOL><INDENT>new_index = int(dst_window)<EOL><DEDENT>except ValueError:<EOL><INDENT>raise CommandException('<STR_LIT>' % (dst_window, ))<EOL><DEDENT>if pymux.arrangement.get_window_by_index(new_index):<EOL><INDENT>raise CommandException("<STR_LIT>")<EOL><DEDENT>w = pymux.arrangement.get_active_window()<EOL>pymux.arrangement.move_window(w, new_index)<EOL>
Move window to a new index.