heynote icon indicating copy to clipboard operation
heynote copied to clipboard

Implemented codemirror extension to keep initial indentation for wrapped lines

Open Maran1947 opened this issue 1 year ago • 5 comments

Resolves #187

Maran1947 avatar Feb 11 '24 20:02 Maran1947

#187 is about displaying an indentation for lines that wraps, so this is not really a solution for it.

heyman avatar Feb 11 '24 22:02 heyman

Though this may also be desirable, I need to think more about that.

heyman avatar Feb 11 '24 22:02 heyman

I thought that this was the original request as well. I think they're both desirable behaviors.

NoahAndrews avatar Feb 12 '24 00:02 NoahAndrews

Sorry, I was misunderstood the issue. So, It appears there are two separate scenarios regarding indentation to address:

  1. Upon hitting 'Enter', the new line fails to adopt the indentation of the preceding line.
  2. Fails to maintain proper indentation for lines that wrap or extend beyond the width of the viewport.

And the issue is about scenario 2, isn't?

Maran1947 avatar Feb 12 '24 05:02 Maran1947

And the issue is about scenario 2, isn't it?

Correct. #187 is talking about the word-wrap column. If you look closely at the first screenshot in that issue, you'll see that the line number in the margin shows that line 3 wrapped (by leaving a gap in the line numbering for the next line before showing 4).

jacobcarpenter avatar Feb 27 '24 23:02 jacobcarpenter