After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 169903 - History / back button
History / back button
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
git master
Other All
: Normal enhancement
: ---
Assigned To: Evince Maintainers
Evince Maintainers
: 302892 304970 308330 309059 321772 333191 354011 412612 424833 587942 588846 607326 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-03-11 04:12 UTC by Laurent Martelli
Modified: 2013-11-19 19:09 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
evince 'jump' pages (58.36 KB, image/png)
2006-05-30 07:55 UTC, Bryan W Clark
  Details
patch to add support for page history back/forward travelling (15.75 KB, patch)
2010-07-04 09:15 UTC, wucan
needs-work Details | Review
patch to add support for page history back/forward travelling(v2) (13.17 KB, patch)
2010-07-06 05:31 UTC, wucan
none Details | Review
patch to add support for page history back/forward travelling(v3) (13.84 KB, patch)
2010-07-15 14:09 UTC, wucan
reviewed Details | Review

Description Laurent Martelli 2005-03-11 04:12:15 UTC
I would love to have a history feature like in web browser, with the ability to
go back to the page I was before I click on a link or in the index.
Comment 1 Bryan W Clark 2005-03-11 07:10:37 UTC
Same deal as in Bug 169902  Adding features based on users wishing for a feature
is the best path towards bloat.  Adding features that solve problems users are
having is the way to creating simple yet elegant programs.
Comment 2 Laurent Martelli 2005-03-11 15:22:10 UTC
Well, the situation is like for bug 169902. Browsing through a very big
document, I sometimes need to go somewhere else in the document, to find more
information about someting I'm currently reading, then go back to continue where
I was before. 
Comment 3 Nickolay V. Shmyrev 2005-05-03 19:25:14 UTC
*** Bug 302892 has been marked as a duplicate of this bug. ***
Comment 4 bugreports 2005-05-03 19:49:22 UTC
Ok, so why would I like to have that feature:

- For reference documents where I am browsing through the document searching for
some information, I often jump from section to section (following a link which
is pointing to additional information in the same document) and then coming back
to the previous original section reading on. This is especially useful when
reading the table ob contents.

- For normal scientific papers sections or references are often linked. I click
on them look what is there and want to go back.

So much about the usage pattern. However such documents do not happen *very*
often (like .pdf documents with index).
Comment 5 Nickolay V. Shmyrev 2005-05-21 08:07:59 UTC
*** Bug 304970 has been marked as a duplicate of this bug. ***
Comment 6 Nickolay V. Shmyrev 2005-06-19 20:41:33 UTC
*** Bug 308330 has been marked as a duplicate of this bug. ***
Comment 7 Olav Vitters 2005-06-26 16:46:59 UTC
*** Bug 309059 has been marked as a duplicate of this bug. ***
Comment 8 Reinout van Schouwen 2005-06-26 20:45:05 UTC
Let's not make the same mistake as in web browsers; there should be some way of
recording a history of viewed pages and it should be possible to create
bookmarks, which would be nothing but persistant history items.
Comment 9 Bryan W Clark 2005-07-08 18:00:47 UTC
Working on a system with jrb, will give more details soon.
Comment 10 Jaap A. Haitsma 2005-08-13 13:05:22 UTC
The current page back and forward button in the toolbar could be replaced by the
ones proposed.
I think people intend do not use the current page back and page forward button
much but use the PageUp/PageDown of the keyboard or the scroll wheel or the
scroll button.
Furthermore people are used the back and forward behaviour of browsers.
Comment 11 Christian Persch 2005-08-14 17:56:30 UTC
Apparently back/forward based history navigation isn't the best, see Epiphany
bug 161872 for a nice idea.
Comment 12 Amadeus 2005-08-16 12:27:50 UTC
I would say that the technology used for back/forward would be bug for it self.

Temporal Logic that is suggested on bug 161872 is still a back/forward button.

This bug it about Previous/Next and Back/Forward.
Comment 13 Nickolay V. Shmyrev 2005-11-18 06:15:45 UTC
*** Bug 321772 has been marked as a duplicate of this bug. ***
Comment 14 Pablo Rodríguez 2005-12-15 11:00:36 UTC
Sorry guys, but imho this is an essential feature and I wonder why evince hasn't
implemented it already.

