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

Tmux Plugin is too slow #88

Closed
MushiTheMoshi opened this issue Jun 15, 2021 · 13 comments
Closed

Tmux Plugin is too slow #88

MushiTheMoshi opened this issue Jun 15, 2021 · 13 comments

Comments

@MushiTheMoshi
Copy link

Hi there, awesome plugin, very productive one. Thanks for the job done here very appreciated.
I found that tmux plugin is really slow in compare with the standalone thumb, it takes up to 10 secs to find all occurs, I was wondering how can I troubleshoot this, just to see if I can somehow improve it.

Repository owner deleted a comment from Morantron Jun 16, 2021
@fcsonline
Copy link
Owner

It usually works for me in milliseconds. Can you give us a bit of context?

@MushiTheMoshi
Copy link
Author

Hi there, well , when the screen is full of occurrences is happening, see below:

byzanz_2021-06-16_111103

@fcsonline
Copy link
Owner

Do you have some custom regex that is matching every word or something like this? It is really weird this amount of matches.

@MushiTheMoshi
Copy link
Author

I found the reason, it was related to the tmux alerts, if activated those collide and you get the idea of incompleteness since the plugin wait until the alert is gone, when turned off everything works just fine

@fcsonline
Copy link
Owner

Not sure to fully get it, but if it works, that's ok. 👌

@fcsonline
Copy link
Owner

Closing issue.

@jetm
Copy link

jetm commented Jun 30, 2021

@MushiTheMoshi I'm having a similar issue. What did you change in your tmux.conf file?

@MushiTheMoshi
Copy link
Author

I edited as below:

set -g visual-activity off
set -g visual-bell off
set -g visual-silence on

@jetm
Copy link

jetm commented Jun 30, 2021

@MushiTheMoshi Thank you! That solved my issue too.

@fcsonline
Copy link
Owner

But just to understand, what is the cause to end up in this situation? I never faced this. I can understand the relationship between showing hints and visual-bell, visual-activity, etc.

@MushiTheMoshi
Copy link
Author

MushiTheMoshi commented Jun 30, 2021

my understanding is that when you issue a command inside a tmux session, it's registered and tmux alerts about it, that behaviour is like colliding with the plugin execution, I notice by hitting enter while waiting for the hinting links. That's how I came with the ideo to turn off the alerts, bells etc.

@JoyceBabu
Copy link

JoyceBabu commented Aug 17, 2021

Thank you @MushiTheMoshi. I first tried tmux-thumbs a few months back and stopped using it due to the very slow response. Your solution worked for me too. visual-bell and visual-silence had no effect on the performance, but turning on visual-activity was causing a delay of almost 10 seconds.

@fcsonline
Copy link
Owner

I just added a bit of documentation about this: https://github.com/fcsonline/tmux-thumbs/blob/master/README.md#troubleshooting

Thank you all for handling this.

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

4 participants