many fixes
remember that // TODO: make dynamic and responsive sitting on top of the editor size? i did it. the editor isn’t a fixed 940x560 picture anymore. slint tells rust how big the panel actually is, and the editor re-renders at that size whenever you resize the window. it also resyncs when you open a note, in case the window changed size while it was closed. there’s a floor (120x80) “so a tiny/zero panel never produces a weird buffer lol”, and a max width of 1100px, because prose stretched across a really wide window is unreadable. the comment on that says “(you’ll never guess how i discovered this)” and you probably can guess
also two new tests- [no Neel, they don’t wanna hear about your tests, shush]
“Many fixes” is the big one, and the headline is: SEARCH WORKS. the “Quick finder” box in the top bar was basically decoration until now lol. you type something, hit enter, it runs the hybrid search, picks the top result, selects that card, and the camera glides over to it. the status bar says how many matches there were and which note it’s showing, or “no match” if there’s nothing. this is the embedder and the vector index finally getting used from the actual UI, which after the whole _emb saga feels really good
the note cards got some love too:
- tags show up as little colored dots with labels. each tag hashes to one of 7 colors, so the same tag always gets the same color on every card
- previews show up to 160 characters now instead of 80, three lines normally and two when there’s a tag row
- pinned cards get a little four point star made from two crossed diamonds
- notes pinned in their frontmatter now actually show as pinned, not just ones pinned from the UI
and a fun bug: link lines were coming out of the top left corner of every card instead of the middle. so the whole map was a bunch of lines connecting corners lmaooo. now they start from the center, and every edge test had its coordinates bumped from (0, 0) to (90, 60), which is literally half a card. the edge paths were also set to 0x0 size in slint, so they’re now sized to the canvas properly
“tiny fixes” is tiny. cards used to carry a comma separated tags string, and now that the colored tag dots exist it was dead weight, so it’s gone
honestly the app feels like an actual app now? you can find notes, the editor fits your window, and the map lines go where they should hehe
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.