Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAllow windows to start up with command #86
Comments
|
this is a must-have! until then, this hack works for me: w = sess.new_window(attach=False) |
|
@Zinglish, @rpodgorny so the builder should have the pane / window launched with the command instead of sending keys afterwards. There was an issue with this across tmux versions, which is why I didn't include it. This is a top-tier priority however because Thankfully the integration tests against multiple tmux versions. |
|
This issue has been automatically marked as stale because it has not had This bot is used to handle issues where the issue hasn't been discussed or |
Been fiddling with tmuxp and I am super impressed with it as I am transferring some legacy Bash scripts to Python for ease of maintenance however I cannot find how to start a window with a command?
Basically I have this line in my script:
tmux -S $SOCKET_PATH new-window -dk -n "$WINDOW_NAME" -t "$SESSION_NAME":"$WINDOW_NAME" "$command"Where when the window starts, it is created for the sole purpose of the
$command.I have tried out
Pane.send_keys()function and yes this works really well but it doesn't have the desired effect where if I am executing a long running application and the application crashes the window/pane won't close and will stay in Bash.