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

Disable paste rather then copy in the tutorial. #1216

Open
amadeuspagel opened this issue May 25, 2024 · 2 comments
Open

Disable paste rather then copy in the tutorial. #1216

amadeuspagel opened this issue May 25, 2024 · 2 comments

Comments

@amadeuspagel
Copy link

Describe the problem

I'm always frustrated when I look something up in the tutorial, try to copy something only to see a message telling me that "copy and paste is currently disabled".

Describe the proposed solution

I would like to be able to copy from the tutorial.

If copy-paste has to be prevented, I'd prefer it if paste rather then copy would be disabled, so that you can still copy code when you look it up. But I'm not sure disabling copy-paste makes sense at all, given the prominent solve button.

Importance

nice to have

@dummdidumm
Copy link
Member

dummdidumm commented May 25, 2024

The tutorial is optimized for interactive learning, and copy-pasting prevents you from creating the muscle memory required. We're therefore not going to remove it. There's a "don't ask again for this session" checkbox. I would be open to reconsider whether that should only apply to the current session or if that decision should be stored in local storage so you don't have to check it again on revisit.

Disabling pasting instead of copying is another interesting way to look at it, mhm...

@hanszoons
Copy link

Agree on the warn-on-paste!

When I want to use a pattern or syntax but can't remember the details, I often return to the tutorial where I learned it, rather than the documentation (which is often a bit too terse).

The warning on copy always felt a bit condescending in this case.

@Conduitry Conduitry transferred this issue from sveltejs/svelte Mar 24, 2025
@Conduitry Conduitry marked this as a duplicate of #1292 Apr 11, 2025
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

3 participants