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

Feature: Reuse existing panes previously created by -x #198

Open
jmeurin opened this issue Oct 24, 2023 · 2 comments
Open

Feature: Reuse existing panes previously created by -x #198

jmeurin opened this issue Oct 24, 2023 · 2 comments

Comments

@jmeurin
Copy link
Contributor

jmeurin commented Oct 24, 2023

Frequently, I run xpanes -x <2 processes that communicate with each other>. I have scripts to send command to various tmux panes but I'd like to run xpanes -r <2 processes that communicate with each other> and reuse the panes that were created by the first -x run.

I've coded it already locally and I think others may be interested.

@greymd
Copy link
Owner

greymd commented Nov 18, 2023

@jmeurin Hi, sorry for the late reply.

  • Could you share more specifically the use case you are using? Specific commands, etc.
  • If you can pull requests for changes that are local, I'll see what they are.

That's an interesting idea but I have a few concerns.

For example, as far as I checking your comment, xpanes may have to remember the pane prepared by -x. In other words, we have to make the xpanes have stateful behavior. Stateful behavior would make the code more complex and I do not prefer to implement it.
On the other hand, if -r has a simple behavior like "just resend commands to all panes except for own pane," it may be useful.

@jmeurin
Copy link
Contributor Author

jmeurin commented Jan 5, 2024

Sorry for my even later reply. I created #199.

It keeps xpanes stateless and matches the behavior you described last.

I apologize but I don't have the ability to run the tests :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants