helm-dash
helm-dash copied to clipboard
need a better way to filter for long terms docsets
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.
Hi, and thanks for the report. The issue in this case is the combination of the following:
- We use the name of the docset as a filter IF typed in the beginning. But it has to be the complete name of the docsed.
- Helm works by doing a first filter and after that narrowing from the initial list. The default is 100.
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 .... :/
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")).
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.
great, Should I link this issue to helm?
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.