dash-docs-el / helm-dash

Browse Dash docsets inside emacs
510 stars 59 forks source link

need a better way to filter for long terms docsets #72

Open stardiviner opened 9 years ago

stardiviner commented 9 years ago

Here is the original issue https://github.com/magnars/dash.el/issues/132

I thought it is the issue in dash.el, but it's not, I searched with grep in Rails docset. and found the Flash.html page. in /home/stardiviner/.docsets/Ruby on Rails.docset/Contents/Resources/Documents/api.rubyonrails.org/classes/ActionDispatch/Flash.html

I guess this really is the problem in helm-dash.

kidd commented 9 years ago

Hi, and thanks for the report. The issue in this case is the combination of the following:

As 'Ruby on Rails' is so long name, by the time you typed half of it, the first narrowing has already been done. Note that 'rails' itself wouldn't work.

We'll think how to redo this part to make it more friendly (I also think it's a PITA). By now, my personal hack is to rename ~/.docsets/Ruby on Rails.docset to ror.docset , and change the helm-dash variable accordingly. Then, 'ror flash' works .... :/

stardiviner commented 9 years ago

After rename, the issue is temporary solved. This really need a better way to solve it. You're right. Maybe another way is define a list like (("Ruby on Rails" . "ror") ("docset folder name" . "short keyname")).

kidd commented 9 years ago

Helm has evolved quite a bit since we first launched helm-dash, so probably now there's some way to improving it using helm machinery.

stardiviner commented 9 years ago

great, Should I link this issue to helm?

pronobis commented 9 years ago

Another issue is in case of patterns that exist in the name of the docset or namespace. Example: python docs such as scipy numpy matplotlib have titles like: matplotlib.pyplot.plot and there are tons of results for the keyword plot . Would be great to be able to use regexp and say plot$ or simply make the search prefer matches at the end of the line since that's where the most important part usually is.