GNOME Bugzilla – Bug 672196
Open at the last page viewed
Last modified: 2012-07-17 20:42:23 UTC
A feature I like on Evince is that it opens on the last page viewed in a document. This is something I miss in my daily use of gnome-documents. I'd like to work on this enhancement, but I don't know from where to start. How would we store the last page viewed in a given document? Should we add lastPageViewed as a document property on Tracker? (I don't know much about tracker yet).
Yes, this is definitely something we want. You could indeed use Tracker, but I don't think it's the best approach to store this kind of temporary application-specific metadata information. What Evince does (and what we should do too IMO) is using some namespaced gvfs metadata, and the GFileInfo API of GIO to set values (code is here [1]). Note that for the way caching for remote/office documents is implemented right now, metadata would be discarded automatically with the cached copy when this is replaced (provided that we set the metadata attributes on the cached copy). [1] http://git.gnome.org/browse/evince/tree/shell/ev-metadata.c
*** Bug 678740 has been marked as a duplicate of this bug. ***
I now pushed a first implementation of this to git master, closing as FIXED.