coc-git icon indicating copy to clipboard operation
coc-git copied to clipboard

Feature Request: Add lines of context to git.foldUnchanged

Open CallumHoward opened this issue 4 years ago • 2 comments

When comparing with a diff on GitHub it folds unchanged and shows 3 lines of context. It would be awesome if there was a configuration option to specify how many lines of context to add for the git.foldUnchanged command.

I guess it might need one pass to merge ranges that are less than apart

CallumHoward avatar Mar 11 '21 22:03 CallumHoward

how many lines of context to add for the git.foldUnchanged command.

Can't understand, could you explain?

chemzqm avatar Mar 12 '21 04:03 chemzqm

I would like to see 3 lines above and below the changed lines when using the git.foldChanged command. This is like the -U3 flag of git diff -U3. Currently the command shows 0 lines below and above (ie. 0 context).

It would also be great if the number was also configurable to any number, not just 3.

CallumHoward avatar Mar 13 '21 07:03 CallumHoward