gpdf had back/forward, previous/next and first/next features. Wouldn't it be
possible to implement that into the next release of evince?
Comment 15 Nickolay V. Shmyrev 2005-12-15 15:52:38 UTC
Sorry Pablo, this feature requires a lot of work and won't go into the next
release. 

Before writing patch anyhow there should be consistent proposal about that, just
Forward/Back is certainly unacceptable. The help on reworking such proposal
would be greatly appreciated.
Comment 16 Nickolay V. Shmyrev 2006-03-02 21:47:37 UTC
*** Bug 333191 has been marked as a duplicate of this bug. ***
Comment 17 Rui Matos 2006-03-15 11:54:27 UTC
(In reply to comment #9)
> Working on a system with jrb, will give more details soon.
> 

Any updates?

The ability to hit Alt+Left Arrow to go back would be very welcome. Note that I'm only talking about going back when you "jump" through an internal link of the document. Regular scrolling, I guess, is much harder to handle in a back/forward system and would probably require a bookmark system or maybe automatically record a page the user has been seeing without scrolling for the last N seconds (large N).
Comment 18 Bryan W Clark 2006-05-30 07:55:53 UTC
Created attachment 66457 [details]
evince 'jump' pages

Sorry for such a delay.  This was the old mockup I had for this design. 

The idea here is to show that we don't intend to give < back and forward > buttons which seem to really confuse the navigation system we have of page up / down. 

What we're intending to do here is allow people to click a link that jumps them somewhere (deeper) in the document.  After they've been jumped to a new location we insert the 'jump' bar that shows them where they came from and where they are.  A person could continue to jump around pages [1] within this 'history' and eventually go back to the original.  Interaction is similar to the way the file chooser bar works which is why I used that widget to show this.  Since this is just a mockup prototype using the same widget isn't necessary.

[1] In testing on paper it looks like there will be a need for hiding or closing this bar.  At the same time it might be advantageous to hide and reshow it in the same state it was left in.

When someone goes back to the original page we don't want to hide this right away and we especially don't want to clear the 'history' right away.  It seems natural to leave the bar around until the person navigates away in a different method.

When we hide this bar it would have to retain it's state information in a similar way to the epiphany or firefox find bar.  Such that you could navigate away from the origin page, but then go back to going through that history set.  Of course this brings in the need for showing the bar in some non-automatic way like assigning a key code to bring it up.  While not opposed to that, I don't think it's an ideal plan.
Comment 19 Bryan W Clark 2006-08-07 04:52:52 UTC
Just want to add that people should continue to iterate on ideas for a solution to this.  I'm not completely sold on this mockup itself, however I think it's heading in the right direction.  Talk on the mailing list, attach ideas here and come up with something new!
Comment 20 Nicholas Miell 2006-08-07 05:13:43 UTC
Just want to note that this feature is critical, the continued lack of it after a year and a half is completely embarrassing, the design mockup is terrible (people already know and expect the browser Back/Forward design and consistently placed buttons are handy from a muscle memory perspective), and kpdf already works today (I switched after some genius made "Previous Page" and "Next Page" in Evince require Ctrl in addition to PageUp and PageDown, plus the fact that Evince can't open PDF files without a .pdf extension was also extremely irritating).
Comment 21 Reinout van Schouwen 2006-08-07 08:55:12 UTC
Nicholas, unconstructive comments really don't help getting the fix of this bug any closer.

Would it be crazy to "overload" the Previous button to not mean "pagenumber-1" per se, but _really_ the "previous page", so also the one you were viewing before you clicked a hyperlink? It may reduce the predictability of the Previous/Next button behaviour a bit, but that could be offset by the much increased "do what I mean" factor.
Comment 22 Snark 2006-08-26 19:52:11 UTC
Hmmm... I was about to report another "bug" of the same sort. The use-case is that I'm reading scanned documents which have no index, and make backward references quite often ; this means that I have to check the number of the page I'm currently reading, and go backward until I find said reference, then use my brain-stored bookmark to go forth again.

Would it be possible to have some sort of bookmark (not stored in the document) which would make this less painful ? (Well, the best would probably be writing the index as I read, but that looks harder)

Most of the documents are djvu, others are pdf, and some are ps, if that counts.
Comment 23 Bryan W Clark 2006-08-28 05:02:06 UTC
(In reply to comment #20)
> the design mockup is terrible
> (people already know and expect the browser Back/Forward design and
> consistently placed buttons are handy from a muscle memory perspective)

So the issue here isn't being consitent with a certain type of button or widget people have seen, but providing a mechanism that works correctly with the types of documents you see through evince.

The back/forward buttons on web browsers work great for going from one location to the next because it's easy to understand that.  Similarly if you were walking in a mall and stopped at one shop, then went back to it later.  

Obviously the difference here is that you're not going back/forward in locations as much at changing area with in a single location (the viewed document).  While you could argue that you're changing 'locations' with in the document the argument doesn't hold because it's the difference that people percieve that matters.  When you travel from one web site to another there is an obvious change that takes place, jumping within a page on a document isn't as dramatic a change.  

Several examples of this problem creap up in different interfaces.  You can see this with HTML anchors and how they confuse people using a browser.  They clicked on a link which took them to a new area in the document they were viewing.  Then when they click the back button they are still at the same document and are often confused by this.  The back button usually brings them to the last document they were looking at, however the anchor link changes that and in usability tests you can see people are confused by this alternate behavior created in the back button.  Unless you understand the technology behind it all, there doesn't seem to be an obvious reason.

Another example is when file browsers use both directory up and back/forward buttons.  This mix of buttons requires you to keep the history stack of changes in your own head in order to know where the back button will take you.  Sure it's obvious that it will take you where you just were, but before that?  You could have jumped up and down directories so your back history jumps around a bit without taking you some place useful.

Anyway.  After watching a number of people use internal links in PDF documents and use PDFs for refernces I'd gotten the sense that what might work best is just a rolling history.  Not a back / forward button, but a history that just showed you what pages you looked at, maybe what pages you've looked at most.  I haven't had much time to work on the details, but that's what the original mockup was working towards.  The pager used in the file chooser gives you a back / forward history context with out the ambiguous back / forward buttons.  By just showing the locations you can make a much better decision about where you'd like to get back to.  

There still requires lots of thought about how this works into the interface and how you use it.  So if anyone likes this train of thought I'd love to see (a little less flak and ;) someone run with the ideas in that direction.  Catch me on IRC or email.
Comment 24 Carlos Garcia Campos 2006-09-02 20:28:06 UTC
*** Bug 354011 has been marked as a duplicate of this bug. ***
Comment 25 Carlos Garcia Campos 2006-09-02 20:31:27 UTC
There is another mockup attached to bug 354011 which is similar to the one proposed by Bryan here. 
Comment 26 Jose Hevia 2006-09-03 20:09:42 UTC
Hi!
I think the back-forward button is very difficult to implement, you need to create  a entire history system(!) and fix all the bugs that brings all the possibilities(!!!!!).This is going to take a lot of time, and once finished, selected approach could be too complex and don't work.
 
In an Internet brownser it works because pages are different documents, but using it for the same documment doesn't make sense to me.You need to add a complete set of commands that break evince simplicity.

I love tab brownsing because is so simple, and fast, you see what you want, and click. I consider it relatively easy to implement because you only use pre-made components tabs, and the information you need to store is very simple.It could be done in a single day:
-Someone makes a new tab: e.g File->save as tab.
-The program only stores the page number. e.g in a list and binds it to a tab ID.
-Program creates a new tab, and puts in it "_(Page) $number"
-Program creates an event in tab, when clicked update the screen with page number.The code is already done with the numeric text entrie.

Further complexities could be added later,like changing the tab name if desired, or adding a colored square icon so you can remember the "color" of the page you saved, or drag an drop support.

I have done something like this is in a program I made, and believe me, is a revolutionary change for navigating digital documents. It breaks the mental barrier of navigating digital documents.(mind knows it is a lot of effort rigth now).
 
Comment 27 Odin Hørthe Omdal 2006-10-19 21:11:48 UTC
Came to bugzilla to report the same feature request. ALT+left would be extremely useful for the use cases already mentioned. It really solves a great problem. Right now we are using acroread because of this missing feature in Evince.

Both the mockup and changing back-button are great; as long as it gets done. It's not possible to use Evince for reading big (1000 page) documents at this stage. A "hidden" key-binding (ALT+left) would do the trick for most of the powerusers while a more friendly method is being developed.
Comment 28 Jason Merrill 2006-12-08 15:15:07 UTC
Another vote for this feature.  When I follow a hyperlink in a pdf, I would like to be able to get back to the source of the link without having to find it again manually.
Comment 29 Wouter Bolsterlee (uws) 2006-12-08 15:29:58 UTC
There's preliminary (not yet finished) support in CVS.
Comment 30 Pablo Rodríguez 2006-12-19 20:29:24 UTC
I experience something weird when I select go to previous page after follwing a link from the table of contents with hyperlinked destinations.

Let's take the following document: http://ousia.iespana.es/pdf/tesis.utf8.pdf. Click on any link on pages 9-10 and go to the previous or next page pressing Ctrl+PgUp or Ctrl+PgDown. It goes to page 8 or 11, instead of the right previous or next page.

This happens with evince-0.7.0 and it only happens when evince goes to previous or next page right after the link is followed.

I hope my description is clear and it helps to fix the bug.

Congratulations for your excellent work,


Pablo
Comment 31 Pablo Rodríguez 2006-12-21 14:04:49 UTC
What I discovered (and I didn't realized before) is that evince doesn't switch the page number after an internal link has been clicked. Page number after pressing a link is not the link destination, but the link origin.

I'm afraid that it is a bug.

Thanks for your work,


Pablo
Comment 32 Nickolay V. Shmyrev 2007-02-27 18:02:54 UTC
*** Bug 412612 has been marked as a duplicate of this bug. ***
Comment 33 Ghee Teo 2007-03-08 12:30:42 UTC
Any chance of this being worked on for the next release?
Comment 34 Nickolay V. Shmyrev 2007-03-08 12:37:03 UTC
Ghee, it's already in 0.7.2, what's the problem?
Comment 35 Ghee Teo 2007-03-08 12:50:59 UTC
Nickolay,
COOL! Didn't know that it is in 0.7.2 already :)
Since this bug doesn't show it is fixed, may be time to update bugzilla :)
Thanks for letting know. Now it is time to try out 0.7.2.

Comment 36 Pablo Rodríguez 2007-03-24 12:46:46 UTC
I finally found the Back button in the toolbar (I'm using evince-0.8.0).

I would suggest two improvements. It would be very useful to have a Forward button also and to have shortcuts for both Back and Forward (Alt+Back and Alt+Forward would be fine [or Ctrl instead of Alt]).

Nickolay, thanks for your excellent work.
Comment 38 Dave Gilbert 2009-03-14 16:01:18 UTC
I'd like multiple bookmarks/notes - as a vi user I quite like the idea of them being identified by a letter or number and being able to jump to mark 'a' with a couple of keystrokes.  My most often case of wanting to do this is to get back to an index to in a big document or back to a particular chapter.

I don't need the ability to save them.
Comment 39 Nickolay V. Shmyrev 2009-07-07 14:55:11 UTC
*** Bug 587942 has been marked as a duplicate of this bug. ***
Comment 40 Nickolay V. Shmyrev 2009-07-17 16:05:59 UTC
*** Bug 588846 has been marked as a duplicate of this bug. ***
Comment 41 Brian Mattern 2009-12-08 08:15:04 UTC
After reading this thread, I found the "Back" button I never realized Evince had.
Would it be possible to keep the location within a page that one was at when a link was clicked? (Also, it looks like the location information about the link's destination is also lost when copied into the Back menu).


To reproduce:

1) Open any scientific paper that links equations and bibliography entries.
   e.g. http://arxiv.org/pdf/0912.1027 (random new paper on arxiv.org)

2) Scroll down a bit and click on a number in parentheses to jump to the referenced equation.

3) Scroll to another page.

4a) Select the equation's page from the "Back" dropdown.

5a) Instead of jumping to the equation itself, the top of the page is selected.

Alternatively,

4b) Select the page at the top of the Back list to return to where you were before clicking the link in step (2).

