dasht icon indicating copy to clipboard operation
dasht copied to clipboard

Add normalized search

Open edi9999 opened this issue 8 years ago • 7 comments

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"

edi9999 avatar Jan 30 '17 08:01 edi9999

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.

sunaku avatar Feb 05 '17 19:02 sunaku

Yes, maybe just not taking into account - and _ would be enough.

edi9999 avatar Feb 06 '17 13:02 edi9999

What do you think of my proposition ?

edi9999 avatar May 09 '17 07:05 edi9999

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:

sunaku avatar May 10 '17 05:05 sunaku

Just wanted to know if there are any updates on this ?

edi9999 avatar Dec 20 '17 08:12 edi9999

I'll try to revisit this during Xmas break. 🎅

sunaku avatar Dec 21 '17 06:12 sunaku

@edi9999 Perhaps you could try matching the literal string and if that fails used the normalized version?

mnewt avatar Nov 05 '18 04:11 mnewt