-
-
Notifications
You must be signed in to change notification settings - Fork 285
add package search #1834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add package search #1834
Conversation
|
I'm not sure how to test this with the REPL interface. I've only tested it by, julia> import Pkg
julia> Pkg.search(["helloworld", "and", "other", "package", "names"])
For `helloworld` found:
WORLD, HelloWorldC_jll, LOLTools, Electron, and Millboard
For `and` found:
AMD, Ant, PVD, Onda, and JLD
For `other` found:
Tower, OneHot, Torch, FEHM, and OpSel
For `package` found:
Packing, ACME, Pathogen, Pages, and GLMakie
For `names` found:
Andes, NMEA, Mads, GCMAES, and Pages |
|
Test Pkg repl mode using |
|
Thanks, @oxinabox. I'll give it a try. |
|
Okay, cool. That failed. I'll have to figure out where/how to hook into that functionality. |
|
Also rather than implementing own D.L distance can just use |
|
Whoa, that's great. I didn't know that existed. I was just following the discussion in #616. |
|
TODO: tests |
|
So maybe this isn't that useful, as one can just tab-complete inside of pkg>. Any thoughts @oxinabox ? |
|
No, I like it. We just need someone to review and then we can merge it, imo. Anyone strongly against having this? |
explain REPL dependency Co-authored-by: Lyndon White <oxinabox@ucc.asn.au>
|
I think tab completion is good enough for simple things and for more complicated things it is better to use https://juliahub.com/ui/index.html |
Trying to add a Pkg search feature after reading discussion in #616. Uses
an implementation of the Damerau-Levenshtein string distanceREPL.levsort to compare search names against those in the available registries.