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
option to nix-env
#293
Conversation
BTW, from user experience, this won't be too efficient. What do you think e.g. about providing channels with (sqlite) DB containing index for such searches? (I mean using these indices for |
... also, search/installation by executable name might also be nice, for which we already do have the |
@vcunat, it works in 2 seconds for me. Which is not bad at all. I'm not sure sqlite db would be useful or not, but at least that would not work for Can you point me to the implementation of |
Well, on cold cache just reading the whole nixpkgs tree takes much longer, at least with my slow 5400-rpm notebook HDD (and maybe slightly fragmented tree). But I guess it might not be currently efficient to spend time on such enhancements. I only remember that |
I guess this is to some extent obsoleted by the existence of the nox tool which provides a much better UX for searching in general? |
@lheckemann, well, I'd better prefer this solution, because:
So while was lazy to update this patch it's still good to have. And I would stop using nox if this patch is applied (because I don't feel comfortable with interactivity of nox). On the other hand, nobody was interested in this for two years.... |
Side-note: there's also this newly-developed |
We have nix search now, so I guess there's no point in this one? |
Indeed. |
rework notes on search paths
The option does substring search on name, attribute name, and meta-description for all the words specified on command-line. So for example
nix-env -qa --search python amqp
gives you expected result.I believe it should have short alias, but I'm not sure which one. Both
-S
and-s
are used. May be-F
(i.e. find or filter)