Commit Briefs


Omar Polo

save and restore scroll position

Save the offset to the first and current line of the buffers and restore it when the page is loaded. This restores almost the exact viewport: we save the offset of the *real* line in the document, but they get wrapped before being displayed, so the actual restored position may be slightly above from the original one (think of a long paragraph that gets wrapped over multiple visual lines.) In practice, this isn't a drawback but only an improvement over the current behaviour. In the future we could save also the offset *inside* the line, to restore the exact position, but that felt unnecessary for now. Persisting the postion on the session file ensures that even when re-opening telescope the scroll position is correct. There are some very active pages, such as antenna or other aggregator, where this feature doesn't really work well if you re-open the page after a while, since new links are available, but otherwise is a god sent! See also github issue #1




Omar Polo

use download_cols to wrap the text in the download buffer

download_lines is a very small value, for a normally sized terminal is exactly 5. This was the cause behind the download pane glitch, 5 was used as *column number* for the reflow. Now, to be honest, the exact width passed to wrap_page is not important. wrap_page will only wrap the size string, which we know is less than or equal to FMT_SCALED_STRSIZE-1 (6). We could also hardcode the value eventually, but using download_cols reads better.






Omar Polo

add side window for downloads


Omar Polo

handle_maybe_save_page: prefill with the path

improve the download procedure by pre-filling the minibuffer with /tmp/<file-name>. At the moment ``/tmp/'' is hardcoded. Idea from a conversation with hurricane, thanks!


Omar Polo

match actual order



Omar Polo

new_tab: allow to add the tab after a current one

this allows cmd_push_button_new_tab to open the new tab right *after* the current one, instead that always at the end.


Omar Polo

fix redirect & history

the reload command doesn't push the current url to the history anymore.