Commits


code: add wrappers for common failure cases Certain calls to well-known functions sometimes result in similar error handling across the code base. Sometimes there's a need to centralise the failure case. Achieve this for common wrappers to often-used functions. The transformation is achieved via coccinelle, commited with this patch. Note that coccinelle can be told to ignore code blocks with comment delimiters. This transformation applies just to telescope's code, and not any of the bundled depdencies in telescope (libgrapheme).


include compat.h explicitly in all files don't do it in telescope.h, remove telescope.h from gencmd.awk and sort the headers in parse.y while here.


move struct cmd and cmds declaration in cmd.h


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.


move defaults.c prototypes in defaults.h


fix add_proxy path check IH_PATH is almost always defined, check that the path is the empty string.


use the new iri parser in parse.y for proxy validation


replace has_prefix with strncmp


drop unnecessary #include of phos.h


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


extract keymap-related stuff to its own header


sort token names


drop leading T from token names


allow newlines after { with the conflict/reduce fix, it become illegal to have a newline after {, which is not good.


avoid a shift/reduce conflict yacc/bison reports 8 shift/reduce conflicts because the rule styleopts optnl is redundant.


fmt (some missing space -> tab conversion)


correctly parse multiple attributes


set the protocol type for proxies we still support only gemini:// proxies still


load alternate config file per-TERM


make \n optional in some contexts


typo prefix "→ " " " ended up using both as prefix for the line and the continuations the first string given, ignoring the second argument. Found and reported by tgl, thanks!!


allow `bind map key cmd' in config file


second part of my "ignore \r"


ignore \r otherwise it would complain about a syntax error (it would treat \r as a string of one character.) Found by TheGnuserland, thanks!!


add support for custom protocol proxies