skywind3000 / skywind3000/z.lua

[Feature Request] Fuzzy matching as a fallback

Open
#44 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
3.1k
Forks
148
PR merge metrics
No merged PRs in 30d

Description

One feature I really liked in fasd is, that fuzzy matching is performed, when the other matching algorithms to not yield a result.

Comparison of matching algorithms in fasd and z.lua:

fasd
  1. Queries match the path in order (same as default method).
  2. The last query matches the last segment of the path.
  3. If no match is found, fasd will try the same process ignoring case. If still no match is found, fasd will allow extra characters to be placed between query characters for fuzzy matching.
z.lua
  1. Queries match the path in order (same as default method).
  2. The last query matches the last segment of the path.

Did you consider to make the 3rd matching algorithm available in z.lua?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing z.lua's existing matching algorithms and compare them with the fasd sequence described in the issue. Determine where a fallback fuzzy-matching step would fit after the current methods; done means unmatched queries can use extra characters between query characters as a final fallback.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.