standardnotes / forum

Support from other community members. For 1-on-1 help, please contact help@standardnotes.com.
https://forum.standardnotes.org
196 stars 9 forks source link

Cursor position missing in vim mode with markdown syntax highlighting #405

Closed kyletolle closed 1 year ago

kyletolle commented 5 years ago

I appreciate Standard Notes and all the hard work that goes into improving it!

Following up with an issue I initially reported on twitter as advised to here: https://twitter.com/StandardNotes/status/1078742198387126274

Overview

When using vim mode with markdown highlighting, moving through the document in normal mode, I lose the cursor highlighting when navigating through Markdown code blocks, which makes it nearly impossible to jump around and edit the text.

Steps to reproduce

Actual behavior

Cursor position within the markdown code block is hidden. I cannot see the cursor at all. This means I have no idea where the cursor is when I'm trying to navigate around and type.

I'm guessing the code block's background color is obscuring the cursor highlight.

Expected behavior

Should see the cursor highlighted. So you know where the cursor is and where you're navigating. through the text.

Screenshots


I hope the steps, details, and screenshots help. Please let me know if I can provide any additional information!

moughxyz commented 5 years ago

Hey @kyletolle, thanks for the detailed report! It looks like the cursor is hiding behind the gray code blocks in Markdown mode. This should now be fixed in version 1.2.3 of the Vim editor. You can update via the Extensions menu. On web, be sure to clear your cache if the update doesn't seem to have taken effect.

kyletolle commented 5 years ago

Thanks for the quick fix @mobitar! With Vim Editor v1.2.3 I can see the cursor again. One more question. Should the character be visible when the cursor is highlighted?

In vim itself, I see something like this: vim cursor and character highlight When the cursor is visible, the character gets an inverse color.

But in SN, I see this: SN cursor highlight

When the cursor is visible in SN's vim editor, I can't see the character the cursor is on.

kyletolle commented 5 years ago

And I'm happy to have given the detailed report. I know how providing the information upfront allows you to get right into fixing the code instead of having to follow up with me about missing information.

kyletolle commented 5 years ago

Similarly, when I am in insert mode and double click to select text within a markdown codeblock, the background color for the highlighted text is obscured by the codeblock background color.

moughxyz commented 5 years ago

Hmm, good point. Have to catch up on some other stuff so won't be able to get a quick fix, but have made a note to tackle this next time I'm in this vicinity.

kyletolle commented 5 years ago

Text highlighting also seems to be obscured when search terms are highlighted in a note.