You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support multi-line selection when staging lines #5738
When I have many adjacent lines changed in a file, it can be tedious to go through them individually and select only some of them. This happens, for example, when I've added a few new methods and wait until the end to make my commits, as opposed to making commits as I go. I'd like the commits to be atomic by committing only one method at a time, which currently requires me to click each individual line of the method to stage it.
I was thinking a nice interface would be to click a line, hold down Shift, and click a line several lines away, causing Desktop to add the second clicked line and all lines between it and the first line I clicked.
@cheshire137 Thanks for the issue! If I'm understanding your problem correctly, I typically do this by just clicking, holding, and dragging from the first line to the last if they're adjacent. I've seen lots of other people do this as well, and it seems to work well. Thoughts?
😭 It works! I have clicked so many individual lines but no more! Thanks!
Maybe a tooltip could be shown when first clicking lines/hunks that tells the user about the drag feature? Unless that already exists and I missed it! Relevant: #1688.
Reacted by Billy Griffin, dabblingfrancis and Brady Holt
Activity
billygriffin commentedon Sep 25, 2018
@cheshire137 Thanks for the issue! If I'm understanding your problem correctly, I typically do this by just clicking, holding, and dragging from the first line to the last if they're adjacent. I've seen lots of other people do this as well, and it seems to work well. Thoughts?
cheshire137 commentedon Sep 25, 2018
😭 It works! I have clicked so many individual lines but no more! Thanks!
Maybe a tooltip could be shown when first clicking lines/hunks that tells the user about the drag feature? Unless that already exists and I missed it! Relevant: #1688.