🎉 Node-RED 3.0.0-beta.2 released

That was partly the intention.

It was designed to reduce the places where a flow has mostly unnamed items making debugging less difficult. Why not simply name them as you go?

But they are better than no name as they are at least unique within your flows.

We could certainly add an option to the rules to flag nodes that still have a default name set - but it would be an option that could be toggled, rather than fixed behaviour.

3 Likes

Yes, that's exactly what I usually do. :wink: But hey, in the heat of the moment some nodes get overlooked, or naming is delayed. If you concentrate on what the flow should do, there is often not the right time to think about good function names.

Once the flow works I usually look over it and name functions etc. This is where the linter is great help.

Yes, Nick, great idea. At least the linter should be able to determine unnamed nodes. If not it would make a mockery of it.

@Flachmann would you be kind enough to add an issue for this item on the main node-red repo so it is not missed? Please link back to this thread for reference. Ta.

2 Likes

A post was split to a new topic: Shortcuts for Monaco editor

What am I doing wrong? This is on Firefox and Chromium. Alt key, OK, then left mouse button and move the mouse pointer over the wires. This is getting the gripper and the whole browser window is moving.

Are you holding the Alt key down until you finish moving the mouse?

What OS is that on?

If there's an OS level handler for that particular combination, then it will be preventing it from reaching the browser.... and we'll need to have another think about the choice of shortcut

Morning Nick. When I was first working on the mouse and modifier design doc, I had it down as control drag but because we handle mouse down instead of click for quick add, there was a race condition. That's why, on my first attempt at remapping, I moved the quick add handler to mouse up but there were too many quirks and code paths and everything I did to handle that quirk led to another quirk. That's when I changed to the alt key as that was unused. If we intend on revisiting this, we might want to consider giving it another go using control and control shift instead of the alt key?

Linux Mint 20.3 Una

Could it not be just a node that's dragged out of the sidebar like all the others and avoid all this trouble?

3 Likes

Yep, on MX Linux I had to disable the default ALT drag shortcut to get wire slicing working!

Why not combine it with Link Node In/Out. Upon selection just check option to make it a junction.

Is upgrading with docker as simple as changing the tag from 2->3? or does anything else need doing?

As this is a beta release, you need to use the node-red-dev images - 🎉 Node-RED 3.0.0-beta.2 released - #14 by hardillb

I personally don't want to have to check anything

No strong opinion here. I don't see myself using the junction node over the existing NoOp node anyway.

I can't get the drag combination to work (even the new one in beta 2) on my Chomebook as I can't seem to use ALT in any dragging action, so it is just easier to drag over a NoOp block (for me).

Neat feature, just not a "problem" I needed to be solved. Others obviously have more passion around this, though.

So from feedback on slicing wires & slicing junctions...

  • Alt is problematic in some systems
  • Junction should appear on Left Hand palette (so can be dragged onto wire)

And one suggestion from me would be...

  • Implement "Add Junctions to Selected Wires" from action menu
    (side benefit - should also aid touch screen users)

Alternative solutions...

  • Right-click drag draws the cutting line then pops up a context menu on mouse button release, asking what you would like to do (delete wires, insert junctions, future...)
    • NOTE: I think right click drag on FireFox should be ok since there are no modifier keys in this suggestion)
  • A mouse mode (e.g. normal/select, slicing, slice-in-junctions) presented from a context menu?
  • A toolbar button for selecting mouse mode (e.g. normal/select, slicing, slice-in-junctions)?

I'm just throwing things out there to stir minds and gather opinion (not even certain we will change this up) - feel free to weigh in - perhaps there is a magic bullet?

2 Likes

What NoOp node?