Open
Description
Hi, thanks for this library.
In tmux we can create a new window and immediately run a command in it using:
tmux new-session -d -s cool_session
tmux new-window -t cool_session -n fun_window "echo kills fun_window after 5s && sleep 5"
This is useful when one wants the window to automatically kill itself once the command has finished running.
It would be nice to have this feature in libtmux as well. Maybe an optional parameter like Session.new_window(cmd=None)
.