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

copytoclipboard #120

Closed
Droid-D3V opened this issue Nov 4, 2021 · 3 comments
Closed

copytoclipboard #120

Droid-D3V opened this issue Nov 4, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@Droid-D3V
Copy link

hi, i am a big fan on lua and luau, i have a request for a command called "copytoclipboard", it would copy a set piece of text to your clipboard, like copying and pasting, thanks - droid

@Droid-D3V Droid-D3V added the enhancement New feature or request label Nov 4, 2021
@Droid-D3V
Copy link
Author

also, please, add a code tester to the website, so i can code in luau on the website, like the demo in the lua.org website

@LoganDark
Copy link
Contributor

This would escape the sandbox. Luau has no concept of clipboards. It's a part of the operating system which Luau has no knowledge of.

@zeux
Copy link
Collaborator

zeux commented Nov 4, 2021

Yup, as @LoganDark says, this would not be sandbox friendly and it would also be platform specific in ways that aren't very interesting for Luau.

As for code tester - we'd love to get this! I think the easiest path is to build Luau REPL using Emscripten to WASM and create an HTML wrapper around it. Pull requests with that functionality are welcome, feel free to create a separate feature request for that.

@zeux zeux closed this as completed Nov 4, 2021
@zeux zeux added the wontfix label Nov 4, 2021
@zeux zeux closed this as not planned Won't fix, can't repro, duplicate, stale Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

3 participants