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

Delay when shift-selecting in neovim #119

Open
mikehaertl opened this issue Jun 16, 2022 · 4 comments
Open

Delay when shift-selecting in neovim #119

mikehaertl opened this issue Jun 16, 2022 · 4 comments

Comments

@mikehaertl
Copy link

mikehaertl commented Jun 16, 2022

I see a delay when I use this plugin from neovim to paste some text from the screen.

To reproduce:

  • Edit some file in neovim
  • Enter insert mode with i
  • Hit ctrl-space
  • shift- select an item e.g. with shift-s

It takes about 5 seconds before the text is inserted. During that time I can see the Copied <whatever was selected> message in the tmux status line.

I've already applied the settings from troubleshooting:

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

I don't have the issue outside of vim.

@fcsonline
Copy link
Owner

I'll try it. Meanwhile can you try to change you thumbs-command and remove the display message part?

Just to know that this decorative message is adding some unknown delay.

https://github.com/fcsonline/tmux-thumbs#thumbs-command

@fcsonline
Copy link
Owner

Also I don't understand this step tou follow:

"ctrl- select an item e.g. with ctrl-s"

To select a hint and immediately paste it I usually use a uppercase letters.

@mikehaertl
Copy link
Author

I've tried set -g @thumbs-upcase-command 'tmux set-buffer -- {} && tmux paste-buffer' and it really seems to solve the issue, thanks. So not sure if there's anything left to solve. It seems tmux always pauses with display-message.

Also I don't understand this step tou follow:

Right, sorry. I wrote this issue from memory and got confused with ctrl/shift. I was actually using the shift key (description above fixed).

Sidenote: How about including an overview of all key shortcuts just like tmux-fingers has it? I always had to check their page when I started testing this plugin.

@fcsonline
Copy link
Owner

Nice! I'll take this into account. Maybe we can run the display message in fire and forget mode. I'll try it.

About the list of keys, I'll do it. Really nice to have it. 💯

@mikehaertl mikehaertl changed the title Delay when ctrl-selecting in neovim Delay when shift-selecting in neovim Jun 19, 2022
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