A small update to fix a few problems I consider critical while I work on larger features. The big two changes are:
- Fix for typing delay when editing long notes with the Preview window open
- Preserve scroll position in Preview window when editing with Preview window open
It records its scroll position in the preview window before it updates the content of it. If the note has already been previewed (you didn’t just switch notes), it injects a script into the updated content to restore the scroll position when the window finishes loading. The result should be a completely transparent way to hold the scroll position despite the frequent updates.
I also greatly reduced the frequency with which it reads the template files from your support directory, which removed the delay that sometimes occurred when typing inside of longer notes with the preview window open.
Let me know if you find any new bugs that these changes cause!
By the way, I’ve added a donate button to the site which appears in the sidebar and on certain project pages and updates. It’s not specifically for nvALT, but if you enjoy the work I publish here for free, send me a little coffee/beer money. Thanks!