yannickglt / alfred-devdocs Goto Github PK
View Code? Open in Web Editor NEWAlfred workflow for devdocs.io
License: GNU General Public License v2.0
Alfred workflow for devdocs.io
License: GNU General Public License v2.0
When using cdoc:add and request all docs to be added, the workflow disappears from Alfred app.
Reinstalling/replacing devdocs workflow brings it back, but have to install docs manually to keep it working.
Is it possible or has anyone been able to have the search open within the devdocs desktop version instead of the browser? It's very close to shat the shift
quicklook is doing.
Thanks!
Hi,
Absolutely awesome workflow, by the way. The global search isn't currently working (Alfred 3). Throws the following error:
[2016-05-31 00:46:19][ERROR: input.scriptfilter] Code 255: Catchable fatal error: Object of class stdClass could not be converted to string in /Users/diego/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.EFF004BE-F168-4B3E-BCEA-DA9EE68258C7/scripts/devdocs.php on line 55
Hi,
I'm trying to get this workflow to run but it doesn't want to open devdocs.io. Listing, adding and search docs works fine but when I want to open a particular documentation I get the following error message with a MacOs logo:
The application can't be opened
-50
I tried setting the browser (in my case Firefox) in the "Open URL" step of the workflow. This gets rid of the error message and it does focus the browser when I open a documentation but it does not open the devdocs.io (or any other) webpage.
I'm using macOS BigSur 11.1 and Firefox 84.0.2
Thank you for this useful workflow. Was able to add all docs I need except for WordPress.
The command cdoc:add wordpress doesn't work. But I see WordPress docs here https://devdocs.io.
Any idea? Can I manually add them? Thanks!
Trying to find yii2 doc for "findAll":
Nothing happens when I click "Enter" or "cmd+1" or "shift+cmd+1".
Expected: open browser window with documentation (or QuickLook window with shift)
But when I trying to search using the alias: "yii~2.0 findAll" it opens search result page at browser when I click cmd+1, cmd+2,.. Also it opens search result page at browser when I click shift+cmd+1, shift+cmd+2... But with shift it's expected to open search result at QuickLook window:
When searched in devdocs.io, content can be loaded fast due to indexDB used by devdocs.io website. But when searched in alfred, it takes too much time to preview the docs. It seems that alfred cannot take advantage of indexDB to cache devdocs documentation, therefore request content via network when using shift to preview the docs.
Is there any solution to promote the preview performance?
Love the workflow, it will help a ton. Though I am unclear on how to use the cdoc:* commands. Where do I use them?
EDIT: Looks like v.1.0.0 doesn't have conf files. (Thats what your curl is grabbing)
I spent quite a bit of time customizing the different keywords for each doc to my liking. When I then imported a new document set, all my custom keyword were reset.
Search results are not consistent with DevDocs. For example, when searching Javascript for "acceleration" on DevDocs.io returns results for DeviceMotionEvent
and others.
When using the same query string in this Alfred workflow, the results return nothing. The closest it comes is "acce" returns "Property Accessors (Operators)," but then no more results as I continue to type.
What differs with your method of search?
The ability to create tiny aliases would improve the ux.
For example, the keyword for the last Angular's doc is angular~4_typescript
which is quiet long.
Thanks to this feature, we would be able to create a fast and simple alias ng
to get access the same documentation.
Obviously, this feature does make sense only if there is the ability to save and keep aliases after upgrades of the workflow. It should not be so much complicated by using the same system as local data and documentation caching.
It looks like the JSON file now lives here: http://devdocs.io/docs/docs.json
Is there some environment variables I can set to make this work behind a proxy? I've HTTP_PROXY and HTTPS_PROXY set but it doesn't help.
Hi, Yannick
I am puzzled why it can open html with Quicklook on Mac by striking shift keypress. Can you give some description about how it works?
Thanks.
cdoc:add Ability to display version information from high to low
On macOS 10.12.3 (16D32) and Alfred v3.3.1 [806], I got this error:
[ERROR: input.scriptfilter] JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON:
Warning: Invalid argument supplied for foreach() in Alfred.alfredpreferences/workflows/user.workflow.233DD8DF-9F40-4714-8B5E-8376775DB291/scripts/devdocs.php on line 56
I tried to print the result of file_get_contents('http://devdocs.io/docs/docs.json')
, looks fine:
[{"name":"Angular","slug":"angular~2_typescript","type":"angular","links":{"home":"https://angular.io/","code":"https://github.com/angular/angular"},"version":"2 TypeScript","release":"2.4.7","mtime":1487432703,"db_size":3380979}, ...]
Refreshing docs individually works as expected, but cdoc:refresh
"All docs" returns an error. I'm not familiar with where these messages get logged (attempted logging them through the workflow debugger, but there were no results).
All that I have is the snippet from the notification:
I'd be happy to provide the full error message if you have a suggestion on where I can find it. Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.