Outdent heading markers - #5
Conversation
|
Reviewed this by driving the real editor on a disposable VM (Qt 6.11.1, offscreen) rather than reading the diff alone. What holds up. The gutter measures right: with the bundled font at 20px the cell is exactly 12px, and Three defects, one root cause: 1. Redo is silently discarded, and the text is unrecoverable. Type 2. One undo strips the document's typography. Open a document, change the desktop text size, press Ctrl+Z once. 3. Once any block is stale, one redo replays several edits. From the state in 2, make two cursor-separated edits and undo both — a single redo replays both, because I have not pushed a fix for these. Every option I can see is a design decision rather than a bug fix: disabling undo around the width change clears the entire stack instead of just the redo branch, and the alternative is keeping the gutter out of block formats altogether. That is your call and the maintainer's, not mine to make in your branch. Two smaller things, both verified:
At 720px with 3x text scale the body column is no longer centred: Finally, a note rather than a defect: the new Heads-up on overlap you did not cause: #12 also edits |
Reason for Changes
I personally find it more visually pleasing to have Markdown heading markers (like
###) outdented, while keeping the actual heading text aligned with regular paragraphs.Feel free to use my implementation if it aligns with your vision for the app. Here's a screenshot for comparison:
Tests
Here's the list of tests I performed manually:
Implementation approach