Skip to content

fix: re-enable code copying#463

Open
Nerixyz wants to merge 1 commit into
Chatterino:masterfrom
Nerixyz:fix/reenable-copy-feature
Open

fix: re-enable code copying#463
Nerixyz wants to merge 1 commit into
Chatterino:masterfrom
Nerixyz:fix/reenable-copy-feature

Conversation

@Nerixyz

@Nerixyz Nerixyz commented Sep 7, 2025

Copy link
Copy Markdown
Contributor

...but disable it for the logging examples, as described in #462 (comment).

We already have code examples in the theme and developer documentation where it makes sense to copy code. Let's not break this.

@netlify

netlify Bot commented Sep 7, 2025

Copy link
Copy Markdown

Deploy Preview for chatterino-wiki-dev ready!

Name Link
🔨 Latest commit 06e0a3a
🔍 Latest deploy log https://app.netlify.com/projects/chatterino-wiki-dev/deploys/68bdc0fe25e5de0008cef7a6
😎 Deploy Preview https://deploy-preview-463--chatterino-wiki-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@pajlada pajlada left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm OK with this, but I don't think any block of code in the Themes or Contributing sections should have a copy button - https://deploy-preview-463--chatterino-wiki-dev.netlify.app/Crash%20Analysis/#minidump-stackwalk is basically the only section where copy button makes sense since it's a "copy and fix last argument" kind of thing

@Nerixyz

Nerixyz commented Sep 7, 2025

Copy link
Copy Markdown
Contributor Author

in the Themes

Why does this not make sense here? If I wanted to write a theme from scratch, I would want to copy the whole code block. I shouldn't need to manually select the block.

Contributing sections

If I wanted to play around with the code, I shouldn't need to manually select the block.


I think we should be liberal with the copy button. We should only disable it where copying & pasting the whole block would result in some error (as with the terminal sessions). Copying the example in the themes section gives you valid JSON(5), in the contributor docs you get syntactically correct C++.

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

Successfully merging this pull request may close these issues.

2 participants