Commits


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.


update comment


fix crash at strlcpy on macos


switch to our new struct download for the downloads


delay erase_buffer until parser_init The idea is to handle better non-displayable pages (like images), and keeping the old page until the server replies is the first step. It also simplifies the memory management btw.


support xdg basedir Use XDG-compliant paths unless ~/.telescope already exists. Provide a script to migrate to XDG-style directory for users who wish to do so.


propagate the safe_mode to the children


don't acquire the file lock in safe_mode


mention -C in usage()


add a safe/sandbox mode When enabled with the -S (or --safe) flag, prevent telescope from writing files to the disk.


reset download byte counter


make default download-path customizable


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!


gopher: don't skip the initial / some gopher servers requires the selector to start with a slash. Or maybe it's the other way around, and some servers are too much forgiving.


add some heuristics to interpret user-provided URLs