willfarrell / alfred-pkgman-workflow Goto Github PK
View Code? Open in Web Editor NEWPackage Repo Search
License: MIT License
Package Repo Search
License: MIT License
Due to this search being a regex parsing of the search results page HTML, the first item in any PEAR search seems to be “Register”, with the description being part of the HTML for that link.
Tightening up the regex might help, or perhaps there’s an actual API that can be queried instead of doing regex parsing.
If I get a chance, I’ll fix this up myself & issue a PR.
I don't know what would be the problem, but on my setup, it doesn't seem to work at all. Please see the quickcast.
Alfred version: 2.5.1
Package Manager version: 2.6
when typed search term in Alfred, no match would return. But if you continue to ask it to search on https://index.docker.io , then you will get search results from the website.
Tried to implement this myself using npm.php, but failed :(
The link to yeoman.io is wrong, goes to yoeman.io. Not a big issue, but still worth noting.
Not possible to run natively on a mac. will require a 3rd party server.
Anyone know a solution?
Dont think this provides much info but here is what i got from Alfred's debug console when trying to query npm express
[INFO: alfred.workflow.input.scriptfilter] <?xml version="1.0"?>
<items><item uid="npm-min" arg="" valid="yes" autocomplete=""><title>Minimum query length of 1 not met.</title><subtitle></subtitle><icon>icon-cache/npm.png</icon></item><item uid="npm-www" arg="https://www.npmjs.org/" valid="yes" autocomplete=""><title>Go to the website</title><subtitle>https://www.npmjs.org</subtitle><icon>icon-cache/npm.png</icon></item></items>
[INFO: alfred.workflow.input.scriptfilter] <?xml version="1.0"?>
<items><item uid="npm-search" arg="https://www.npmjs.org/search?q=ex" valid="yes" autocomplete=""><title>No packages were found that matched "ex"</title><subtitle>Click to see the results for yourself</subtitle><icon>icon-cache/npm.png</icon></item><item uid="npm-www" arg="https://www.npmjs.org/" valid="yes" autocomplete=""><title>Go to the website</title><subtitle>https://www.npmjs.org</subtitle><icon>icon-cache/npm.png</icon></item></items>
[INFO: alfred.workflow.input.scriptfilter] <?xml version="1.0"?>
<items><item uid="npm-search" arg="https://www.npmjs.org/search?q=expres" valid="yes" autocomplete=""><title>No packages were found that matched "expres"</title><subtitle>Click to see the results for yourself</subtitle><icon>icon-cache/npm.png</icon></item><item uid="npm-www" arg="https://www.npmjs.org/" valid="yes" autocomplete=""><title>Go to the website</title><subtitle>https://www.npmjs.org</subtitle><icon>icon-cache/npm.png</icon></item></items>
[INFO: alfred.workflow.input.scriptfilter] <?xml version="1.0"?>
<items><item uid="npm-search" arg="https://www.npmjs.org/search?q=express" valid="yes" autocomplete=""><title>No packages were found that matched "express"</title><subtitle>Click to see the results for yourself</subtitle><icon>icon-cache/npm.png</icon></item><item uid="npm-www" arg="https://www.npmjs.org/" valid="yes" autocomplete=""><title>Go to the website</title><subtitle>https://www.npmjs.org</subtitle><icon>icon-cache/npm.png</icon></item></items>
It may be significant that i used to have other Alfred searches that were triggered by the same keywords.
This would simplify downloading/installing.
Hey when I am trying to run one of the package managers, I get this error when i type the last charracter of the keyword http://dl.getdropbox.com/u/7422112/screenshots/Screen%20Shot%202013-11-22%20at%2010.28.54.png
Googled around but didn't find anything specific.
In the begin when I installed this workflow, It worked fine.
Maybe because of one of the updates by alfred itself?
Currently running on osx 10.7.5
Hi,
The grunt search does not return anything, saying "no plugins were found that match 'contrib'" and "click to see results for yourself" but when I click the results to see for myself I actually see a list of matching plugins for grunt with that name.
Is it possible that the API has been updated?
Alfred 2.4 (279) with alfred-pkgman 1.4
Thanks,
Dorian
apt-cache search <query>
on Ubuntu
Similar to the Docker workflow: https://vagrantcloud.com/boxes/search
ie http://braumeister.org/repos/josegonzalez/homebrew-php/browse/c for composer
I have used your workflow many times and my most valuable feature is to quickly know which is the current version of a node module. But since a month or 2 it is not showing like you show (in the image) on your github-page.
I am only seeing for "npm send":
What is the cause? Is it npmjs.org?
Npm seems to be the only one (I use) that has issues with showing packages.
Using this workflow from Packal with Packal Updater.
Screenshot: http://inft.ly/ZCrjPTz
Add new keyterm and logo
Sample:
Package: 2ping
Version: 2.0-1
Installed-Size: 134
Maintainer: Ryan Finnie <[email protected]>
Architecture: all
Depends: perl
Recommends: perl-modules, libio-socket-inet6-perl
Suggests: libdigest-sha-perl, libdigest-crc-perl
Size: 30724
SHA256: fd4396ef6793a8fcdf38e751ae60ce513cf4389b5aeebb51af13a8f7995fd521
SHA1: 19baa38dcc480a218ac4db24ca6f0be6df04a1f6
MD5sum: a815f73f1894e7a12619d37d3dbc1bbc
Description: Ping utility to determine directional packet loss
Homepage: http://www.finnie.org/software/2ping/
Description-md5: 2543c220a763445976d1348c5b593743
Tag: implemented-in::perl, interface::commandline, protocol::ip,
role::program, scope::utility, use::analysing, use::measuring,
works-with::network-traffic
Section: net
Priority: optional
Filename: pool/main/2/2ping/2ping_2.0-1_all.deb
links go to: https://packagist.org//packages/{pkgname}
TODO remove extra /
No packages show in search results.
gulp and grunt are not working
One thing I'd like to get started is to help identify the differences between pkgmans and what we're getting from their APIs/parse to help with missing features. Some columns I had in mind were:
"I'm not sure what happened but the npm workflow no longer returns results when doing a search."
Reported by @mdi at zenorocha/alfred-workflows#54
info.plist
file in the built workflow has Compoer instead of Composer. The typo ends up in the subtext.
echo $w->toxml();</string>
<key>subtext</key>
<string>Search Compoer for "{query}"</string>
<key>title</key>
<string>Composer</string>
yo
Just another proposition for package manager:
url = http://react-components.com
searchurl = http://react-components.com/search/{query}
It seems that, with the new Rubygems, their API responses have changed to the point that this workflow no longer “finds” a list of gems to display in Alfred.
Opening this issue so it’s not forgotten, but I’ll try to do the work to fix it up myself & issue a PR.
Add support for http://gratimax.github.io/search-gulp-plugins/
Is there any way you could optimize the way for example npm
workflow performs the first search?
For instance, it seems that when I type npm ramda
it will first perform npm search with empty string, because I initially get the message "Minimum query length not met". It takes about 1-2 seconds after that to get the real result.
Sometimes it might search first for r
before finally searching ramda
. I don't type particularly slow.
I realize this is not a terribly big deal but I see some room for improvement.
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.