GithubHelp home page GithubHelp logo

yannickglt / alfred-devdocs Goto Github PK

View Code? Open in Web Editor NEW
644.0 16.0 26.0 12.78 MB

Alfred workflow for devdocs.io

License: GNU General Public License v2.0

PHP 56.92% HTML 43.08%
alfred-workflow alfred3-workflow devdocs dash api-documentation zeal

alfred-devdocs's People

Contributors

codelingobot avatar inecmc avatar jamesstout avatar johndturn avatar julien-vidal avatar kapik avatar rchl avatar wesbos avatar yannickglt avatar yarray avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alfred-devdocs's Issues

Workflow do nothing when I select search option

Trying to find yii2 doc for "findAll":
2016-08-01 at 10 54
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:
2016-08-01 at 10 57

Allow creating custom aliases of docs

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.
image

Thanks to this feature, we would be able to create a fast and simple alias ng to get access the same documentation.
image

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.

Workflow disappears when adding all docs

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.

Can't find doc List

๐Ÿค”I encountered a problem, when searched in alfred, the doc list is empty,so confused, I checked my network and it is normal.
image

Does not open devdocs.io

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

Open inside DevDocs Desktop instead of browser

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!

JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON

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}, ...]

Search results fewer than on DevDocs

Search results are not consistent with DevDocs. For example, when searching Javascript for "acceleration" on DevDocs.io returns results for DeviceMotionEvent and others.

image

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?

cdoc commands

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)

how does this thing work?

Hello ssorry for the nooby question but this thing doesnt seem to be working for me.. i installed it as normal but I am not sure what to type to activate it...

its definitely installed...
image

but i am unable to search anything...
image

Search Defaults to Google. Amazon, etc

I may be doing something wrong, but when I try doing the searches listed as examples, seems to not recognize the keywords and goes to the fallback search . I am new to Alfred, so I may be missing something here.

fullscreen_8_8_16__6_39_pm

global search not working

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

loading slowly when preview with shift

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?

Can't add WordPress doc

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!

cdoc:refresh All docs errors

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:

image

I'd be happy to provide the full error message if you have a suggestion on where I can find it. Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.