5b) The top of the page you were on is selected


The result of (5a) seems like a definite bug. In ev_window_add_history(), if a link is passed in, a new EvLink is created with supposedly the same action. So, this seems like it would imply the same location (which is part of EvLinkDest inside the EvLinkAction).

Changing the result of (5b) is a feature request.

For me, the primary need for "back" functionality is to return to the one place I was before clicking a link (I want to glance at the equation / reference being referred to, and then continue reading). The rest of the history stack is much less important. 

Anyway, other than the fact that I have to search to find where on the page I was before clicking the link, this functionality has existed for almost 3 years without me finding it (and apparently many others given the duplicate bugs). So, Shouldn't the status of this bug be something other than "NEW"? Maybe also put something in the "Go" menu instead of just burying it inside the toolbar config?
Comment 42 Joachim Breitner 2009-12-08 10:15:05 UTC
After this comment, I looked harder for the back button, and after a while, indeed, here is how you get it: Right-click on the toolbar and select „Toobar“. There you find a „Back“ button that you can drag onto the toolbar.

Here, the Back button actually has the same icon as the page down button, which seems to be a bug. Other than that, I think this bug can be closed, right?
Comment 43 Sebastian 2010-01-29 17:58:01 UTC
thanks very much for implementing this feature. I was delighted to find the "Back" button in the toolbar, however, since I don't use the toolbar (I have it hidden by default to optimize viewing area), I wonder if there was a keystroke to it too?

Several people here recommended [Alt]+[left] (similar to a popular web browser). For me at least, that doesn't seem to work. And I don't find anything in the documentation. May I also propose vim-style jumps: "o" jump back, "i" jump forward. Useful "vimitations" (h,j,k,l) do exist already! 

Oh and are you aware of Vimperators nice follow ("f") option? But I admit, that's a bit overshoot... :) 

Thank you for considering the needs of keyboard users.
Comment 44 Paul Brauner 2010-04-23 09:25:25 UTC
As Sebastian, I wonder if there is a way to attach a keyboard shortcut to that back button.
Comment 45 wucan 2010-07-04 09:15:33 UTC
Created attachment 165211 [details] [review]
patch to add support for page history back/forward travelling

The current Back Icon History is not so handy at least for me. Because it only record internal link or indexing page change, but what I need is as in other reader's.

So I write a simple patch to add history travelling which behavior like other readers have had. It use a ring buffer(hardcoded max 128 entry) to manage history pages, and I had add 2 shortcut:
 * Ctrl+V for Forward, and
 * Ctrl+B for Backward
(I want to use the Ctrl+F for Forward, but it already used to finding.)

How about it?
Comment 46 Carlos Garcia Campos 2010-07-05 08:45:55 UTC
Review of attachment 165211 [details] [review]:

