guix.el icon indicating copy to clipboard operation
guix.el copied to clipboard

wrong search with regexp

Open zimoun opened this issue 6 years ago • 3 comments

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 search is not in M-x guix p r. :-)

  • The bad news is that---for example---the package r-cli is not listed and it should be because the description field has the both terms drawing and tools.

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

zimoun avatar Jul 23 '19 09:07 zimoun

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 :-)

alezost avatar Jul 23 '19 19:07 alezost

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 avatar Jul 23 '19 20:07 walseb

@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 :-)

alezost avatar Jul 25 '19 16:07 alezost