ricobuilds / gpt2markdown

A browser extension that exports your ChatGPT conversations to Markdown format.
https://chrome.google.com/webstore/detail/gpt2markdown/mlfimpibamecbdnofjnbkjomeieclnjl
MIT License
73 stars 20 forks source link

[Feature Request] Copy instead of just export. #4

Open juan7732 opened 1 year ago

juan7732 commented 1 year ago

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

Something that might look like this: image

juan7732 commented 1 year ago

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?

ricobuilds commented 1 year ago

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?

juan7732 commented 1 year ago

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