Better editor
the editor got a real display layer, and honestly most of the actual work here happened in the Slint live preview, just tweaking things until they looked right, so the hours logged don’t reflect it. same story for the last few commits, tbh, a lot of “sit in the preview and nudge” that Hackatime doesn’t see. oh well.
anyway
the thing that makes an editor feel like an editor is that the active block shows raw markdown but every other block renders nicely, and the piece that does that rendering is the new display module. it turns each block into the text you actually want to see.
lists keep their markers because those go through the real markdown renderer. and tables, tables actually render as an aligned grid now, padded columns and a --- separator row, which looks so much better.
there’s also scroll targeting
given the active block, it works out where to scroll the editor so that block is comfortably in view. first block sits at zero, later blocks scroll proportionally, long bodies don’t leave you editing something off the bottom of the screen.
wrote a chunk of tests for all of this
the map got a zoom-to-card thing too
click into a note and the camera zooms so the card fills the viewport width
it’s great that’s what i wanted since the beginning tbh like that animation played in my head
Comments 1
Ignore the duplicated failed preview thing lol, Slint does not like WYSIWYG MD editing, but i am working on getting it working
Sign in to join the conversation.