klaascuvelier / alfred-mdn Goto Github PK
View Code? Open in Web Editor NEWAlfred workflow for MDN search
Alfred workflow for MDN search
If it is currently working, I should deal with my npm... so, No worries.
Love this workflow, however, on some search results the description is rendered useless by the tags.
Is it possible to filter these out?
I don't want to install ALfred Workflows through package managers because I have NVM and this is nothing I want in every version.
I just installed a new release of this package, going from 2.1.1 to 2.1.5.
After updating, I saw that the older version still existed.
Is it possible to remove the older release after updating? That would be great!
I got this when trying to uninstall alfred-mdn:
npm uninstall -g alfred-mdn
> [email protected] preuninstall /usr/local/lib/node_modules/alfred-mdn
> alfy-cleanup
npm ERR! code EEXIST
npm ERR! path /usr/local/lib/node_modules/alfred-mdn/node_modules/execa/node_modules/.bin/which
npm ERR! Refusing to delete /usr/local/lib/node_modules/alfred-mdn/node_modules/execa/node_modules/.bin/which: is outside /usr/local/lib/node_modules/alfred-mdn/node_modules/execa/node_modules/which and not a link
npm ERR! File exists: /usr/local/lib/node_modules/alfred-mdn/node_modules/execa/node_modules/.bin/which
npm ERR! Move it away, and try again.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/lucaban/.npm/_logs/2019-10-24T10_43_06_491Z-debug.log
I'm just throwing it out here, not sure if it's really an "issue", so i'll close it :D
@klaascuvelier Now I'm getting this on the last version:
Not sure if it's related to #6
ReferenceError: results is not defined
at /usr/local/lib/node_modules/alfred-mdn/index.js:9:23
mdn 2.0.2
Alfred 4.0.5
darwin 19.0.0
I installed the newest version [email protected]
and I can still search for things, but if I press enter nothing happens. ๐
Hi Klaas,
Great alfred extension! I use this many times daily and just now received an error whenever I trigger a search:
ParseError: Unexpected token < in JSON at position 3 in "https://developer.mozilla.org/en-US/search.json?q=h":
<!DOCTYPE html>
<html lang="en-US" dir="ltr" class="no-js">
<head prefix="...
at stream.catch.then.data (/Users/peter/.nvm/versions/node/v12.4.0/lib/node_modules/alfred-mdn/node_modules/got/index.js:118:14)
Any idea how to resolve this?
Thanks
mdn 1.0.2
Alfred 4.0.3
darwin x64 18.7.0
Workflow has stopped working since a couple of weeks ago. Initially thought the MDN site is down or something, but it has been like this for the past couple of weeks.
The following is the Alfred error that I got from running the mdn
command.
TypeError: Cannot read property 'replace' of undefined
at stripHtml (/usr/local/lib/node_modules/alfred-mdn/index.js:37:17)
at /usr/local/lib/node_modules/alfred-mdn/index.js:10:26
at Array.map ()
at /usr/local/lib/node_modules/alfred-mdn/index.js:8:35
Reinstalling and updating the extension doesn't seem to fix it as well.
Currently running Node v14.15.4
Hi, I've just updated alfred-mdn to check if it's working after #6 fixin and got this error:
[11:38:57.374] Logging Started...
[11:39:06.348] mdn[Script Filter] Queuing argument 's'
[11:39:06.657] mdn[Script Filter] Queuing argument 'sl'
[11:39:06.857] mdn[Script Filter] Queuing argument 'sli'
[11:39:06.961] mdn[Script Filter] Queuing argument 'slic'
[11:39:07.049] mdn[Script Filter] Queuing argument 'slice'
[11:39:08.381] mdn[Script Filter] Script with argv 'slice' finished
[11:39:08.384] ERROR: mdn[Script Filter] Code 1: {
"items": [
{
"title": "ReferenceError: results is not defined\n at alfy.fetch.then.results (/Users/evanre/.nvm/versions/node/v10.13.0/lib/node_modules/alfred-mdn/index.js:9:23)\n at process._tickCallback (internal/process/next_tick.js:68:7)",
"subtitle": "Press โL to see the full error and โC to copy it.",
"valid": false,
"text": {
"copy": "\nReferenceError: results is not defined\n at alfy.fetch.then.results (/Users/evanre/.nvm/versions/node/v10.13.0/lib/node_modules/alfred-mdn/index.js:9:23)\n
\n\n-\nmdn 2.0.2\nAlfred 4.0.3\ndarwin 18.7.0",
"largetype": "ReferenceError: results is not defined\n at alfy.fetch.then.results (/Users/evanre/.nvm/versions/node/v10.13.0/lib/node_modules/alfred-mdn/index.js:9:23)"
},
"icon": {
"path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"
}
}
]
}
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.