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

[Mac] Fixes some issues with VimKeyProcessor #2889

Merged
merged 3 commits into from May 29, 2021

Conversation

nosami
Copy link
Collaborator

@nosami nosami commented May 5, 2021

The last fix broke auto-indentation and signature help.

This code is now simpler with less hacks and seems to work much better.

Tested the following and didn't find any issues.

  • inoremap
  • auto indentation when pressing } or ;
  • Insert mode insertion followed by '.'
  • Signature help
  • Snippet completion
  • Intellisense
  • Inline rename
  • Macro recording involving insert mode

Fixes #2888

@nosami nosami changed the title Fixes some issues with VimKeyProcessor [Mac] Fixes some issues with VimKeyProcessor May 5, 2021
@nosami
Copy link
Collaborator Author

nosami commented May 6, 2021

I just noticed another issue with inoremap that I need to fix somehow. inoremap fd <esc> works when fd is typed, but f followed by any other character swallows the first f

@nosami
Copy link
Collaborator Author

nosami commented May 6, 2021

I think I might have finally nailed all the KeyProcessor issues.

The only limitation I see now is that Intellisense is disabled while a macro is being recorded. This seems like it might be a fairly sensible limitation though as I can imagine this would be pretty tricky to implement correctly. @jaredpar does VsVim on Windows handle this?

The last fix broke auto-indentation and signature help.

This code is now simpler with less hacks and seems to work much better.

Tested the following and didn't find any issues.

- inoremap
- auto indentation when pressing } or ;
- Insert mode insertion followed by '.'
- Signature help
- Snippet completion
- Intellisense
- Inline rename
- Macro recording involving insert mode

Fixes #2888
Fixes inoremap BufferedInput issues
and makes the code closer to Windows version
@nosami nosami force-pushed the dev/nosami/fix-key-processor branch from 72b76ac to 593014d Compare May 29, 2021 07:30
@nosami nosami merged commit e50a3fb into master May 29, 2021
@nosami nosami deleted the dev/nosami/fix-key-processor branch May 29, 2021 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VsMac auto-format randomly switches off with VsVim 2.8.0.11
2 participants