thedmd / imgui-node-editor

Node Editor built using Dear ImGui
MIT License
3.64k stars 537 forks source link

No way to select nodes and containers at the same time #251

Open nspitko opened 1 year ago

nspitko commented 1 year ago

In an existing graph with a mix of contained and uncontained nodes, there's currently no way to move arbitrary sections of the graph. Normal box select will never select groups, and shift select will never select groups; meaning you have to move the nodes then move the groups after; which creates a bunch of extra work.

Ideally I'd like to see normal select also select groups, but only if they're wholly contained in the selection rect. This lets you still select nodes inside without selecting the group, but also allows large area select to grab the whole graph.