-
-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Support staging (add) multiple rows in inline diff #496
Comments
That would be awesome, I had a few cases just this morning where the ability to stage select lines would have saved me some time. |
This will be super hard to add this functionality on top of what we have now. Not impossible, but hard, given the complexity of the code. But I've been considering other ways to abstract away some of the inline-diff complexity, and that may result in a partial rewrite. If that occurs, this is definitely something I'll be keeping in mind. And some intrepid contributor may decide to tackle it in the meantime :) |
Would it be easier to implement staging multiple contiguous selected lines? My guess is that that's often the use case, and if several lines from several different hunks needed to be staged, it's still a good amount of time saved. If one had the have a cursor pr. line, I think that would be all right too, since it's easy to split a selection into cursors... and given that so many other plugin works with multiple cursors, I'd guess it's just some kind of loop over the cursors that's needed? :) |
Inline diff is messy. Not saying I want. It will give me some headache. These lines are the one responsible for staging lines. |
Could be awesome to be able stage a multiline selection at once ! |
Why do you want to stage multiple selections on the inline diff? PR is always welcome |
I remember trying to add support for multiline staging. It'll require a partial rewrite of the related codebase. Given that it'll only have a little bit of gain, I am not sure if someone (including myself) would invest time in this matter. |
By the way, this is the related code. Take a look if you are interested in contributing. |
@CromFr which editor is that? That looks slick! For whoever is implementing this. You might want to take a look at git-gui's tcl source code; it's |
@asfaltboy This is gitg, I rely on it when I need to stage selectively many lines of a file |
As can be done with
git gui
, I would like the ability to "visual select" a range of rows and hit L to stage all of these (but not the entire hunk they may possibly be in.The text was updated successfully, but these errors were encountered: