Add multiselect support to interactive rebase editor
Should be able to shift+select commits to affect
shift+↑/↓ arrows would be great too.
I just started using Gitlens and am quite surprised this isnt possible - via Shift/Ctrl + mouse or arrow keys. Would be super useful as I'm about to rebase squash 70 commits...
Hello, I’d like to work on this but am curious about which implementation makes more sense:
-
Use MultiDrag from SortableJS
This offers built-inShift+Clickselection, simplifying selection logic (by relying ononSelectandonDeselect). However, we’ll need to adjust the API to support dragging multiple entries and handle other actions likeAlt+Arrow. Also, this could introduce key combinations (Ctrl+Clickfor non-consecutive selection) that may be unwanted. -
Custom
Shift+ClickSelection
This tracks selected entries manually, focusing only on consecutive selection. It avoids API changes andWorkspaceEditconflict issues related to dragging multiple items.
In both cases, we’ll need to visually highlight selected elements and ensure actions from the dropdown apply to all selected entries.
Let me know which approach seems better. Personally, I'm leaning towards option (2) because it does not touch the API - However, if dragging multiple elements is wanted then (1) is the way to go.