zaidka / cliget

A Firefox addon to download login-protected files from the command line
https://addons.mozilla.org/en-US/firefox/addon/cliget/
Mozilla Public License 2.0
358 stars 57 forks source link

Copy command directly to clipboard #63

Open lukasmarek opened 6 years ago

lukasmarek commented 6 years ago

I've attached patch (as txt at the end of the post) that copies generated command directly to clipboard. The clipboard handling code is not very nice under the current Firefox version but hopefully this will improve in later versions.

I guess that this feature is not for everyone as it forcibly overrides clipboard. A checkbox (somewhere) would be required for mainline. I would like to ask if there is interest in such functionality and if there is a chance that it gets accepted. Also other thoughts like where to possibly enable it are welcome.

cliget_clipboard.txt

LenoJames commented 5 years ago

Not a programmer, but a fan of the extension. This sounds like a great idea! A preference to auto-copy to clipboard, or maybe even save as a txt file would be nice.

And maybe this is along the same vein. Perhaps an enhancement to open a terminal emulator and paste the command into it too.