spamwax / alfred-pinboard-rs

Alfred Workflow for Pinboard (Rust)
Other
277 stars 13 forks source link

use alfred-firefox workflow (if installed) to get the current URL from Firefox #125

Closed brttbndr closed 3 years ago

brttbndr commented 3 years ago

The alfred-firefox workflow uses native messaging and a browser extension to integrate with Firefox. It provides a command-line client that talks to the plugin.

https://github.com/deanishe/alfred-firefox

This PR uses that client to get the current tab's URL from Firefox.

If the workflow is not installed, it falls back to using the existing behavior of "focus URL bar, copy text to clipboard"

I have tested the following:

spamwax commented 3 years ago

Thanks, I'll merge this as soon as I can test it on my macOS. Looking at that workflow, I wish that Firefox had a better API and AppleScript support.