5 ms·
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 th
by blaenk 9y ago
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.
- rgrau 9y agoyou 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 https://github.com/areina/helm-dash/issues/65 . [2]. https://github.com/kidd/AllegroLisp.docset https://github.com/kidd/AllegroLisp.docset