Skip to content

ivy-avy broken with ivy-set-display-transformer #1255

@tmdemelo

Description

@tmdemelo
  • Observed behavior:

Selecting a candidate with ivy-avy uses the text returned by the display transformer function.

  • Expected behavior:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions