Just as clarification:
-
the concept of "alias nodes" is something I think would be good for the project. Why? because alias nodes are like the "alias" command in linux/unix, ie. it's easily understood and transportable.
-
no, the current solution isn't the one I think should be implemented, i.e. an introspective flow that modifies the internals of the editor isn't easily understood. And by extension, folks passing flows around to create alias nodes ... no no, that's not the correct approach
-
yes, there should be an frontend API for defining alias nodes, something like
RED.nodes.registry.addAliasNode("debug to console", { console: true }, RED.nodes.registry.getNodeType("debug"))so that it's clear how to define alias nodes -
no, I don't care whether any of this happens but just as the flow visualisation in the forum took 1.5 years, I can still have a dream!
-
yes, I would create the PR for the API if there is a clear "yes we like this but call the API xyz", i.e.,
RED.nodes.registry.addAliasNode. -
yes, I definitely think that visually having a new node (instead of replacing the existing node) is a simpler concept for an end user to understand and work with. Remember: it won't just be the debug node ... then the switch node ... the link node .... etc. So a general solution will be needed anyway.