Sometimes you search for a package, and you don't find it because you're not typing it right. Of course there's regex support behind the scenes but it requires conscious effort to make use of.

Motivation

It's hard to query packages with typos in mind since naturally nobody makes typos on purpose. A secondary goal here is to evaluate rust bindings to rpm.

Goals

  • Create a new project on GitHub for the project
  • Prepare a zypper plugin i.e. exposing a command like zypper fuzzy.
  • Use rust bindings to query the package database
  • Look into levenshtein or another fuzzy search algorithm
  • Bonus: Find out if dependency information could be queried, c.f. rdepends

Resources

  • c.f. manual use of zypper se *z*p*p*e*r*
  • levenshtein
  • librpm.rs
  • Look into how existing plugins like [zypper changelog]

Looking for hackers with the skills:

Nothing? Add some keywords!

This project is part of:

Hack Week 22

Activity

  • almost 2 years ago: cdywan joined this project.
  • almost 2 years ago: okurz liked this project.
  • almost 2 years ago: robert.richardson liked this project.
  • almost 2 years ago: bzoltan1 liked this project.
  • almost 2 years ago: dmdiss liked this project.
  • almost 2 years ago: rangelino liked this project.
  • almost 2 years ago: fbonazzi liked this project.
  • almost 2 years ago: tinita liked this project.
  • almost 2 years ago: c-hagenest liked this project.
  • almost 2 years ago: amanzini liked this project.
  • almost 2 years ago: bzoltan1 started this project.
  • almost 2 years ago: cdywan originated this project.

  • Comments

    • cdywan
      almost 2 years ago by cdywan | Reply

      Leventhtein in C++ https://github.com/Martchus/cpp-utilities/blob/master/misc/levenshtein.cpp

    • cdywan
      almost 2 years ago by cdywan | Reply

      Also similar in spirit https://github.com/nvbn/thefuck

    Similar Projects

    This project is one of its kind!