Questions:
- Are there Ebook readers that can show many pages at once?
- Can you get this effect in an editor (Emacs/Vim/VSCode) so that you can review a long code file without scrolling too much?
Questions:
- Are there Ebook readers that can show many pages at once?
- Can you get this effect in an editor (Emacs/Vim/VSCode) so that you can review a long code file without scrolling too much?
I find scrolling all the way to the bottom of a thin column to get old fast, however, especially when the article is longer than can fit into a single page.
It's pretty easy to constrain the height of the article text div element to be slightly less than screen height (using `height: 100vh`, or maybe slightly smaller if you have a header), which makes the columns fit vertically within the screen but causes more columns to appear off-screen to the right. However, you can override PageUp and PageDown to scroll left and right instead: https://github.com/publicdomaincompany/scroll/issues/10#issu....
That's pretty satisfying if you like to read in thin columns - almost like a poor man's PDF but completely in HTML.
.col-style {
columns: 250px;
height: 100vh;
}
<div classes="col-style"><p> everything in here will be in columns of 250px width and the scroll bar will be going to the right instead of the bottom</p></div>
try it out on the linked articles <body> element :) (you'll also have to remove the margins on that page however, as they're using negative values)In Emacs, it is possible by using "follow-mode":
Open a "large" file.
M-x follow-mode
C-x 3 ;; to split vertically
And adjust splits width as many times needed.
I usually use 3 splits with "visual-line-mode" enabled.