-
Notifications
You must be signed in to change notification settings - Fork 160
Feature request: continuous view #27
Comments
We could have a Displaying more than one page/image per window is not going to happen |
How would work that If Emacs could do the same amount of scrolling every time |
Like you described. |
Right now the lack of a continuous mode is the only thing that I miss from other viewers. From what you say, this is unlikely to work -- I guess because the buffer is only capable of displaying one image at a time? And is that a fundamental constraint? In any case I find the jump fro mthe bottom of one page to the top of the next hard to follow. It's too bad because otherwise pdf-tools is already way better than any other viewer! |
Matt Price notifications@github.com writes:
No, but there are some difficulties to overcome. I already have an idea |
I'd love the see this feature implemented... This is actually the only thing that keeps me from switching to pdf-tools (which is great btw ;)) |
+1 on the comments, this package is great and I'd love to switch to it, but the lack of continuous scrolling is what's keeping me back. |
+1 |
I think that it would be better if you could elaborate so that someone could get how to solve this problem and submit a merge request. |
Generally speaking, there are two issues:
|
Can't we display a limited number of images vertically(max 4 pages) in the same buffer and scroll it normally. When we hit the next page or the next next page we can remove images above and add new ones below. I mean it may be something like |
Spacemacs accomplishes a scrolling behaviour by remapping the keys but with no continuous effect. |
If I programmed in el I would do the request, but I don't. Use 5 images [0,1,2,3,4]. *e.g. [img1,img2,img3,img4,img5] -> [img2,img3,img4,img5,img??] |
Any updates on this? |
+1 on this feature request. I personally want also to see double page mode on pdf-tools (see #303). |
I think we should have a feature request in Emacs for an infinite background scroll mode. Which would help in solving this issue. |
@politza How about merging images of two pages together into a single image with the line break in between? I mean taking what is on the screen and merging it with the next page's image such that it feels like we scrolled just a bit even though we actually replaced the whole image. |
+1 for this feature. |
With the release of emacs 26.1 there is a new mode called |
|
+1 with this feature i could free myself from any other pdf-viewer. |
+1 from me, too :-) |
+1, I am evaluating switching to pdf-tools. So far, I find it awesome and it is highly likely for me to switch, even without this feature. It would be awesome to have it, it would help to keep the immediate context of the reading in one screen. |
Though I too would love to see this feature, "+1"-style posts send every subscriber a notification -- I (and I suspect many other subscribers) would greatly appreciate it if everyone instead gave the OP a thumbs up (by clicking the smiley face in its top right corner). (For those who haven't ran into it: GitHub's issue tracker can sort issues by the numbers of reactions they've each garnered -- ideally, IMO, we'd have explicit issue voting with votes displayed next to the number of comments as in isaacs/github#9, but unfortunately that didn't look like it was going to happen last I checked.) |
Would it be reasonable to use |
In my opinion, there is no good way to support multiple images per window without rewriting large parts of this package. I've started something like this, though I currently don't have much time to spend on it.
And yes, what you're proposing would mess up almost everything.
Also, it's not Emacs that is the problem, but the assumptions made by this package.
|
One of the main conveniences of continuous scroll mode is to visually keep track of the point you are looking at when the image scrolls up/down. My recent experience with ebook readers is that an animated scroll helps a lot on this regard. The animation needs to be "smooth" and "progressive" so that the eyes effortlessly keep track of the point of interest. About a year or two ago I looked at |
At least scrolling the window such that an image is only partially displayed if it could be completely displayed otherwise seems to be possible with recent Emacs versions. |
Just wondering if there is any possibility of ever seeing this introduced or if its abandoned at the moment? One page at a time is too clunky. I compiled Koreader for arch recently which allows continuous scrolling, and with some hacks, maybe half page scrolling, key based search and highlighting. The reason being, I get visual defects in Zathura. But of course the power of Emacs is still missing. And zoom is not working for me either in pdf-tools. |
Off the top of my head, you could also try the pdf viewer in the emacs application framework. |
Is it really "large parts of the package", or just essentially most of |
EDIT:
EDIT END I have created a dirty hack in this file.
in your user-config. Generally the selected buffer is the upper buffer. Although the hack might get extended to support control from both the lower and the upper buffer (in some "dual-buffer-mode", so that it could jump back to single buffer mode when needed, e.g. when searching or visiting some entry from the pdf-annot-list). |
So here is a little enhanced version of the file in the previous comment. Probably this minor-mode will get updated a few times over the next days, so keep your eyes on it. This mode works only from Emacs 27 (see previous commment). It includes keybindings to just work also on Spacemacs. https://github.com/dalanicolai/pdf-continuous-scroll-mode.el Just load the file and pdf-tools will start up in continuous scroll mode. You can then just toggle the mode on and of using Of course any feedback is welcome (possibly by opening an issue in the repo). |
For the ones still interested... I have just created a (not very, but still) simple sketch to obtain "real" continuous scrolling (i.e. in a single buffer). You can check it out here. It would be great if others would also like to hack on it. With |
Another project would be to replace |
For some people adding Python as a dependency is not trivial. |
(missing link: https://github.com/dalanicolai/pdf-continuous-scroll-mode.el ? ) |
@emacsomancer Thanks for pointing that out, I have added the link to https://github.com/dalanicolai/vimura-epc now |
Thanks for this package. The following code will help to install this package since its not available in melpa, It does by first installing quelpa and then using it to install this package.
|
Is it feasible to implement viewing the top of the next page when you reach the end of the current page? While reading e-books and scrolling down with
Space
as you advance it is unpleasant that when the bottom of the page is reached the line that was previously at the bottom of the screen now it can be located anywhere depending on the zoom level etc. Other pdf viewers solve this by showing the top of the next page below the current one and thus always advancing the same amount of space on each scroll operation.Ditto for scrolling up.
The text was updated successfully, but these errors were encountered: