NeogitOrg / neogit

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

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

Open nounder opened 1 month ago

nounder commented 1 month 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 1 month 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.