Skip to content

Instantly share code, notes, and snippets.

@dmi3
Last active August 26, 2024 02:47
Show Gist options
  • 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