ricobuilds/gpt2markdown

[Feature Request] Copy instead of just export.

Opened this issue · 3 comments

It'd be nice to copy to clipboard instead of just having it as a download

Something that might look like this:
image

Create a separate button, call htmlToMarkdown, and instead of saving, just https://www.w3schools.com/howto/howto_js_copy_clipboard.asp#:~:text=navigator.clipboard.writeText(copyText.value)%3B + a nice little alert or something?

Thoughts?

Yes, I think that would be a great addition! Having a 'copy' option would allow for more flexibility as one may not want to completely export to a file at times.

Do you have any ideas for the alert, or maybe just have a simple animation when the button's clicked on?

No sabia que hablabas español tambien jaja,

I was thinking I was just thinking a normal js alert with "Markdown has been copied to clipboard".
The animation works too, or even having a button that looks like the copy button instead of what I put on there.
image