wrong search with regexp
Dear,
Giving a look to the guix search command, see [1] and [2], I notice that M-x guix p r drawing tools outputs only these 2 packages texlive-latex-eepic and tuxpaint.
-
The good news is that the issue reported in
guix searchis not inM-x guix p r. :-) -
The bad news is that---for example---the package
r-cliis not listed and it should be because thedescriptionfield has the both termsdrawingandtools.
Do I miss something?
Thank you in advance. And thank you for this nice interface.
All he best, simon
[1] https://lists.gnu.org/archive/html/guix-devel/2019-07/msg00263.html [2] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=36763
Sorry, such separating of words (using a space) is not supported. This search accepts a usual regular expression, so it searches for the whole "drawing tools" string (and does not find it). Searching for "tools.*drawing" would probably work (sorry, currently I cannot check this).
But it is not perfect. I agree that support for multiple search keywords would be much better :-)
Passing the search string through ivy--regex-plus should allow it to work like you want it to since it generates regexps out of strings in the format you describe. It just turns spaces into wildcards basically
@walseb, Thank you for the pointer. I am not going to use ivy--regex-plus as it will introduce another dependency (ivy) for Emacs-Guix, but I hope I will implement this feature some day :-)