pw-viz icon indicating copy to clipboard operation
pw-viz copied to clipboard

Delete selected links using the delete key

Open mkrasnitski opened this issue 4 years ago • 1 comments
trafficstars

Links can currently be selected but no action can be taken within that context. I use Alt as my mod key in i3wm, so can't currently use the UI to delete links between nodes, as alt-dragging controls the window position and size for me. I think letting links be deleted by selecting them and hitting Delete would work well. By the way, what controls these keybinds? Do they come from egui_nodes are from some other crate?

mkrasnitski avatar Nov 17 '21 23:11 mkrasnitski

Yes I agree, context based deletion would be a good addition. pw-viz uses a slightly modified fork of egui_nodes for drawing nodes, which doesn't provide such functionality yet, but I think this can be added by creating a new ClickInteractionType::LinkDeleted and handling it inside click_interaction_update(...) defined here

The detach keybind is defined here

Ax9D avatar Nov 18 '21 09:11 Ax9D