Previously, if you had two sessions and wanted to target by index, a
new window would be created with the index as name. Nonetheless, the
command body would be sent to the window with the target index.
Test case:
echo hoi
echo hoi :session bug:=2 && date
Expected behaviour: date shows up on bug:b. no new window is created.
Actual behaviour: date shows up on bug:b. new window bug:"2" is
created.
Now the date shows up on bug:b and no new window is created.
When a command in the tmux source code block ended with a semi-colon,
it was previously ignored. Now we send the keys with the -l option to
send the line literally.
It is now possible to create multiple windows in the same
session. One can write, for example,
echo boom
echo done
This will open up a terminal window with one tmux session, named
'hello', and two windows, named 'boom' and 'done'.
Tests the tmux functionality. Also solves some problems in the
original implementation where the temp file would be read directly
after creation, i.e. before the random string could be written to the
file.