coc-git
coc-git copied to clipboard
Feature Request: show staged status in gutters and provide a command to unstage chunks (like git.chunkUnstage)
While using fugitive with coc-git (great combination btw.), I've noticed it might make sense to show the staged status of lines in the gutter bar as well.
With this feature it might make sense to also integrate a command like git.chunkUnstage
.
This allows simple staged-toggling of chunks.
There're git.chunkStage
git.chunkUndo
commands
I know, but git.chunkUndo
really undos the chunk (similar as git checkout -p
), which seldom is what I want.
And I'm proposing git.chunkUnstage
because there is a git.chunkStage
. git.chunkUnstage
should be more similar as git reset -p
.
And to show the user if something is already staged, which makes sense in the context of quickly staging and unstaging chunks, it should be shown in the gutter bar.
Why close this issue so fast?
We don't have support for that, PR welcome.
You can undo the change by git.chunkUndo and then git.chunkStage, which should be the same.
If I do git.chunkUndo
, it really is away for me (like git checkout -p
), it also isn't working if the chunk is already staged.
But I'll look into this and probably do a PR