Selecting Text and Render Culling


It is now possible to select text inside of a note. And because it’s possible to select text, it’s now possible to copy, cut, and paste that text.

Woohoo!

Selecting text should work as expected.

When in edit mode, press shift and move the cursor keys. Or click and hold the mouse button and drag across the text.

It should be possible to shift and click to select text, but somewhere along the line I broke that feature. I’ll work on a fix for the next release but wanted to get 0.4 out before I had to leave for the day.

Some Optimizations

As I am currently using L.I.N.K. to track all the things I have to do and things I have done, my TODO—List.link file has gotten pretty big. As a result, I’ve noticed some high CPU usage.

This is because I was rendering all notes whether they’re on screen or not.

Not any more! Now only notes that are visible on the screen are rendered and I made the render path a bit more cache friendly. As a result, I was able to cut the CPU usage in half! It’s much closer to what an empty link file uses.

There’s a lot more areas I could certainly improve but that was the big one. I probably won’t worry much about any further optimizations until I’m closer to to a 1.0 release.

Bug Fixes

Besides adding some bugs I also fix a few other bugs.

The big one (big ones causing errors that crash the program) was when selecting multiple notes that were all at the same Y position.

Thanks to a comment left by Léon in my last post, I was able to quickly narrow down what the problem was.

Thank you!

What’s Next

I still need to work on adding an Undo/Redo stack.

This one may take awhile so I wanted to get a new build out before I tackled that one as I’d like to get these updates out about every week. Especially at this stage in development.

I also still need to work on some branding and creating some GIFs for the main page.

Besides that I’ll keep on hunting for bugs (and fix the one I’ve already found).

If you find any bugs or have any other questions or comments, please feel free to leave them in the comments below.

Files

L.I.N.K. v0.4 3 MB
May 30, 2021

Get LINK!

Leave a comment

Log in with itch.io to leave a comment.