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

Activating overlays in a transient manner #109

Open
vemv opened this issue Apr 20, 2024 · 3 comments
Open

Activating overlays in a transient manner #109

vemv opened this issue Apr 20, 2024 · 3 comments

Comments

@vemv
Copy link

vemv commented Apr 20, 2024

Hi!

Great package, thanks for the work.

I wonder if there's a pre-made recipe for displaying the overlay in a transient manner?

e.g.:

  • hit a keybinding (or perhaps simply click or cmd+click) a symbol to activate its highlighting
  • as soon as I type any key, all overlays disappear.

This works similarly to the "highlight local vars" feature in misc IDEs (IIRC).

This might be hackable with the current API but of course, if someone has sweated the details before, so much the better.

Thanks - V

@hmelman
Copy link

hmelman commented Jun 12, 2024

See Issue #59

@vemv
Copy link
Author

vemv commented Jun 12, 2024

Hi @hmelman , thanks for chiming in! Interesting.

However I meant 'transient' as in temporary, not as in the Transient package. Which is nice as well - good snippet!

@hmelman
Copy link

hmelman commented Jun 12, 2024

However I meant 'transient' as in temporary, not as in the Transient package.

Ah, I read fast and misunderstood.

Since symbol-overlay-put toggles the highlighting, I find it easy to turn off. There is symbol-overlay-mode which auto highlights the symbol under point which you may find useful.

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