Skip to content

Instantly share code, notes, and snippets.

@dmi3
Last active September 1, 2023 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmi3/eb6528a8e7c31807830cc3c841cb6c5e to your computer and use it in GitHub Desktop.
Save dmi3/eb6528a8e7c31807830cc3c841cb6c5e to your computer and use it in GitHub Desktop.
Url Preview Markdown https://developer.run/70
[Command]
Command="
copyq:
//https://developer.run/70
//https://copyq.readthedocs.io/en/latest/scripting-api.html
popup(\"Downloading page...\")
// !!! Replace Dir().homePath() with location to store images
r = execute(\"url-preview-md.py\", Dir().homePath(), clipboard())
if (r.stderr) {
popup(\"Error\", r.stderr)
} else {
copy(r.stdout)
popup(\"Download complete\")
paste()
}
"
Icon=\xf15b
InMenu=true
IsGlobalShortcut=true
Name=Url Preview Markdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment