Open yerbestpal opened 7 years ago
I think it should be possible by messing around with the scrollbars, I'll give it a try once the semester ends!
Please lets get this working! As notes grow, it really becomes a pain :(
@Philip-Scott I've never used Vala or C much for app dev, but where would i start to look in the source code to try and hack something together?
@Wetrain Valadocs is always a great place to start :)
Both the viewer and the editor have a scrollbar, and the scrollbars have something called anm Adjustment. So maybe what we could do is grab the scrollbar's position, and set an approximate on the editor :)
https://valadoc.org/gtk+-3.0/Gtk.Scrollbar.html https://valadoc.org/gtk+-3.0/Gtk.Adjustment.html
The code for the editor and viewer widgets are located here https://github.com/Philip-Scott/Notes-up/tree/master/src/Widgets
I don't know if that's intentional or not, but when I am looking down a note in 'view' mode, and see something I want to edit, it would be very handy if 'edit' mode opened at the same area to save scrolling around to find it. Especially in larger notes.