Hi all, Am 2014-10-14 um 02:42 schrieb D M German: > I have been thinking about your response since. I think you that both > models have good points. I tend to use dropbox for my xournal files and > it is common that I load the same files from different devices. I start > in my laptop, then move to my tablet, and vice-versa. This is also a > reason that I would like to have a "reload if changed" option in > xournal.
I think this could instead be solved by keeping the MRU list in Dropbox (via a symlink, or by making the path of recent-files configurable). Best, Michael > now, from a user point of view, it is much easier to jump to the first > page than to find the last page that was being read. There was one > patch in sourceForge that allow jumping from one annotated page to the > next (in a circular list). I patched an old version of xournal with it > and it was a easy way to remember where I was last, since all I had to > do was to put a line in the last paragraph i had read, and then jump > to the last annotation made in the document. > > another problem with the MRU list is that I move files frequently, and > the MRU will not work for moved files. > > > Denis> A more logical location might be in the mru file > (.xournal/recent-files). Since that one is local to an installation of > xournal (more or less), it is fairly > Denis> harmless to extend its format (plus, the current xournal doesn't read > past 8 lines of the file). > Denis> See init_mru(), new_mru_entry(), save_mru_list() in xo-file.c (I > can't understand for the life of me why the reading of the MRU file is done > with > Denis> g_io_... instead of plain g_fopen() etc., perhaps I was feeling in a > mood to explore glib features). > > Denis> It would be logical to simply store in the MRU list, along with > Denis> the file name, the page number on which it was last opened (in > Denis> memory, extend the MRU data structure to have not just a menu > Denis> item widget and a file name but also a page number; in the MRU > Denis> file, up to you how to do it, perhaps append :1 (or :pagenumber) > Denis> at the end of each file name in the list stored on disk?) -- and > Denis> if we want to keep page numbers for more than the last 8 files, > Denis> increase the length of the list in memory and in the MRU file > Denis> but not in the menus. Then add to the file-open function a > Denis> feature to look up the file name in the MRU list and see if we > Denis> have a preferred page number for it. > > Denis> Does this make sense? > > Denis> Best, > Denis> Denis > > > Denis> On 09/07/2014 01:07 AM, D M German wrote: > >> > >> hi Denis, > >> > >> what do you think about saving in the xoj file, the current page? > >> > >> If you agree with it, how would like it implemented? I can do the work. > >> > >> --daniel > >> > >> -- > >> Daniel M. German "Never underestimate the bandwidth > >> of a station wagon full of > >> Andrew S. Tanenbaum -> tapes hurtling down the highway." > >> http://turingmachine.org/ > >> http://silvernegative.com/ > >> dmg (at) uvic (dot) ca > >> replace (at) with @ and (dot) with . > >> > >> > >> > >> > ------------------------------------------------------------------------------ > >> Slashdot TV. > >> Video for Nerds. Stuff that matters. > >> http://tv.slashdot.org/ > >> _______________________________________________ > >> Xournal-devel mailing list > >> Xournal-devel@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/xournal-devel > >> > > Denis> -- > Denis> Denis Auroux > Denis> UC Berkeley, Department of Mathematics aur...@math.berkeley.edu > > Denis> Institut Henri Poincare, Paris aur...@ihp.fr > > > -- > Daniel M. German "And ye shall know the truth, > John 8:32 -> and the truth shall make you free." > http://turingmachine.org/ > http://silvernegative.com/ > dmg (at) uvic (dot) ca > replace (at) with @ and (dot) with . > > > > ------------------------------------------------------------------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push notifications. > Take corrective actions from your mobile device. > http://p.sf.net/sfu/Zoho > _______________________________________________ > Xournal-devel mailing list > Xournal-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xournal-devel > ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho _______________________________________________ Xournal-devel mailing list Xournal-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xournal-devel