onivim / oni

Oni: Modern Modal Editing - powered by Neovim
https://www.onivim.io
MIT License
11.35k stars 299 forks source link

Oni enters insert mode after using quickOpen, and pressing 'j' once #2573

Open g-erson opened 6 years ago

g-erson commented 6 years ago

Oni Version: 0.3.6 Neovim Version (Linux only): Operating System: MacOS

Issue: If you open a file with quickOpen (Command + P on Mac), and then press 'j' once to go down a line, the editor jumps into insert mode, meaning in order to immediately scroll through the file, one must press 'j', then 'ESC' to exit insert mode, and then browse the file normally in Normal mode.

This behaviour is also observed if a number is pressed before 'j'; the cursor jumps to the specified line, and then enters insert mode.

If using quickOpen to open a new file in a split, this does not occur.

If opening a file with :e, this does not occur.

Expected behavior: Onivim should not enter insert mode when opening files with quickOpen

Actual behavior: Onivim enters insert mode

Steps to reproduce:

CrossR commented 6 years ago

Hey,

Do you have any custom plugins/init.vim/etc enabled? I'm not able to reproduce this on Windows at least. If not it could be a mac specific bug, but I can't think of what would be causing it.

g-erson commented 6 years ago

I do, and you can see it here. But if it's any help I run the exact same config on Ubuntu 18.04, and haven't encountered this issue so far.

CrossR commented 6 years ago

Thats pretty odd then! Could it be something system level causing the inputs?

One interesting thing could be to check the Oni input logging, which is Help > Dev Tools > Console > Oni.log.enableDebugLogging(). That would let us see if any extra key presses are being passed.