out-of-cheese-error / gooseberry

A command line utility to generate a knowledge base from Hypothesis annotations
Apache License 2.0
152 stars 9 forks source link

avoid outdated crate skim #106

Open jonassmedegaard opened 3 months ago

jonassmedegaard commented 3 months ago

The crate skim has seen no development activites for more than a year, and depends on tuibox stalled for 2 years. I am concerned about maintainability, and already struggle now: I am trying to build Gooseberry for Debian, where a minimum of concurrent branches of each crate is kept, and my attempts at rebasing to have tuikit link with newer nix stopped at v0.26, where Debian now has moved on to v0.27. Obviously my work on rebasing dependencies is not your concern, but I mention them as they are indicative of a larger concern about long-term sustainability.

Would it perhaps be possible to switch from skim to the fuzzy-solving optionally built into dialoguer? Or perhaps switch from dialoguer to the more modern inquire which also optionally does fuzzy-resolving?

Ninjani commented 3 months ago

skim currently does quite a bit more than fuzzy search in gooseberry, it's used to generate the tui with a preview window + keyboard shortcuts and search highlighting. However, this is all compartmentalized in search.rs, so should be possible to replace it piecemeal. I don't believe inquire provides the same functionality though, will take a look if there are now other alternatives.

jonassmedegaard commented 2 months ago

nucleo is loosely described as a replacement for skim.