heynote
heynote copied to clipboard
Implemented codemirror extension to keep initial indentation for wrapped lines
Resolves #187
#187 is about displaying an indentation for lines that wraps, so this is not really a solution for it.
Though this may also be desirable, I need to think more about that.
I thought that this was the original request as well. I think they're both desirable behaviors.
Sorry, I was misunderstood the issue. So, It appears there are two separate scenarios regarding indentation to address:
- Upon hitting 'Enter', the new line fails to adopt the indentation of the preceding line.
- 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?
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
).