Add normalized search
This makes it possible to find results in lodash docsets by running:
dasht get lodash # this was returning no results before
or
dasht get lo-dash
when the docset name is "Lo-Dash"
Interesting, thanks for the pull request. :+1: Let me consider this further because such normalization can be troublesome in some cases. For example, OpenCV_C and OpenCV_C++ would be normalized to the same opencvc name, which isn't helpful when I'm only interested in searching one of them, not both.
Yes, maybe just not taking into account - and _ would be enough.
What do you think of my proposition ?
I would prefer fixing the root cause by adding the ability to rename docsets during or after installation. :hammer_and_wrench:
So far, I've been thinking of adding a dasht-docsets-alias script that lets you create symlinks to existing docsets under different names. :bulb: But just now, I got an idea for decoupling docset names from their upstream URLs so that we can rename docsets after installation and still be able to update them. :upside_down_face:
Stay tuned. :running_man:
Just wanted to know if there are any updates on this ?
I'll try to revisit this during Xmas break. 🎅
@edi9999 Perhaps you could try matching the literal string and if that fails used the normalized version?