Multi Select — rataflow

rataflow

GitHubdocs.rscrates.io
examples/multi_select.rs ↗

Three ways to build a selection, and what to do with one.

A selection can be assembled one element at a time or swept in bulk:

  • **Click**, with multi_select_mode on, adds elements one by one.
  • **Right-drag** draws a selection box. This is the default binding: terminals conventionally use Shift to bypass mouse reporting, so a shift-drag often never reaches the application at all, and the left button is already spoken for by node dragging.
  • **Left-drag** draws the box instead once selection_on_drag is set. Dragging a node still moves it; only the gesture that starts on empty canvas changes.

That last flag exists because no single gesture survives every terminal. Warp, for one, keeps the right button for its own menu and never forwards the event — so press b here and a left-drag draws the box instead.