Commits


move unicode_isgraph in minibuffer.c (codepoint_isgraph)


reset timer id after cancelling it


convert telescope to use ev instead of libevent libevent is a very cool library, I like the APIs and enjoy using it. However, telescope is not as large and doesn't have as many file descriptor, so libevent is quite ``too big'' for our needs. ev started as a small event loop on top of poll(2) for amused, and can be used here too, it just needed to grow the ability to handle several timers, as we need quite some on telescope (in fact, we use more timers than fds!)


typofix


guard against malformed default-search-engine


add cmd_search to search using a search engine This adds a new command `search', bound by default to `s', that prompts for a query and loads and consult the ``oracle'' (the search engine) using default_search_engine (which will be made customizable.) It also temporarly supports only gemini URLs. Feature requested by -fab-, thanks!


remove half-bake idea turns out telescope is not ready to generate certificate in the ui process, a separate helper will be added for it, so remove this option for now.


some headers cleanup try to not include headers from headers, and remove some redundant include. This helps in modularizing the codebase and also helps during incremental compilations.


move struct cmd and cmds declaration in cmd.h


tweak use-certificate yornp question


load and optionally remember client certificates This adds use-certificate, a user function to start using a certificate or switch to a different one. It asks whether to persist the certificate, if not it will only be used for the current session. use-certificate is implicitly called when the server replies with a 6x status code.


bp_select: call exit_minibuffer() when done Currently it is still fine to access ministate after exit_minibuffer(). In the future, if we ever support recursive minibuffers it won't. So, defer the exit_minibuffer() call and use minibuffer_compl_text() instead of peeking into ministate. While here, also add the "Bookmarked" message when it successfully bookmarked the page.


fix bookmark_page() failure check it returns -1/0 not 0/1


rework the history management It was a huge pile of spaghetti with useless utility functions and lots of code reaching into the "data structure" (if you can call it so) to do stuff. Instead, provide a "module" with a clean interface and noone reaching in the insides.


apply load-url-use-heuristic for command line arguments too This semplifies a bit the handling. humanify_url() now takes the base URL which we can then use when not using the heuristics. Command-line arguments now take an implicit base of <file://$PWD/> when the heuristics are disabled, so that foo.gmi resolves to the local file even without <./>. See github issue #10.