dakyskye / dxhd

daky's X11 Hotkey Daemon
MIT License
99 stars 6 forks source link

variants are not properly parsed #24

Closed dakyskye closed 3 years ago

dakyskye commented 4 years ago

here is the mistake, instead of finding all variants at once in the whole "command", find them line by line

dakyskye commented 4 years ago

dxhd parser errors on this:

# super + {a, b} + {c, d}
echo {a, b} and {c, d}
echo {foo, bar} and {baz, qux}

that's why it has to check variants line by line in the command string

dakyskye commented 4 years ago

okay, fixing that requires a lot of modification in replicate function, which must be a hard work. I might start parser rewrite, as #12 requires splitting parser into a lot of functions, so it's kinda like rewrite anyway.

dakyskye commented 4 years ago

parser should also be ok with:

# { a, b }
echo "I'm either a or b"