kahole / edamagit

Magit for VSCode

Home Page:https://marketplace.visualstudio.com/items?itemName=kahole.magit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Staging chunks of file

leighmcculloch opened this issue · comments

Edamagit is great, one thing I've noticed missing is the ability to stage parts/chunks of a file without staging the entire file. One of the selling points of magit is that it makes this trivial.

It's possible the feature is here and I've just missed it.

It is already here. Just visually select the stuff you want to stage and press 's'.
Same for unstage and discard.

Thanks @kahole. I must have something configured not quite right. I'm using the keybindings from the readme for VIM.

When I view the status page, and view the diff for a file, I can't stage parts of the diff. Using s on the diff doesn't do anything.

I'm positive I'm doing something silly. Any tips?

I think perhaps VSCodeVim's selection doesn't work for this, since they use a non-native selection which no other extensions are aware of.
Try native selection and let me know. (Eithet by deactivating vim or by using mouse/native selection keys)