NeogitOrg / neogit

An interactive and powerful Git interface for Neovim, inspired by Magit
MIT License
3.96k stars 234 forks source link

Copy NeogitStatus diffs without +/- characters at the beginning of a line #1488

Open nounder opened 3 weeks ago

nounder commented 3 weeks ago

Is your feature request related to a problem? Please describe. I'd like to copy part of diffs shown in NeogitStatus without the first character that consists of - or + using standard yank command.

Describe the solution you'd like Yanking diff lines does copy only part of a files, without diffs decorations, ie. + and - characters

Describe alternatives you've considered Removing diff decorations altogether. Not sure if it's possible without changing plugin's source code.

CKolkey commented 3 weeks ago

Sadly this one is actually pretty tough. We use the leading + or - to apply the highlights, so removing them isn't really that straightforward.