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

PowerShell: VIM key scheme duplicates keypresses #437

Open
torculus opened this issue Aug 13, 2024 · 3 comments
Open

PowerShell: VIM key scheme duplicates keypresses #437

torculus opened this issue Aug 13, 2024 · 3 comments

Comments

@torculus
Copy link

When I set $env:MCFLY_KEY_SCHEME="vim" in my Powershell profile (aka "config file"), mcfly fails to start on the first few tries, and then it duplicates every key press (i.e. typing "a" results in "aa", "j" results in "jj")

PowerShell.2024-08-13.09-23-57.mp4

This issue persists even if I set $Env:MCFLY_KEY_SCHEME = 'vim' (capital E, single quotes around 'vim', spacing between assignment) as shown in the official Powershell docs

@cantino
Copy link
Owner

cantino commented Aug 13, 2024

@jtschuster @torculus any ideas?

@torculus
Copy link
Author

@cantino so I don't use Windows predominantly (only for work), but it did just occur to me that Powershell has a native vi mode, and I do have that enabled. I'll check later to see if this problem persists when I turn it off

For the record, the default emacs keybindings work well on my system (i.e. with Powershell using vi mode)

@torculus
Copy link
Author

Okay, just tried setting Powershell's vi mode off, and it's still happening

I can also confirm that the double keypresses make the vim navigation unusable, since the first escape puts it into command mode, and then the second one (immediately afterwards) quits mcfly

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