Skip to content

Reveal invisible text while moving through swiper matches #1312

@tarsius

Description

@tarsius

When I move through swiper matches I would like hidden text to be revealed so that I can actually see the context of the current match. It appears only the final match is ever revealed once the search is exited.

I dug around a bit and found swiper--ensure-visible, called in swiper--action. As a quick hack I added (with-ivy-window (swiper--ensure-visible)) to ivy-set-index, so that this would be done on every ivy-{next,prevous}-line. Of course that should only be done when actually using swiper, and probably not here, but as a temporary solution it might have worked. However while some revealing did happen once I had done that I ended up having to move down two matches and then one match up again to reveal that first match.

I was actually kinda surprised that automatic revealing doesn't work out of the box. And maybe I am just overlooking something, but searching the source for the relevant terms such as "reveal" and "invisible" didn't, uhm, reveal much.

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