Allows one to bind `composite tabprev | sleep 100 | tabclose #` and have
the command work; `composite tabclose | tabprev` also works but looks a
little janky. The sleep is required in the first command so that the
value of `#` has time to update.
The problem with the current :viewsource is that it loads a page in
which Tridactyl is not loaded. This commit fixes this by enabling a new
setting, "viewsource" which can be set to either "default" or
"tridactyl". If "tridactyl" is selected, then :viewsource will load the
source code of the HTML page in the current page instead of redirecting
the user to the view-source:// version of the page.
hintmode = "simple" is the default hinting mode, naming hints using
the hintchars configuration. It is the current tridactyl behavior and
is preserved unchanged.
hintmode = "vimperator" is a new hinting mode that allows the user to
filter hints using non-hintchar :alnum: characters. Hints with targets
whose html does not contain these characters as a subsequence (not
contiguous) will be filtered out.
- set, unset, get now all support an arbitrary depth of keys
- set has a less confusing argument order
- getAsync added: it will sleep until the config is read from disk for
the first time
Config isn't really fit for purpose. Should consider custom objects (for
recording type, defaults, etc) and maybe decoupling internal
representation from UI.
Found a couple of bugs as well:
excmds.ts: set() Could write a string to the config where the config
expected an array (Fixes#275)
config.ts: If both sync and local storage are in use the behaviour is
not intuitive.
This is useful for suppressing spew, but still allowing easy debugging
when needed, without rebuilding.
To use, use excmd:
setlogginglevel <prefix> <level>
Where the level is one of:
- never: never log
- error
- warning
- info
- debug: most verbose
Output is directed to console methods "error", "warn", "log", "debug".