Request: allow all actions in macros
I want to use d+f to switch to a cursoring layer, and s+d+f to shift the layer. Right now I can only layer shift as a separate step.
I think layer(a+b+c) would be a natural syntax.
[main]
d+f = layer(edit)
s+d+f = layer(shift+edit)
[edit]
# add the ring finger for shift
s = layer(shift)
i = up
j = left
k = down
l = right
. = end
m = home
u = C-left
o = C-right
# undo/redo (with s)
; = C-z
# cut/copy/paste
y = C-x
h = C-c
n = C-v
Another reason would be to have chords for modifiers as well as modifier combos
z+x = layer(control)
x+c = layer(alt)
z+c = layer(control+alt)
On considering this more, it would be way nicer to just allow running all actions as macro steps. Then everything is a macro, and functions like togglem become obsolete.
Allowing arbitrary combinations of actions would make this a duplicate of https://github.com/rvaiya/keyd/issues/590.
z+c = layer(control+alt) s+d+f = layer(shift+edit)
The current solution is of course to just make layers [controlalt:C-A] and [editshift:S], but I realize that dedicated support would avoid duplication, play nicer with composite layers, and it is a bit more intuitive imho.
So if the implications of arbitrary combined actions end up being too far-reaching, I do think there is merit to being able to activate/deactivate/toggle/swap multiple layers --- I would have a similar use for it.
cf https://github.com/rvaiya/keyd/issues/410. I also remember discussing it elsewhere but can't immediately find it