Closed JJPandari closed 1 year ago
I need to find a way to run code after
read-from-minibuffer
succeeds.
After it succeeds (returns), or after it activates the minibuffer? For the latter, have you tried minibuffer-with-setup-hook
?
minibuffer-with-setup-hook
does the job! Thanks! (Actually I have used this in my config, just got lost when trying things for this question)
I have a simple function that:
if region-active() then swiper(region-content) else swiper()
. Now I want to enable ivy-hydra automatically if region is active.If my thinking is correct, the key is how to run some code (
hydra-ivy/body
) after swiper/ivy renders.research: Looking at the code of
ivy-read
, maybe this doesn't really have anything to do with ivy, I need to find a way to run code afterread-from-minibuffer
succeeds.