Commits


add default-protocol knob So that now one can decide to assume a finger:// or gopher:// protocol instead of gemini:// for load-url.


simplify if/elseif/else


add boolean variables The 'if zero/nonzero then...' is a bit annoying. Add proper booleans to the grammar of the config and use them when appropriate. Makes the description and the review of configuration files easier. This means that the old set olivetti-mode = 1 can now be written as set olivetti-mode = true Compatibility with the previous integer values will be kept for a while.


sort vars


add the up, root and home commands These navigates respectively one level up in the path hierarchy, to the root directory and to the "home". The home is considered to be the first path component in the form of ~username. `home' is yet to be implemented.


add load-url-use-heuristic knob This is still WIP and may change before the next release. It could be worthwile to resolve the URLs in load-url using the current page as base, so that while browsing <gemini://a.org/b/c>, using load-url to go to "/" would load <gemini://a.org/> instead of <file:///>. The new option `load-url-use-heuristic', if unset, provides exactly this behaviour. It is still a bit rough to use, as for e.g. loading <d.net> would now yield <gemini://a.org/b/d.net> instead of <gemini://d.net>. Will need more work in-tree, but for now add it so we can reason about it. See github issue #10


fmt


replace has_prefix with strncmp


fmt


add mini-kill-whole-line


bind write-buffer to C-x C-w and add `w' alias


reply-last-input: reply input requests on demand Telescope now remebers the last URL (per tab!) that replied with 1X (input request.) The new command reply-last-input allows to resend a query to that URL. It's particularly useful with capsules that make a heavy uses of 10 replies (search engines or similar, interactive pages, etc) because it both saves a network roundtrip and the user from looking for the "search" link all across the page ;-) idea from a conversation with thfr@, thanks!


move util.c declarations in utils.h it's not spelled `util.h' because otherwise it'd get included instead of /usr/include/util.h


simplify the fringe vline print_vline can handle a NULL .line, so I can avoid the long comment and the ugly cast.


change fringe defaults: always enabled and ~ as prefix