Thanks for the patch, but you are duplicating the history feature instead of fixing the current one. Take a look at shell/ev-history.c that is used in ev-window.c. Also, history should be entirely in the shell, not in libview.
Comment 47 wucan 2010-07-05 09:49:08 UTC
Yes, you are right, we should enhance the current one. But it seems it's not an easy job to be done, from the history of this history things, I thinks.

Always, this is a basic feature we should support, else we'll lost in the world.

So I will think it more deeply.
Comment 48 wucan 2010-07-06 05:31:10 UTC
Created attachment 165324 [details] [review]
patch to add support for page history back/forward travelling(v2)

I had reconstruct my history traveling patch, now move all codes under shell/ , and the code looks more cleaner. 

The shortcut key had changed to:
 * <alt><shift>Left for backward
 * <alt><shift>Right for forward

I think this history travelling feature is a complement to current "Back" history.

Should I rename the ev-page-history, or should I plug it into ev-history? But I really think they are two things.
Comment 49 Carlos Garcia Campos 2010-07-13 10:45:14 UTC
This should be merged into our current history implementation, why are they two things?
Comment 50 wucan 2010-07-15 14:09:10 UTC
Created attachment 165962 [details] [review]
patch to add support for page history back/forward travelling(v3)

Because my added page history is just gave the same behavior as other reader had gave us, and it's so stupid! But the current history is smart!

