Skip to content
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

New option to sleep for each pane creation #179

Closed
greymd opened this issue Feb 28, 2023 · 2 comments
Closed

New option to sleep for each pane creation #179

greymd opened this issue Feb 28, 2023 · 2 comments
Labels
idea Idea for new feature or improvement

Comments

@greymd
Copy link
Owner

greymd commented Feb 28, 2023

There have been several Issues (#167, #173) reporting: problems when creating named pipes simultaneously.
The root cause is not known, but it is suggested that the problem is caused by an environment in which multiple named pipes are created at the same time.

It might be nice to have new options to facilitate problem isolation and provide temporary workarounds.

So I thought it would be nice to have an option to sleep the process for a certain amount of time after each tmux pane creation.
The Long option is a good choice since it is not likely to be used frequently.

Example:

$ xpanes --spawn-interval 0.1 -s {1..5}

Internally, the value of the option is just given to sleep command on that environment.
sleep 0.1

Please note that whether sleep supports floating number or not is depending on the environment ref.
GNU sleep supports it but other may not.

@greymd greymd added the idea Idea for new feature or improvement label Feb 28, 2023
@greymd
Copy link
Owner Author

greymd commented Feb 28, 2023

This idea can be the workaround for #157 as well.

greymd added a commit that referenced this issue Mar 12, 2023
To address GitHub Issue #179
@greymd
Copy link
Owner Author

greymd commented Mar 13, 2023

Released in v4.1.4. Closed

@greymd greymd closed this as completed Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea Idea for new feature or improvement
Projects
None yet
Development

No branches or pull requests

1 participant