Skip to content

Progressive input #2023

@alecmev

Description

@alecmev

Thanks for making fzf, great UX! This is a feature request, so I'm skipping the template.

I'm using fzf like so:

fd --follow --hidden --no-ignore | proximity-sort . | fzf --tiebreak=index

Works fine, but proximity-sort needs all of the input to process it, so in ~, for example, it ultimately takes a few seconds for anything to appear, which is suboptimal.

Solution A is to have fzf display a "lower-quality" list of paths of my choosing while it's waiting for proximity-sort to produce the first line.

Solution B is to have proximity-sort pipe through the lines coming from fd to fzf as they come, do the necessary processing, somehow signal fzf to start over (and possibly change its tie-breaking mode), and pipe out the sorted data.

In both solutions fzf must wait for the line matching the currently-selected one to be piped in before updating the list, as to avoid jarring jumps. If there's no such line then gotta wait for the end of the input.

Would you be interested in either of these? Or is it already possible, maybe? Comments? 🙂

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