alezost / guix.el

Emacs interface for GNU Guix package manager
https://emacs-guix.gitlab.io/website/
GNU General Public License v3.0
139 stars 16 forks source link

wrong search with regexp #33

Open zimoun opened 5 years ago

zimoun commented 5 years ago

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.

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

alezost commented 5 years ago

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

walseb commented 5 years ago

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

alezost commented 5 years ago

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