GNOME Bugzilla – Bug 168285
Remember per-document user settings
Last modified: 2005-09-16 22:46:27 UTC
On a per-document basis it would be good to remember the last zoom level a person used on a certain document.
We should probably look at nautilus to see how they store per-directory information (geometry etc.).
You may also want to look at gedit's gedit-metadata.c: it's a IMHO nice way of storing document metadata and should be fairly generic. gedit uses it to remember selected highlighting, last searched text, spell checker language etc.
Using gedit-metadata-manager.c sounds like a good idea. It should also be very easy to get it going... Someone should really give it a try ;)
I've had a look at gedit-metadata-manager, and it seems to me it's not really adapted to evince, where we launch new instances of it instead of forwarding to one existing instance of evince. It looks to me like gedit-metadata-manager will overwrite the metadata saved from other instances (and not pick up metadata saved from other instances of it running concurrently, but that's not so important here, IMHO). On the other hand, nautilus' metadata can be queried via corba/bonobo, so is ideally suited for evince's situation. However, the convenience APIs for that are in libnautilus-private, and the IDL is there as well, so I'm not sure we can use that. Maybe ask the nautilus crew for public access to metadata?
Alex, any recommendations for using nautilus' metadata storage methods?
The nautilus metadata APIs won't be made public as-is. We have long though about somehow making a metadata API public, however it won't be the current one, as it ties in to strongly with nautilus internals.
Also it would be nice to remember document current page and searched text and, probably, generated thumbnails. Of course, it would be nice to remember fullscreen/presentation mode, sidebar visibility and window geometry. Here is related page in wiki http://live.gnome.org/GnomeVFSMetadata
*** Bug 164772 has been marked as a duplicate of this bug. ***
We may have to make evince one process for other reasons (avoid "duplicate" documents). At that point gedit metadata may work.
It would be nice to be able to change the default window size for all documents. For those of us with larger monitors, it is annoying to have to resize documents every time we open them...
I'd rather we have a better algorithm for figuring out a decent size window to use, than trying to allow changes to app wide defaults.
*** Bug 307152 has been marked as a duplicate of this bug. ***
*** Bug 308130 has been marked as a duplicate of this bug. ***
Another thing to remember - should use index or thumbnails in sidebar.
We have infrastructure in place for this and a bunch of properties already remembered. Please post a separate bugs if there are more we could save.
*** Bug 316481 has been marked as a duplicate of this bug. ***