Select mutiple lines at once in diff view
As a user using the diff view (before staging changes or resolving conflicts), I would like to select multiple lines at once (using drag-and-drop, shift-click or whatever) in order to avoid clicking every single line in the right order, which can be a real pain when dealing with 200+ lines.
As I frequently split my work across multiple commits and since the hunk view doesn't help when two different pieces of code are contiguous, it would really be a killer feature to me !
Comments: 3
-
04 Aug, '23
Paul SmartI would like to also request this feature!
-
15 Apr
Mark DuncanDid this change recently, I'm sure you used to be able to highlight with left click and drag, now left clicking pops up a context menu with Copy changed lines & Copy changed line (x), the second option incidentally doesn't seem to copy the line it says it will. Either way having normal highlight and select functionality would be preferable.
-
15 Apr
Joey KelroyHello Mark, highlighting removed lines can be done from the Split view - we have an existing feature request (which is different than what this request is asking as I understand it) to be able to highlight lines in Inline and Hunk View. https://feedback.gitkraken.com/suggestions/525037/ability-to-highlight-and-copy-parts-of-removed-lines-in-diff-view-hunk-and-inlin.
1
Notably, I also see an issue with "Copy changed line (X)" copying the line below it that I have written up for the team to take a look at.