Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what to do when no clippy content #15

Open
ananelson opened this issue Jun 25, 2011 · 0 comments
Open

what to do when no clippy content #15

ananelson opened this issue Jun 25, 2011 · 0 comments

Comments

@ananelson
Copy link

I just accidentally created a clippy with no content, and I was confused when I tested this and the pasted output was the same as the previous clippy on the page. I assumed I had entered the same text in two places at first. Apparently, because there was no content, nothing was copied to the clipboard so the previous contents of the clipboard were still there. However I still got the "copied!" message when I clicked.

It might be nice to have some better feedback here, maybe (a) a really obvious error when you create a blank clippy like a red X to tell the dev that something is wrong (b) a message like "Oops, nothing to copy!" after clicking or (c) copy blank content to the clipboard so previous contents are overwritten

On my end I'm just adding better verification to my helper function, so that will fix this for me :-)

Btw I'm using clippy here: http://www.dexy.it/docs/tutorials/0-hello-world/ if you're curious (scroll down a bit). It's very helpful! I've built it in to one of my filters so the source code goes directly in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant