Commits


add some heuristics to interpret user-provided URLs


style(9)


improve crash detection Create a file ~/.telescope/crashed on startup and unlink it on shutdown. If it's present on startup, it means that last time we crashed. It's like the ``dirty'' bit on filesystems to guard for unproper unmounts.


we don't crash anymore on invalid tab ids


simplify comment


drop unused headers


move more stuff outta telescope.c


move load_url_in_tab, switch_to_tab, new_tab{,_id} to telescope.c


add autosave timer for the session This is achieved by calling `autosave_hook' in interesting places, like new_tab or free_tab. It'll set up a timer to later persist the session. This is particularly useful to avoid loosing tabs on the event of a crash or unexpected system halt, or other similar event.


improve gopher item type matching URLs like gopher://example.com/1 weren't matched as type 1 before and worse, they weren't really loaded, even thought the spinner started (that's behaviour is from push_button). Now matching of items types is better and a (simple) error page is loaded on unknown types selector.


don't mark about: pages as verified Initially telescope only supported about:* pages and gemini, so it made sense to set TS_VERIFIED on about pages. Now, also various non-tls protocols and TS_UNKNOWN is used more, so is more coherent to use it also for about pages.


handle file:// URIs


add make_fs_request


fix handling of query part in gopher URLs The computed request was discarded because we passed `path' to make_request. Passing NULL here makes the net proc use our computed request string. There was an error in the computed request btw, where \r\n were strcpy'd instead of cat'd.


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.