Also, works on GNU/Linux and Windows. Also, free software. Also, I'm the co-author.
Also, works on GNU/Linux and Windows. Also, free software. Also, I'm the co-author.
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.
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 .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.
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!