Skip to content

History completion candidates #146

@rudism

Description

@rudism

Is your feature request related to a problem? Please describe.
Something I miss from other shells is an fzf or fzy style history search feature. I know there is another request #76 to specifically support those commands, but wondering if something built-in that combines the history and completion features already in yash is possible?

Describe the solution you'd like
The ability to type something into the command prompt, then have a key bind that I could hit to show completion options from the command history that start with the same characters I just typed (perhaps limited to a certain number of options), and the ability to tab-select one of those options to finish the completion.

Describe alternatives you've considered
I have looked into the documentation of and played around with existing line-editing commands and the complete built-in to see if it's possible to do this already, but so far have had no luck in producing what I'm looking for. The best options I see are the history search line-editing commands which let you search and cycle through history matches one at a time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions