Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stardiviner opened this issue Mar 23, 2015 · 5 comments
Open

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

stardiviner opened this issue Mar 23, 2015 · 5 comments

Comments

@stardiviner
Copy link
Contributor

Here is the original issue magnars/dash.el#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
Copy link
Member

kidd commented Mar 23, 2015

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 .... :/

@stardiviner
Copy link
Contributor Author

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")).

@stardiviner stardiviner changed the title seems can't find all things need a better way to filter for long terms docsets Mar 23, 2015
@kidd
Copy link
Member

kidd commented Mar 23, 2015

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
Copy link
Contributor Author

great, Should I link this issue to helm?

@pronobis
Copy link

pronobis commented Apr 7, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants