Can we change the default options globally?
kalekje opened this issue · comments
Example:
luakeys = require'luakeys`
luakeys.options_defaults.convert_dimensions = false
etc. for each option
In contrast to your suggestion, I named the global configuration table default_options
:
luakeys.parse('dim=1cm') -- {dim = 1864679}
luakeys.default_options.convert_dimensions = false
-- or:
-- local defaults = luakeys.default_options
-- defaults.convert_dimensions = false
luakeys.parse('dim=1cm') -- {dim = '1cm'}
Great, thank you for implementing this.
Breaking change in v0.6:
Instead of
luakeys.default_options
you have to write
luakeys.opts