Closed srithon closed 2 years ago
The parser currently supports all types as rvalues, but the compiler only allows buttons outside of the [configuration] table. It would be really convenient if we could define variables and use them in buttons, like so:
[configuration]
[aliases] tap-hold-delay = 250 [some-layer] [[public]] l = (tap-hold-next-release $tap-hold-delay @leader_next lmet)
The interpolation syntax itself is yet to be decided; should it be &tap-hold-delay to disambiguate from shell variable interpolation?
&tap-hold-delay
The parser currently supports all types as rvalues, but the compiler only allows buttons outside of the
[configuration]
table. It would be really convenient if we could define variables and use them in buttons, like so:The interpolation syntax itself is yet to be decided; should it be
&tap-hold-delay
to disambiguate from shell variable interpolation?