I know I can swap windows using swap-window -d *source* -t *dest*
, but I'd like to be able to swap the current window with the window to the left/right (effectively, 'move' a window left and right through the list). In particular, I want to map this command to a shortcut in my tmux.conf. I think I could do this if there was a way to reference the current window number in the tmux.conf file and do something like this:
swap-window -t *cur_window -1*
Is this possible?