Commits
- Commit:
5df02e0d8d9027c56450c94857949b3826454369
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix start_loading_animation usage
the idiom
if (load_next_page(...))
start_loading_anim(...);
is fundamentally wrong because `load_next_page' (or previous page, or
anything else that call into load_url) *may* load all the page before
returning (thanks to the cache, but not only, cf. load_page_from_str.)
Instead, let's call start_loadign_anim at the start of make_request so
it's always called in the right moment. Cache and other special pages
don't end up calling make_request anyway, and we already call
stop_loading_anim when a request finishes (or fails.)
move start_loading_anim up in make_request.
- Commit:
ed21a9a1021f38c009ef8a0ea6049587e3b4373b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
provide a way to bypass the cache
This changes the last argument of load_url to be a `mode' bitmap
instead of a boolean ``nohist''. LU_MODE_NOHIST is the old 1,
LU_MODE_NONE is provided just for readability and the new LU_MODE_NOCACHE
allows to bypass the caching when loading a page.
Telescope only uses the cache when:
- re-opens a closed tab
- navigates backward and forward in the history
All other situations result in the usual network request.
- Commit:
dc8e7bf65a6ca6deb0e7dec7ebcf22286604c321
- From:
- Omar Polo <op@omarpolo.com>
- Date:
cache only gemini:// and gopher:// pages
- Commit:
d5af38ccfe6c94218f4d7ab8d6aaf382e7dede80
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add an in-memory cache store
see github issue #1
- Commit:
05de8ac36a0646bbcf74d36b25b96244ac1290ff
- From:
- Omar Polo <op@omarpolo.com>
- Date:
append killed tabs when parsing session to preserve the order
The other option, less intrusive, would be to send the killed tabs
in reverse order, but it'd seems strange when looking at the session
file otherwise. So, add a `append' flag to kill_tab to optionally
append the killed tab instead of pre-pending it.
- Commit:
6c74799d01bfb8706f1972917da936fc2eee66da
- From:
- Omar Polo <op@omarpolo.com>
- Date:
allow to re-open closed tabs
Save closed tabs to a "killed tabs" queue, for up to a max of
"max-killed-tabs", and allow to re-open them. Keep the tab history
but not its content.
This integrates nicely with the session file, just add the "killed"
flag as alias for TAB_KILLED and put it in the ktabshead queue upon
initalization. It's thus possible to re-open closed tabs even after
telescope has been closed, and tabs keeps their history!
Add a new cmd, cmd_tab_undo_close, to try to re-open the most
recently closed tab and bind it to `u'.
While here, add a TODO for the tab history memory leak.
- Commit:
eb722b5028dcd686244ecbca2ff4bfb0a29a6c68
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move know_host parsing to the fs process and load the store via imsgs
Like previously did with the session file, now the main process doesn't
parse anything with the only exception being the configuration file.
With this in, the only bit from fs.h still used in the main process is
the path to the configuration file.
- Commit:
50f036824c2c9c860754f608c478c909642bdab1
- From:
- Omar Polo <op@omarpolo.com>
- Date:
avoid zero-timer hack by triggering session initialization with IMSG_INIT
- Commit:
1040cc7fd1cf748a26766e65b2a2fde17e27310d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
implement persistent tab history
The session file is now overloaded with the history info, that means
that upon startup telescope can repopulate each tab history!
The price to pay is that one can't start an old telescope with a new
session file, otherwise will get a lot of fancy '<' and '>' tabs...
- Commit:
92ce02e268a0aab7b86c441c9c01299d3af83d1d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rework handle_imsg_session into a switch on the imsg type
- Commit:
ea63925028272e2324146df682e86f4ca3c60a8c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
simplify the lazy tabs handling
it's cleaner to just toggle the lazy bit in switch_to_tab instead of
pushing that complexity in load_url. While there also try to simplify
the function and its documentation from unnecessary checks and extra
verbosity.
This also fixes a bug where Telescope ended up pushing the url on the
history *twice* at startup.
- Commit:
a599eaa672149b27faa373819f8beba58c056303
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add --corours as an alias for --color
Suggested by Florian, thanks!
- Commit:
714b1fcb787b10697bbe286d72c832281f09dec3
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix crash when --color is specified
found and reported by Florian, thanks!
- Commit:
bb28f1c2f6463f1e8881c90bb17a404cf7e5c3b7
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move parse_last_session to the fs process
~/.telescope/session was parsed in the main process before dropping in
the sandbox: that's no good. This moves the initialization of the ui
events later in ui_main_loop and makes so that the fs process, after
entering the sandbox, parses and sends the content of the last session
back to the main process; when it's done the ui gets loaded and
telescope is back rocking.
I'm plannig to re-use the struct session_tab during the save session
operation soon.
- Commit:
f6d7d0475ffd7281ee039ca4089f12401e426bee
- From:
- Omar Polo <op@omarpolo.com>
- Date:
update comment