As you suggested, I had put a ev-page-history instance in ev-history, and add some wrapper api to access it.
Comment 51 Carlos Garcia Campos 2010-08-03 11:15:18 UTC
I still don't see the point, with your patch we have two different ways of doing the same thing, the olod one using the toolbar button and the new one with new menu entries.
Comment 52 wucan 2010-08-19 01:50:32 UTC
ok, let it be.

sorry for my later!
Comment 53 Benjamin Kellermann 2011-02-16 07:27:36 UTC
bug 424833 seems to be a duplicate…
Comment 54 Maciej (Matthew) Piechotka 2011-02-16 10:12:48 UTC
*** Bug 424833 has been marked as a duplicate of this bug. ***
Comment 55 Taylor Braun-Jones 2011-05-27 01:47:53 UTC
I wish I found this feature sooner! Which brings me to my my first issue with the implementation:

(1) the navigation history feature is not discoverable. It is the only toolbar button that does not have a corresponding menu entry and the toolbar button is not even enabled by default. I suggest enabling it by default and adding something under the Go menu like:

  Go
  --------
  Previous Page
  Next Page
  --------
  First Page
  Last Page
  --------
  Back ->  Last Location       Alt+Left
           Last Location - 1
           Last Location - 2

(2) the icon should be the standard GNOME back icon (left-pointing arrow)

(3) a key binding should exist (the de facto standard being Alt+Left and Alt+Right)

Thanks!
Comment 56 José Aliste 2011-05-27 13:09:28 UTC
(In reply to comment #55)
> I wish I found this feature sooner! Which brings me to my my first issue with
> the implementation:
> 
> (1) the navigation history feature is not discoverable. It is the only toolbar
> button that does not have a corresponding menu entry and the toolbar button is
> not even enabled by default. I suggest enabling it by default and adding
> something under the Go menu like:
> 
>   Go
>   --------
>   Previous Page
>   Next Page
>   --------
>   First Page
>   Last Page
>   --------
>   Back ->  Last Location       Alt+Left
>            Last Location - 1
>            Last Location - 2
> 
> (2) the icon should be the standard GNOME back icon (left-pointing arrow)
> 
> (3) a key binding should exist (the de facto standard being Alt+Left and
> Alt+Right)
> 
> Thanks!

Yeah, we haven´t update evince UI in a long time, so we are discussing now how to improve the UI and I think we are adding something very similar to what you are proposing here. One more improvement, the back button should be more like in Firefox where if you click once, you don t get the menu, but go directly to the last page visited. If you click longer, or in the expander, then you get a menu of the page visited. Will upload mockups so we can get UI review from the Design team
Comment 57 Carlos Garcia Campos 2011-05-27 14:58:30 UTC
I made this mockup a long time ago when we started to discuss how to improve the history UI.

http://carlosgc.linups.org/files/ev-history.png

See bug #554585
Comment 58 Wouter Bolsterlee (uws) 2011-05-27 20:55:22 UTC
Epiphany has a nice GTK+-only implementation for this type of toolbar button+drop down. Perhaps it can be reused?
Comment 59 Reinout van Schouwen 2011-05-29 23:32:35 UTC
(In reply to comment #58)
> Epiphany has a nice GTK+-only implementation for this type of toolbar
> button+drop down. Perhaps it can be reused?

Note that Nautilus 3.0 uses a Firefox-like click-and-hold dropdown menu on the back button. Not that I think it's necessarily a better approach though...
Comment 60 Carlos Garcia Campos 2013-02-17 19:09:57 UTC
I've finally added classical back/forward buttons to the new toolbar similar to the ephy and nautilus ones. Please, open new bug reports for any issues you find with the new history buttons.
Comment 61 Germán Poo-Caamaño 2013-02-18 09:39:52 UTC
*** Bug 607326 has been marked as a duplicate of this bug. ***