Skip to content

Feature: add context menu item to jump to link call target node #5125

@knolleary

Description

@knolleary

Original discussion: https://discourse.nodered.org/t/direct-navigation-from-link-call-node-to-definition-node/96802/

Having a way to quickly navigate to a Link Call node's target Link In has been an often requested feature. But it has always stalled at what the UI should be around the node to enable it.

The proposal from the discussion above is a simple solution to add a Context Menu item to do just that - so a user can right-click on the node and select the option. It isn't a one-click solution, but it's better then the lack of solution we have today.

Ideally we don't want to hard code this into the editor; other nodes may have legitimate actions to surface in the menu.

The proposal is then:

  1. Allow a node to register custom menu items in their definition
  2. When showing the context menu, include the node-specific actions
  3. Update the Link Call node to register the 'jump to target' action
  4. Check if any other core nodes have similar 'obvious' actions to add

When registering the menu items, the item will need:

  • label
  • action - either a callback function, or a string name of a registered action (check the naming conventions of existing code)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions