Skip to content

nkxxll/zeek

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zeek

Zeek a fuzzy finder in ZIG.

todo

  • if "patternzig" is in the mix and "pattern" is the search term it has the same score as "pattern"
    • this should not be the case I guess
    • this is because of the max of the hole array not only the last row
    • have to reevaluate that there

Features

V0

  • write the algo
  • fix the algo

V1

  • pattern input
  • choose output out of 10

V2

  • prev next

Command line interface ideas

Simple input in lines. The input is evaluated against the pattern. The inputs with the highest score are up top. The solutions are cut off at 10. You choose a number. The input with the number gets printed to the standard output.

$ cat options | zeek "pattern"
1 patterns
2 patners
3 patties
4 panties
5 cat
6 ...
...
chose (1..10): 2
patterns

What if you want to add a pattern later (idea):

$ cat file | zeek
enter a pattern: pattern
-- options --
1 patterns
2 patners
3 patties
4 panties
5 cat
6 ...
...
chose (1..10, n, next, p, prev): 2
patterns

About

Fuzzy finder in zig

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages