Commits


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.


improve error reporting


redirect on directories without slash


skip "." (and ".." if in /)


generate directory listings


handle IMSG_GET_FILE: serve local files IMSG_GET_FILE handles a path to a local file. fs now behaves like net, it sends a IMSG_GOT_CODE/META and optionally the file. This also includes a bit of refactoring: the send_file function was extracted from handle_get so it can be used in handle_get_file too.


always include compat.h first


allow about: pages to be locally overridden


open about:crash if last time telescope crashed


touch ~/.telescope/crashed if the connection to ui process dies


add about:crash


add about:license


move built-in pages to pages/*.gmi


cache the page title


keep track of the current tab and restore it after startup