Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VCS signs overlayed with generic marks #71

Open
blueyed opened this issue Jan 4, 2017 · 3 comments
Open

VCS signs overlayed with generic marks #71

blueyed opened this issue Jan 4, 2017 · 3 comments

Comments

@blueyed
Copy link
Contributor

blueyed commented Jan 4, 2017

With the following signs for the same line, it would be nice to get the background of the "VCS ADD" sign:

    line=159  id=5345  name=QFS_Mark_.
    line=159  id=5343  name=QFS_Mark_'
    line=159  id=5340  name=QFS_VCS_CHANGE

Currently only the . sign is visible, which has no background and therefore no indication about this line being changed (with regard to the vcsdiff module).

To indicate that this line was added, it might be nice to have a sign there that merges QFS_Mark_. and QFS_VCS_CHANGE maybe, i.e. using the text from QFS_Mark_. with the texthl from QFS_VCS_CHANGE?!

Alternatively, it might be good to define/configure the order of signs, so that the vcs related ones would be placed after the more generic marks?!

@tomtom
Copy link
Owner

tomtom commented Jan 4, 2017 via email

@blueyed
Copy link
Contributor Author

blueyed commented Jun 22, 2017

What I've meant is to merge them, which in this case would use the background from the QuickFixSignsDiffAdd highlight and the text from the other mark.
This would allow for having added/changed lines being highlighted always.

For this to work there would need to be intermediate texthl classes for the signs, e.g. QFS_WarningMsg (mentioned in TODO), and then e.g. QFS_WarningMsg_VCSAdd (which would take the bg from QuickFixSignsDiffAdd).
In case a line is then added, but was also the one being last changed, it would use QFS_Mark_._VCSAdd, which would display as . with a green background.

It's not trivial, but hopefully you get what I mean at least?! :)

@tomtom
Copy link
Owner

tomtom commented Jul 6, 2017

I think merging is a bad idea. Signs are a pain anyway. I think you should use the level mechanism but ... Anyway, I realized that level doesn't work as it is supposed to. It seems that unneeded signs aren't removed properly. Unfortunately, I don't have the time to come up with a solution for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants