ledger / vim-ledger

Vim plugin for Ledger
GNU General Public License v2.0
372 stars 55 forks source link

Changing transaction color based on state in folded view #111

Closed zamlz closed 3 years ago

zamlz commented 4 years ago

Is it possible to config vim-ledger to color folded transactions a specific color depending on the current state `,*,!`, etc.

alerque commented 4 years ago

I don't actually know the answer to this. I don't use folding either and am not very familiar with what options there are. I can hazard a guess that this might not be possible. I'd be happy to be wrong on that, and more than willing to help along anybody that wanted to setup support for this by sending in a PR.

Even other examples of plugins that changed the fold color on a case by case basis based on anything would be useful as a reference to somebody that did want to set this up.

zamlz commented 4 years ago

Yeah I'll do some more research on the matter. Maybe this will be the reason to finally learn how to write my own vim plugins.

On Sun, Aug 9, 2020 at 11:35 PM Caleb Maclennan notifications@github.com wrote:

I don't actually know the answer to this. I don't use folding either and am not very familiar with what options there are. I can hazard a guess that this might not be possible. I'd be happy to be wrong on that, and more than willing to help along anybody that wanted to setup support for this by sending in a PR.

Even other examples of plugins that changed the fold color on a case by case basis based on anything would be useful as a reference to somebody that did want to set this up.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ledger/vim-ledger/issues/111#issuecomment-671187531, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSAQSYUDMNBSPDIHJEBUJTR76ILTANCNFSM4PZKH5NQ .

alerque commented 3 years ago

This SO answer about a patch suggests to me this isn't possible out of the box (or wasn't in VIM 7.x).

Poking around other plugins I can't find anything that does this.

I'm going to close this issue as can't fix because it's something not supported by VIM, but if I've either overlooked something or support gets added I'd be happy to re-open and/or accept a contribution that added support for this. It would be a nice user experience!