Wires and Undo

Pins now show what you can connect to. Wires glow when selected. You can cut wires with scissors. And you can undo your mistakes.

The editor is starting to feel real.

Wire selection and glow

Click a wire to select it. It gets thicker and glows, a soft halo at 40% opacity behind the main stroke. Hover a wire and you get a subtler glow at 20%.

Wire hit testing checks your cursor distance to the actual bezier curve, not just the endpoints. Threshold is 8 pixels. Shift+click to multi-select wires. Delete key to remove.

Small thing, big impact. Before this, deleting a wire meant disconnecting from the inspector or rebuilding the connection. Now you just click and delete.

Scissors cutting

Alt+drag draws a cut line across the canvas. Every wire that intersects the line gets disconnected.

When you’re deep in a patch and need to quickly sever a group of connections, scissors are way faster than selecting each wire individually.

The intersection test runs against the bezier curve of each visible wire. All cut wires generate undo actions, so Ctrl+Z brings everything back.

Undo/Redo

Ctrl+Z, Ctrl+Y. The foundation of not being terrified to try things.

The undo system tracks:

  • AddNode / RemoveNode, full node state preserved (type, inputs, connections, position)
  • Connect / Disconnect, wire changes, including replaced connections
  • SetPinValue, parameter changes with old and new values
  • Node movement, position changes

Everything is compound, deleting a connected node records the node removal AND all disconnected wires as one undo step. Ctrl+Z brings back the node and all its wires in one action.

I also coalesce consecutive pin value changes. If you’re dragging a slider, you don’t want 60 undo steps per second. Consecutive SetPinValue actions on the same pin merge into a single step: the old value from the first change, the new value from the last.

Max 100 undo steps. After that, the oldest ones fall off.

What’s different now

These are the small interactions that make an editor feel real. The gap between “technically works” and “feels good” is made of a hundred tiny things, glow effects, scissors, undo, each one small, together transformative.

Still a long way to go. But it’s getting there.

← Back to blog