Open AnweshGangula opened 2 weeks ago
From: Anwesh Gangula @.***> Date: Wed, 19 Jun 2024 08:11:40 -0700
Check out a demo from the video
We can easily make pulsar produce a pulse after a command. For example, evaluate this:
(add-to-list 'kill-ring-save 'pulsar-pulse-functions)
Then, every time you use the command 'kill-ring-save' (M-w by default), you will see pulse afterwards.
The problem, however, is that we always pulse the whole line. Whereas I think we need to only operate on the given region. I believe this will not be as straightforward, because we will need our pulse effect to know the region boundaries of the previous command.
Unless, we maintain a list of known commands and then we write wrapper functions to filter them, get their region boundaries, call them as intended, and then use the data we got to produce the right pulse. This is a deviation from the simpler approach we have right now, but maybe it is worth trying.
-- Protesilaos Stavrou https://protesilaos.com
I found the source code of the origin pulse.el in this link. Would it to be simpler to replicate the same behavior using the same code?
FYI there is a tool https://github.com/edkolev/evil-goggles/ to accomplish what @AnweshGangula is requesting. I use evil-goggles and pulsar combined.
From: Diego Alvarez @.***> Date: Fri, 21 Jun 2024 14:55:49 -0700
FYI there is a tool https://github.com/edkolev/evil-goggles/ to accomplish what @AnweshGangula is requesting. I use evil-goggles and pulsar combined.
Thank you! This reminded me that we also have the goggles package for those who do not use Evil: https://github.com/minad/goggles.
-- Protesilaos Stavrou https://protesilaos.com
Thank you for sharing this these packages, I will look into it.
But @d1egoaz, is evil-goggles package meant to be used only if we have evil mode enabled?
@protesilaos, will the goggles package work in evil and non-evil modes?
I recently found this article which talks about using Pulse Region to highlight yanked text. But I'm not able to figure out to use in my current configuration.
I would like it if this can be implemented in pulsar.el
Check out a demo from the video