Skip to content
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 search functionality #13

Open
rvd opened this issue Feb 22, 2014 · 1 comment
Open

Add search functionality #13

rvd opened this issue Feb 22, 2014 · 1 comment

Comments

@rvd
Copy link

rvd commented Feb 22, 2014

i.e.
$ sam search "keyword"

keyword would then be matched against title and description of all published packages.

$ sam info "package"
could be a printout of description and dependencies

I suspect the grimoire was originally meant to be more than just a collection of Origins, and descriptions longer than one line would perfectly fit in the formula yaml files.

As it is now, no formula has descriptions, so on "sam update" a library/index or stub file could be created/updated which holds at least a description of every package copied from the usefile of that package. This index could then be used for the search.

@nddrylliog
Copy link
Member

Indeed, the library should ideally contain more than origins, such as descriptions, homepages, etc. As for having a local index to speed up search, that could be for a v2 of the search feature - seeing as the number of formulas is quite low for the time being, even a plain text search would work (afaict homebrew doesn't have an index file, just flat files for each formula and it does the search in that).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants