offline-qr-code icon indicating copy to clipboard operation
offline-qr-code copied to clipboard

Save QR SVG to copy-paste clipboard

Open mbrouillet opened this issue 2 years ago • 5 comments

Background

I have seen https://github.com/rugk/offline-qr-code/wiki/FAQ#how-to-save-the-qr-code-on-disk I would love there to be an additional item « Save QR code to clipboard ».

Proposed solution

Add an item line « Save QR code to clipboard SVG » and « Save QR code to clipboard image ».

Alternatives

Recognize Ctrl-C, or systematically place the QR-code in the clipboard each time a QR code is being displayed. (In that case, have an add-on setting to select SVG or PNG).

Additional context

mbrouillet avatar Sep 29 '22 10:09 mbrouillet

Hi, can i work at it?

FarIgos avatar Oct 11 '22 17:10 FarIgos

Both ideas are good ideas, actually. However, I would clarify it as:

  • the extra context menu for clipboard: yes, possible, but AFAIK we'd want the PNG format to be saved in clipboard, only that is paastable in word or other software.
  • when popup is open: recognize Ctrl+C and do the same as above. However, that is a thing you'd want to be able to disable, because one usually may want to copy the URL there. It can be opt-out, however, IMHO.

rugk avatar Oct 19 '22 12:10 rugk

@FarIgos Sure, feel free to take a shot, I've assigned you.

rugk avatar Oct 19 '22 12:10 rugk

@rugk Can I work on this issue? The user you assigned doesn't seem to be active / hasn't opened a pull request.

ketelaar avatar Mar 21 '23 16:03 ketelaar

Sure, did that…

rugk avatar Mar 22 '23 23:03 rugk