Notes-up icon indicating copy to clipboard operation
Notes-up copied to clipboard

Edit and View modes are not at the same position in the note when switching between them

Open yerbestpal opened this issue 7 years ago • 3 comments

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.

yerbestpal avatar May 03 '17 18:05 yerbestpal

I think it should be possible by messing around with the scrollbars, I'll give it a try once the semester ends!

Philip-Scott avatar May 10 '17 03:05 Philip-Scott

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?

adds68 avatar Jul 18 '18 18:07 adds68

@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

Philip-Scott avatar Jul 18 '18 18:07 Philip-Scott