-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Partial hunk staging as operator #421
Comments
Wonderful! I was just about to ask if this was possible to do! |
It will be a very unique feature, I've never seen it in other Editors. @molleweide |
Haha yeah I think it could be quite interesting feature |
Very nice when hunks too big |
All in. Was just searching the thread in advance of posting the following issue:
Really, really would be wonderful if gitsigns would allow me to do the same. |
Agree, wanted to ask about it as well. But this should probably be moved to a seprarate issue, no? |
+1 That's actually the only thing that's missing from vmi-gitgutter for this plugin to be 10/10 |
How does vim-gitgutter implement this, last time I checked it doesn't have true partial hunk staging like Gitsigns does, so an operator mapping doesn't make sense. |
btw, not sure if anyone knows this, but if you edit a buffer created by |
This is exactly what I, and probably most other users, were looking for. I thought the quick preview window edit very handy, but already having the option to edit hunk before staging is already a game changer for me! |
Fwiw fugitive allows you to do that too. |
Visual select the changed lines that you want to stage and run |
I have the following mapping on my config map({ 'n', 'v' }, '<leader>ghs', ':Gitsigns stage_hunk<CR>', 'Stage hunk') This allow my to select lines ( |
It would be cool take advantage of the partial hunk staging feature just implemented making a operator to work with motions like:
<leader>hs3j --> stage next 3 lines
<leader>hsip --> stage paragraph
<leader>hsiw --> stage word
and so on..The text was updated successfully, but these errors were encountered: