Bug 271986 - A "Go to Bookmark..." action similar to "Go to Page..."
Summary: A "Go to Bookmark..." action similar to "Go to Page..."
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-29 15:56 UTC by Hans Chen
Modified: 2011-05-02 10:07 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Mockup of the dialog (17.85 KB, image/png)
2011-04-30 00:16 UTC, Hans Chen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hans Chen 2011-04-29 15:56:02 UTC
Version:           unspecified
OS:                Linux

This is similar to Bug 239037 but with a different solution that, in my opinion, is easily discoverable and more user-friendly, especially for those not used to Vim.

The suggestion is to add a "Go to Bookmark..." action that shows a dialog similar to "Go to Page...". The dialog should show a list of the bookmarks and allow the user to filter the list. When clicking on "OK", the document jumps to the selected bookmark.

There are mainly two reasons why I want this instead of just using the sidebar:

1. I'm a heavy keyboard user and would like to have an easy way to jump to a given bookmark. My sidebar is hidden most of the time, and although I can show it with a keyboard shortcut, I don't know any easy way to navigate within it using the keyboard. Furthermore, I would have to hide the sidebar after jumping to the bookmark.

If this is implemented, the workflow would be as follows:
Hit shortcut -> start tying a part of the bookmark -> press Enter.

2. This would be a very nice feature for presentations (which is also why I thought of this today). Here's an example:
Imagine if someone in the audience asks to see Figure 15 from your paper that you're giving a presentation on. Being well prepared, you have added all your figures at the end of your slides. Instead of pressing Forward a lot of times to navigate to Figure 15, you press the shortcut, type "figure 15" and hit Enter. Ta-da!

Needless to say, it's essential that this feature also works in Presentation mode.

Reproducible: Didn't try
Comment 1 Hans Chen 2011-04-29 15:59:11 UTC
Since this doesn't seem too hard, I'm interested in giving it a try to implement this if approved by the Okular developers.
Comment 2 Albert Astals Cid 2011-04-29 19:35:36 UTC
Can you clarify what do you mean with "Bookmarks"?
Comment 3 Hans Chen 2011-04-29 19:50:40 UTC
The bookmark feature in Okular. You add a new bookmark in Bookmarks -> Add Bookmark (Ctrl+B) and can rename bookmarks in the sidebar.
Comment 4 Albert Astals Cid 2011-04-29 20:12:12 UTC
Can you ellaborate a bit more in which would be your solution? i.e. how would it look, etc?
Comment 5 Hans Chen 2011-04-30 00:16:29 UTC
Created attachment 59447 [details]
Mockup of the dialog
Comment 6 Hans Chen 2011-04-30 00:28:02 UTC
I made a quick mockup (see attachment above) that shows the proposed dialog. First there is a search/filter bar, then a list showing the bookmarks and finally an OK and Cancel button.

In the mockup the user searches for a bookmark containing the string "Figure" and finds 6 matches. Adding " 1" to the search would hide all entries except for the first one.

When the dialog is opened the line edit (search bar) has focus and the list shows all bookmarks. If the user types something in the search bar, unmatched entries in the list will be hidden and the first match is automatically selected. The user can change the selection with the mouse or up/down arrow keys and press Enter (or double click in the list/click on OK) to jump to a bookmark and close the dialog. Pressing Escape (or Cancel) closes the dialog without jumping anywhere in the document.

The behavior can always be discussed, but this is basically how I want it to work.
Comment 7 Albert Astals Cid 2011-05-02 00:22:32 UTC
Seems good to me, have fun implementing it :)
Comment 8 Hans Chen 2011-05-02 02:24:10 UTC
Thank you for your fast replies Albert, it's very encouraging to get a fast response from a developer. I'm afraid that I won't be as fast at implementing this but I will do my best as much as my time permits. :)
Comment 9 Albert Astals Cid 2011-05-02 10:07:21 UTC
If you have questions do not hesitate to join the #okular channel in the irc freenode.net network or join the okular-devel mailing list at https://mail.kde.org/mailman/listinfo/okular-devel