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

Add Vhl/highlight-reversed #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wavexx
Copy link

@wavexx wavexx commented Jul 8, 2015

So here's some fun about issue #8.

I add a 'reverse' parameter to vhl/add-range that marks the two regions around the selection. In addition to that, I added a general 'Vhl/highlight-reversed' variable to define the general behavior of vhl/add-range, which simply flips the value of 'reverse'.

How does it look like?

This is how it normally looks after yanking a block of text:

highlight-normal

and this is afterwards:

highlight-reversed

I've chosed "#999" here for the highlight background (yes, it's normally lighter).

I have mixed feelings... it's very nice if the region is large (>1 line), but it sucks for small yanks.
It's also incomplete: vhl/add-range should poke holes in the overlays when vhl/add-range is called repeatedly with an inverted region.

It's a funny test anyway.
Comments?

@toctan
Copy link

toctan commented Sep 3, 2015

@wavexx This is awesome, I would really like to try it.

@wavexx
Copy link
Author

wavexx commented Sep 6, 2015

Just clone https://github.com/wavexx/volatile-highlights.el/tree/highlight-reversed, then customize Vhl/highlight-reversed.

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

Successfully merging this pull request may close these issues.

None yet

2 participants