dash-docs-el / helm-dash

Browse Dash docsets inside emacs
511 stars 59 forks source link

Multiple docset formats #19

Closed areina closed 10 years ago

areina commented 10 years ago

With this, we add support for DASH and ZDASH docset formats.

It's working but I would like to improve the code before merge it in master. If someone knows a good way to do it, ideas are welcome.

edit: I updated the code. @kidd @agpchil could you test the behaviour, please? :smile:

kidd commented 10 years ago

not working yet. for some reason, zdash docsets aren't working here....

areina commented 10 years ago

mmm, I think that sqlite output buffer (sqlite.el stuff) is not working properly with multiline sql. I changed it and it's working well for me right now. I have enabled these docsets: redis, go and css. CSS docset is in ZDASH format.

agpchil commented 10 years ago

It's not working well for me. CSS docset lists ok in helm-dash but failed to retrieve the URL when selecting. Looks like it builds the url wrong: Cannot retrieve URL: file:///home/user/.docsets/CSS.docset/Contents/Resources/Documents/nil.

Something similar happens in C docset: Cannot retrieve URL: file:///home/user/.docsets/C.docset/Contents/Resources/Documents/fprintf. (should end with .html?)

Also, is there a way to enable Emacs Lisp docset? It doesn't seems to work for me (maybe something tricky with docset name with spaces?)

areina commented 10 years ago

I will try those docsets later, thanks @agpchil for the feedback!

kidd commented 10 years ago

I tried it again now and it seems it's working fine. (css and Emacs lisp) However, I found an issue (not sure if related to this or not)

(setq helm-dash-common-docsets '("CSS" "Emacs Lisp")) then search for 'for' then press 'm', in that moment, Emacs lisp 'format' appears, backspace, and disappears but other css results appear. Not clear what it is.

kidd commented 10 years ago

esqlite pr has been merged. test and merge are comming soon!