Skip to content

History search matching anywhere #532

@ahundt

Description

@ahundt

I believe the current history search matches from the start of the string. Could it be updated with an option for matching anywhere in the string?

The enable_history_search could perhaps be updated where the current True and False settings do as they have done, but now there are additional options for enable_history_search=:

  • 'starts-with' (same as current enable_history_search=True setting)
  • 'contains' (matches anywhere in the string).

I may not understand the classes right, but I'm looking at making the change... my thoughts are below:

The actual string search part at each line is hopefully easy, assuming basic python strings are actually used internally:

>>> "King" in "King's landing"
True

>>> "Jon Snow" in "King's landing"
False

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions