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

plugins that make custom key maps for cursor motion run very very slow (vim emulator is nearly impossible to use) #13262

Closed
Tracked by #13192
trusktr opened this issue Jan 11, 2024 · 4 comments
Assignees

Comments

@trusktr
Copy link

trusktr commented Jan 11, 2024

Bug Description:

Keyboard motions with plugins that script the cursor are very slow. At one point, the popular "vim" plugin worked, and I remember it was super slow. Now that the "vim" plugin does not work, maybe due to

I tried the "amVim" plugin, and it suffers the same issue. All keyboard actions happen very slowly, the repeat rate is limiated, and the cursor jumps around fanatically.

Steps to Reproduce:

  1. Install the "amVim" plugin
  2. Open a text file
  3. Try to move the cursor around with j/k to move down/up. Hold j or k to move repeatedly
  4. press i to insert text and try holding down a letter to repeat

Additional Information

  • Operating System: MS Edge
  • Theia Version: Version 1.45.0 VS Code API Version: 1.84.2

Video

In particular, when I hold k to move the cursor up quickly repeatedly, you'll see the cursor jumps all over the place.

Screen.Recording.2024-01-11.at.9.48.52.AM.mov

Works VS Code

In VS Code Web, the regular "vim" plugin works very well, the cursor move quickly as expected, without glitchy jumpyness. The "amVim" plugin is disabled for install in VS Code, I was not able to try that one.

@JonasHelming
Copy link
Contributor

Does this also occur in the desktop version, i.e. the Theia IDE?

@JonasHelming JonasHelming mentioned this issue Jan 12, 2024
63 tasks
@eneufeld
Copy link
Contributor

eneufeld commented Apr 5, 2024

I can look at this

@eneufeld
Copy link
Contributor

I can't really reproduce the issue with Theia 1.48.3
I tested in a Windows VM and had no issues. A slight lag could be there but this might also be due to the use of the Windows VM.

@trusktr could you check with the latest Theia version whether this still happens for you?
I used a clean Theia with just the amVim plugin in version 1.37 installed.
Reading the changelog of amVim 1.37 release it might also be a fix that happened in the plugin.

@tsmaeder
Copy link
Contributor

tsmaeder commented Aug 2, 2024

For me, the reaction rate is pretty much the same for both moving the cursor and inserting characters. Closing.

@tsmaeder tsmaeder closed this as completed Aug 2, 2024
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