Skip to content

Fuzzy/camel-case completion matching #510

Description

@stalep

Summary

Add fuzzy and camel-case matching to tab completion so users don't need to type exact prefixes.

Description

Camel Case Matching

Match abbreviated camel case patterns against completion candidates:

  • gCI matches getCursorIndex
  • NPE matches NullPointerException
  • sH matches setHandler, showHelp

Fuzzy Matching

Tolerate minor typos in completion input:

  • comit matches commit (missing letter)
  • stauts matches status (transposed letters)

Implementation Notes

The fuzzy matching library added in aesh-readline (issue #180) provides the scoring infrastructure. This issue is about integrating it into the completion pipeline:

  1. When exact prefix matching finds no candidates, fall back to fuzzy matching
  2. Score and rank fuzzy matches
  3. Camel case matching can use the existing BONUS_CAMEL_123 scoring from the fuzzy matcher

Priority

Medium — nice productivity improvement for power users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions