BoostNote-App icon indicating copy to clipboard operation
BoostNote-App copied to clipboard

Cursor not visible in Vim mode

Open jason-pollock opened this issue 3 years ago • 3 comments

Current behavior

While in Vim mode, the cursor is invisible on empty lines. This is reproducible in every note. Reproducible in Mac, Debian, and online versions.

https://i.imgur.com/83F6ceb.png

Expected behavior

The cursor should be visible on empty lines, displayed in blinking block format.

Steps to reproduce

Open a new or existing note. Enter Insert mode and type a few lines. Exit to Command mode. Navigate to an empty line using "H" or "J". Notice that your cursor is invisible on empty lines.

Not much else to say. It happens to me every time on every note.

Environment

  • Web

  • Mac

  • Debian

  • Boost Note.next version: 0.22.0

  • OS version and name: Kubuntu 20.04, MacOS Big Sur 11.6

jason-pollock avatar Oct 18 '21 15:10 jason-pollock

Hi,

I can confirm the issue, I'll notice the team so we can resolve this quickly.

Komediruzecki avatar Oct 18 '21 17:10 Komediruzecki

Hello,

I investigated the issue, this seems to be a general Codemirror bug, https://github.com/codemirror/CodeMirror/issues/6312 which means if we are using VIM mode and contenteditable in Codemirror editor, the VIM cursor on an empty line won't be shown. So it is either moving to textarea mode (and losing IME working properly) or waiting for the Codemirror to fix this.

I made a comment on the issue, if this will be resolved quickly, we will just update the Codemirror version, otherwise, we should see for some other solutions.

Komediruzecki avatar Oct 26 '21 20:10 Komediruzecki

Looks like Codemirror has fixed the bug causing this issue, yet the issue persists in Boost Note. Any chance of revisiting this issue? Get Vim mode working again?

jason-pollock avatar Jan 23 '23 16:01 jason-pollock