Cursor aware node insertion (auto-wiring)

Origami has a nice feature that when the cursor is hovered over a port or a noodle it inserts some patches like math function mini-patches into the comp and automatically wires them to the port. So if the cursor is over an input port, the output of the inserted patch is wired to it. If the cursor is over an output port, the most relevant input of the inserted patch is wired to the output port of choice. This works for all the patches which Origami has made keyboard single-key [a-z] equivalents (where data types allow for noodle(s) to be created). Both the Origami stand alone app and the QC plugin have this feature.

Would be nice for Vuo to be able to auto-prewire, say math nodes or shared value nodes, into any selected or highlighted wires on the canvas by wiring the input and the output. And for other nodes, where it makes sense and the cursor is hovering over a port, prewire the inserted node to that port. This has the advantage of placing the node in a more relevant location too. If no port is hovered over the node should go wherever the cursor is located on canvas, as it currently does.

I’m merging this into related feature request Insert node between other nodes.