Skip to content

Have an optional parameter cmd in Session.new_window() #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ritiek opened this issue Dec 26, 2017 · 1 comment
Open

Have an optional parameter cmd in Session.new_window() #87

ritiek opened this issue Dec 26, 2017 · 1 comment

Comments

@ritiek
Copy link
Contributor

ritiek commented Dec 26, 2017

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).

@stale
Copy link

stale bot commented Feb 24, 2018

This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.

This bot is used to handle issues where the issue hasn't been discussed or
has gone out of date. If an issue isn't resolved and handled in a certain
period of time, it may be closed. If you would like your issue re-opened,
please create a fresh issue with the latest, up to date information and
mention this issue in it.

@stale stale bot added the stale label Feb 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants