-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
timeout if gitmux takes too long to print the result #35
Comments
Hey there. I agree that you have a very particular environment, but anyway since gitmux purpose is to run inside tmux, it should have the same requirements regarding user interaction, such as not taking too long to perform its job. I'm ok to add an option for that, but to let the timeout disabled by default |
`-timeout DUR` simply exist `gitmux` is it still running after DUR amount of time. DUR is parsed as a time.Duration with the special exception that 0 means no timeout. Defaults to 0 = _no timeout_ Closes #35
`-timeout DUR` simply exist `gitmux` is it still running after DUR amount of time. DUR is parsed as a time.Duration with the special exception that 0 means no timeout. Defaults to 0 = _no timeout_ Closes #35
@c02y hey I just merged #37 in master. Argument to
Please find the latest binary release at https://github.com/arl/gitmux/releases/latest |
[BUG REPORT]: When I'm using NOTE: there is no such issue when using my I noticed this issue because I got the |
Oh ok I know what that is. I will fix that very soon. Not related but you should use |
Sorry, it is a typo, it is |
Ok that should be fixed now. FYI: @c02y Let me know if that's fixed for you so we can close the issue |
Thanks, it is fixed. |
Expected Behavior
When in some situation, gitmux takes too long to print the result, it should just quit and print nothing like it never existed.
This kind is situation is: I got a repo pulled inside Windows partition, and I'm using Linux as the guest on Virtual Machine, and I share the repo folder to the Linux, trust me, I don't want this, anyway, when I'm in this situation, normal
git status
will take too long so I tried to avoid using git or tig or anything related to git in this repo inside Linux.Currently my workaround is using
#(timeout 2 ~/.local/bin/gitmux #{pane_current_path})
in my ~/.tmux.conf to quit gitmux after 2 seconds whatever the result is.Could you please add this timeout feature into gitmux, of cause if you think this is unnecessary, that's OK, I can just use my workaround since this is really a special situation.
And if others got the similar problem using gitmux, and once they see this issue page, they can use my workaround too.
Actual Behavior
the "~/.local/bin/gitmux..." string stuck in tmux status bar until it finished.
Steps to Reproduce the Problem
Specifications
gitmux -V
0.7.0tmux -V
3.1bgitmux -dbg
in that directoryThe text was updated successfully, but these errors were encountered: