This past week I mainly worked on two things, getting Tasks to remember its window size and position1 and adding a way to search through tasks.
Remember window size and position
This issue was actually reported by Nate Graham, I’m sure you know him from his awesome This week in KDE posts and it’s actually the main reason why I’m starting this “My week in KDE” thing. :)
The issue is actually pretty straightforward, the window position and size are not remembered, so let’s figure out how to add that!
My first thought was to look at how other apps implement this. I tested NeoChat and it remembered its size and position correctly, so I shamelessly started borrowing its code.
It was a fairly easy thing to add and it’s a nice little thing to have:
Adding a search feature
Next is the search feature, I thought it would be pretty cool if this worked similarly to the less command line utility. The way it works in
less is after you type the
/ character, everything after that will be the search pattern.
It was kinda tricky getting it to ignore the
/ character in the search but now everything is working nicely:
Contributions are Welcomed
If you’re interested in helping me with my little projects I would love any help, be it with code or with bug reporting.
Thank you for reading! :)
Window position is not remembered on the Wayland session and the position is only restored if you have that option enabled. ↩︎