Skip to content

Consider enhance the history searching in PSReadLine to use fuzzy-match algorithm as in fzf #3339

Open

Description

Prerequisites

  • Write a descriptive title.

Description of the new feature/enhancement

Consider enhance the history searching in PSReadLine to use fuzzy-match algorithm as in fzf.

Proposed technical implementation details (optional)

The searching supported in fzf is more comprehensive. We don't need to support all of them, but replacing the current history searching with fuzzy-match algorithm would be nice.

Activity

  1. ghost added
    Needs-Triage 🔍
    on Jun 6, 2022
  2. removed
    Needs-Triage 🔍
    on Jun 6, 2022
  3. thomazmoura commented on Sep 13, 2022

    @thomazmoura

    You might want to check https://github.com/kelleyma49/PSFzf for a reference of implementation. I've been using it for a while and it works quite well (used it all the time before the prediction feature came out).

  4. daxian-dbw commented on Nov 7, 2022

    @daxian-dbw
    MemberAuthor

    We don't want to wrap fzf, but want to implement the same fuzzy searching algorithm used in fzf.
    The fuzzy scorer in VSCode is another option: https://github.com/microsoft/vscode/blob/3fc3965c15b5e22014636a5be08f2cbdb7e05bec/src/vs/base/common/fuzzyScorer.ts#L25

  5. added
    Area-Predictors
    on Jan 3, 2023
  6. added
    Area-HistoryImprovements
    on Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area-HistoryImprovementsArea-PredictorsIssue-Enhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions