Selecting a candidate with ivy-avy uses the text returned by the display transformer function.
ivy-avy uses the candidate text without changes by the display transformer function.
For example, with the following:
(defun my-display-transformer (text)
(concat text "-foobar"))
(ivy-set-display-transformer 'ivy-switch-buffer 'my-display-transformer)
Then trying to switch to buffer <BUFFER-NAME> using ivy-avy switches to a buffer <BUFFER-NAME>-foobar instead.
Switching to a buffer without using ivy-avy works as expected.
I'll send a PR with a proposed fix.
Selecting a candidate with
ivy-avyuses the text returned by the display transformer function.ivy-avyuses the candidate text without changes by the display transformer function.For example, with the following:
Then trying to switch to buffer
<BUFFER-NAME>usingivy-avyswitches to a buffer<BUFFER-NAME>-foobarinstead.Switching to a buffer without using
ivy-avyworks as expected.I'll send a PR with a proposed fix.