Commits
- Commit:
693188cbff678ee0934f5fe5da91365614864888
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ui_require_input: take a fn pointer instead of the protocol number
- Commit:
e795e9355a607cbda3790e5c651c1a6f829e4326
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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
- Commit:
28cfdf8ff8b69c0baf35b300d8c4c88f1c0d9007
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add fringe prefix and allow to override offset for fringes alone
- Commit:
0aef305d12c879faacb155c7b7348e6dcd99f394
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add vi-like `~' fringes after the end of the buffers
- Commit:
84892515ec94204f7208e7492a31439f8c0f82e3
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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.
- Commit:
b7d58e0bff4eab3865592066a660901f10368f9a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
extract keymap-related stuff to its own header
- Commit:
57668c86437fcb90f5f22d11227c117189edb641
- From:
- Omar Polo <op@omarpolo.com>
- Date:
extract the key matching logic to its own function
- Commit:
fcd99a0d4765b480ed9fa260b253770a85313a1e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
switch to our new struct download for the downloads
- Commit:
1577540cfba6ba170eb61e67601af3c8fde3b9e6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add download and download.* line styles
- Commit:
3b5f459ef42c1d975ca5f15ed6402b5658f779f4
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add side window for downloads
- Commit:
bb9912eb4825aa88e6fd7804dc016d37e74422fc
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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!
- Commit:
a4921f5ddeba675743e95a1b2e55b5e1c85242ca
- From:
- Omar Polo <op@omarpolo.com>
- Date:
match actual order
- Commit:
a37d1a1c5a31a55446ae3f647aa2dfd9d27babd4
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move load_url_in_tab, switch_to_tab, new_tab{,_id} to telescope.c
- Commit:
55eb4d95383ce078ff680fc9c145359cc030b407
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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.
- Commit:
bc55cdb9b8678689c6f39504ccf17cf1d0f943d5
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix redirect & history
the reload command doesn't push the current url to the history
anymore.