[Okular-devel] Bug 157198 - Remember position on the page in bookmark

Albert Astals Cid aacid at kde.org
Mon Mar 12 23:13:45 UTC 2012


El Dilluns, 12 de març de 2012, a les 09:52:45, Mailson Lira va escriure:
> Hi everyone,

Hi

> Currently I'm working on this new
> feature[1<https://bugs.kde.org/show_bug.cgi?id=157198>]
> which is make bookmark remember where in the page it was saved. The
> solution is to make the bookmark save the center of the viewport, not only
> the page number. With that in mind, the user now can have as many bookmarks
> as he wants on a given page.

True, i had not though about when i told you to implement it, good catch :-)

> This will change the behavior of the program, so I need to ask a few
> questions on how this should work.
> 
> == Case 1 - "Remove bookmark" menu action ==
> 
> If you right click on a *bookmarked* page (or click on Bookmark in
> menubar), you'll see an option to remove the current bookmark instead of
> adding a new one.
> 
> Since the user can add another bookmark on another position we can't simply
> show the "Remove bookmark" option on a bookmarked page anymore.
> 
> So what should we do with the "Remove bookmark" option?
> - Check if the use is at the exact position of the bookmark and then show
> the option to remove it? That may not be a good idea since if the user
> moves 1px to the left, he's not on that bookmark position anymore.

Nope, too dificut.

> - Show an extra option to remove all bookmarks on the page or the last
> bookmark added? With that the "Remove bookmark" will not replace the "Add
> bookmark" option.

"Remove Last added" is not a gread idea, i won't remember which is the last 
one i added tomorrow.

> 
> - Make the "Remove bookmark" option available when the viewport very close
> to the bookmark position, so it doesn't need to be at the exact position.
> That's tricky.

Yeah, too fuzzy.

> 
> Any suggestions?

Not sure. Problem is I'm not a heaviy user of Okular myself so I am not sure 
what is the best solution. One solution i can see working would be keeping the 
Add/Remove Bookmark Page feature, and then adding a new item menu that is 
"Bookmark this position" (in oposion to 'this page'). For these "position" 
based bookmarks you would only be able to remove them from the bookmark 
manager in the sidebar (and we'd probably need some kind of icon identifying 
them as special bookmarks).

This might be some extra over-engineering though, you might want to hang in 
the #kde or #kde-cafe channels in irc.freenode.net and ask for opinions there 
or post in the kde forums to get some more okular users input as to how this 
would work. Asking the person that initially requested the feature might also 
work (even maybe he won't answer as the feature was requested years ago).

Of course I'm not saying you have to implement what users say but they might 
have a good idea ;-)

> 
> == Case 2 - Ctrl+B shortcut ==
> 
> The Ctrl+B shortcut add or remove the page to bookmark. That may not work
> well if we have many bookmarks in the page.
> Should we detect if the current viewport is saved to bookmarks and then
> Ctrl+B will remove them? Or that shortcut will just add bookmark and the
> user needs to go to the list of saved bookmarks on the left side and remove
> it manually?
> 
> The first can lead to undesirable results such as the user adding various
> bookmarks on very close (but different) positions when what he really
> wanted was to remove a bookmark.

That's basically the same problem as Case 1 but using the shortcut instead of 
the menu, we shoud solve Case 1 first and then apply the same rationale here.

> 
> == Case 3 - Save only one bookmark per page ==
> 
> The bookmark will remember the position on the page but will still allow
> only one bookmark per page. That will not change the behavior of okular but
> IMHO doesn't make much sense.

Why you say this? Isn't your whole email based in the assumtption that there 
will be more than one bookmark per page?

Albert

> 
> == ==
> 
> Sorry for the long message but I had to ask those questions.
> 
> [1] https://bugs.kde.org/show_bug.cgi?id=157198
> 
> --
> Mailson Lira


More information about the Okular-devel mailing list