Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you live inside emacs, https://github.com/areina/helm-dash/ will use dash documentation and use emacs for the search and display of the docs.

Also, works on GNU/Linux and Windows. Also, free software. Also, I'm the co-author.



I saw this a while back and it seemed amazing but I was wondering if there's any way to open the actual live documentation page. So for example if you choose the documentation for `Array.prototype.map` then it'll pull up that page on MDN, rather than the locally cached Dash page.

I know the whole point of Dash is to have locally cached, offline documentation copies, but I was thinking it would be amazing to use that to feed Helm candidates, but actually open the real, live documentation page.


you definitely can do it because the only thing that is in the docsets is a uri starting with https?:// or file:/// .

It seems there are some docsets already doing that[1]. Creating your own docsets is dead easy. just a simple sqlite3 file with a single table.

You can find an example I hacked myself here[2] (very hackish).

It's basically creating a table:

    create table searchIndex(id INTEGER PRIMARY KEY, name TEXT, type TEXT, path TEXT); 
    CREATE UNIQUE INDEX anchr  ON searchIndex (name, type, path);
And filling it with data:

    insert into searchIndex(name,type,path) VALUES ('foo','function','https://example.com')


[1]. https://github.com/areina/helm-dash/issues/65 .

[2]. https://github.com/kidd/AllegroLisp.docset


This is awesome - thanks for sharing your work!


This is great, thank you very much!


But isn't Dash just for Mac?


yup, "also" meaning "in addition". Dash is not free either, and I'm not its coauthor


Of course, "also" means "in addition". I was wondering what I'd do with helm-dash on GNU/Linux if Dash is only for Mac.

The helm-dash repo tagline on GitHub says "Browse Dash docsets inside emacs", so I quickly dismissed it as I don't use Mac.

Reading a bit further, now I see that it doesn't need Dash to be installed. So that's great! I'll see if an ivy/counsel version is out there.


Ah yes, sorry, I missunderstood your question :).

Yep, helm-dash can download docsets from dash servers and use them without the need of Dash whatsoever.

https://github.com/nathankot/counsel-dash .

Enjoy!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: