Expression builder

I know the syntax of the expressions is not exactly the most intuitive if you’re used to mainstream programming languages and that’s something that we will hopefully address some day. In the meantime I’ve been experimenting with a block-style programming environment (think Scratch etc.):

https://www.jfedor.org/expression-builder/

It looks something like this:

It’s just a standalone experiment right now, it’s not integrated with the configuration website in any way so you have to manually copy and paste the resulting expression and you can’t take an expression from the configuration website and import it into the builder.

Still, maybe it will help someone wrap their head around the expression syntax.

Pro tip: if your expression is getting too wide, try right-clicking a block and selecting “External Inputs”. “Collapse Block” can also make certain blocks look nicer.

1 Like

@jfedor thanks for all your work on HID Remapper.

I’m struggling with expressions, and the block-style expression builder looks really helpful.

I’ve tried the expression builder in Chrome and Safari, but I can’t get it to work in either browser.

Is Safari I can drag a block from the library on the left, but I can’t release it or place it anywhere. In Chrome I’m unable to drag blocks at all.

Not sure what’s going on, I mostly tested in Chrome while making it and I just tried it in Safari and it seems to be working fine for me.

1 Like

Thanks @jfedor. The expression builder works for me in Firefox macOS, but it’s good to know that Chrome and Safari should work too.

I didn’t think I had any browser extensions that would cause problems - just my password manager - but I’ll try again with fresh profile in each browser.