Copy deleted lines from Diff View (hunk & inline)
Add the ability to copy / paste deleted lines when viewing diffs in inline and hunk views.
Right now the workaround is to use the split view to copy the deleted line(s).
Comments: 7
-
06 Jan, '22
Lyndon GingerichHowever, this would presumably remove the ability to copy just the current code; any copied code would include both old and new lines from the diff.
-
14 Mar, '22
John ThomsonThere is already a right-click command to 'Copy deleted line', which is some help, though it took me a long time to discover. Something like 'copy deleted hunk' to get a group of contiguous deleted lines would go a long way towards meeting this need.
But the ideal would be that the default behavior is what you would normally expect: you can select and copy whatever you can see. Right-clicking on a selection could offer options like "copy only added text." -
07 Feb, '23
Joey Kelroy Admin"Allow selection in diff view" (suggested by Pedro Madrid on 2023-02-02), including upvotes (1) and comments (0), was merged into this suggestion.
-
29 Jun, '23
PaulPlease allow text selection in the diff view
-
14 Nov, '23
Joey Kelroy Admin"diff select" (suggested by Ken Seehart on 2023-11-05), including upvotes (1) and comments (0), was merged into this suggestion.
-
24 Jan
Joey Kelroy AdminIt is possible to copy entire deleted lines in hunk and inline view now from the context menu. There is a new request for the ability to highlight and copy parts of a deleted line here: https://feedback.gitkraken.com/suggestions/525037/ability-to-highlight-and-copy-parts-of-removed-lines-in-diff-view-hunk-and-inlin
1 -
13 Feb
YannickThis annoys me almost every day