Better Node Tree and Editor Synchronization

I would very much like to see a way for the selection in the node tree to scroll the selected component into view in the editor.

It can be disconcerting when a node is selected and then you start editing the properties but you don’t have the component in view in the editor.

Ideally when clicking on a node it would be scrolled into view in the editor. But it might be the case that some additional action makes this happen, possibly a double-click.

Would something like this be feasible?

While we are on the topic of node/editor navigation I would find it incredibly useful if there was something like a scroll to top in the Elements editor. When doing mobile first development I seem to spend a lot of time scrolling back to the top of the editor. In fact, it would be nice to have it work both ways, scroll to the top or bottom. Although if my first request in this post was implemented this would satisfy my needs as I could simply select a node at the bottom of the tree to have it scrolled into view.

UPDATE: one other addition I would like to see in the Node Browser is the ability to color code the root nodes. So in addition to being able to give them unique names, also allow a background color to be set. This would make visually navigating the tree so much easier.

5 Likes

A minimum coloring option would be to add a background color to globals that are in the node tree. The breadcrumb at the bottom of the window already does this by coloring them GREEN, why not also do the same thing in the node browser as it would make finding them much easier. The coloring is also used in the editor for the component label, why not do this in the node browser as well.

2 Likes

And the reverse, when a component is selected in the editor, the node view scrolls to the component in its view (it already selects it, but if not in view, it doesn’t scroll to bring it in view)

2 Likes

I agree, these selections should always be in sync and in view. It gets highly confusing if you are working something that is not visible, but selected.

2 Likes

It would be nice to see the current selection also reflected in the structure toolbar at the bottom, ie. container > flex > image > etc.

2 Likes

But isn’t the current selection in the sturcture toolbar always the last item in trail?

At the very least we should colour the Globals green :thinking:

Yes, we should probably support this both ways, I’ll add a ticket for it!

Hmm, the current selection is always the last in the breadcrumb trail, making it easy to navigate back up the tree. But you want to show the entire tree around an object?

I think having children of the selected elements would be useful in being able to quickly traverse a single branch of the tree, as well as providing some indication of where the current object sits in the hierarchy. I see it as a convenience from always having to switch to the node browser, which will always provide a more complete, but more complex representation of the entire tree.

The main difficulty would be communicating elements that have multiple children, such as flex/grid elements or groups. If possible, having a drop-down/pop-up to select which child you want to focus on, with the node view (if visible), viewport and structure bar all updating at once to reflect the current selection.

Container > Flex > Flex Item[1] > [Image | Text | SVG ] > etc…

Urgh, yeah. I think it’s better to work in the Node tree… just imagine if you could make the node tree always visible :stuck_out_tongue_winking_eye:

To me, this is an interesting paradox. The node tree is arguably the most useful tool in Elements. Yet, it is the farthest from a WYSIWYG interface.

Just imagine if you could select and work with elements visually within the page viewport and not have to rely on the node tree. :wink:

You mostly can, and more improvements are coming.

Every good/powerful design tool has a layers (or node) panel, Photoshop, Figma, Cinema 4D, Pixelmator… there’s a reason they exist. Designing complex things, gets complex fast.

Personally, I love the Node tree, and see it as an added benefit and not taking away from the WYSIWYG nature of Elements.

2 Likes

I think the node tree is awesome. I cannot imagine working in Elements without it. I look forward to the day when it can hopefully always be visible in the UI to make adding elements even easier.

:bulb: I think that the Pages tab and the Page Layout tab (node tree) could usefully be combined. I am not sure what value there is in having them separated?