dxhd icon indicating copy to clipboard operation
dxhd copied to clipboard

Which characters are considered valid?

Open NotUnlikeTheWaves opened this issue 3 years ago • 2 comments

I'm especially thinking towards control characters. For example, in a range {0-9} you have the control characters {, -, and } that a user might also want to use as part of a binding. For example, maybe someone might want to minimize a window with shift + -.

Do we consider control characters also as valid 'regular' characters that can be part of a binding?

If so, should we prefix them with an escape character perhaps? That is, shift + \-.

The only place I can think of where an ambiguity can arise is in the case of the comma , as the separator in an option list ({a, b}).

NotUnlikeTheWaves avatar Jun 20 '21 21:06 NotUnlikeTheWaves

@NotUnlikeTheWaves we'll need to support escaping of characters anyways, because a user might want to echo "{" symbol. We definitely don't want our parser to think it's the beginning of a variants group.

dakyskye avatar Jun 20 '21 21:06 dakyskye

Good point. We need to explore how different the binding parsing is vs the action substitution

NotUnlikeTheWaves avatar Jun 20 '21 22:06 NotUnlikeTheWaves