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

Shared-/User-Libararies tab #4

Open
3 tasks
BuckarooBanzay opened this issue Jan 12, 2024 · 2 comments
Open
3 tasks

Shared-/User-Libararies tab #4

BuckarooBanzay opened this issue Jan 12, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@BuckarooBanzay
Copy link
Member

A tab with per-user or global ingame libraries and snippets

TBD:

  • who sees who's code
  • who can manage global code and snippets
  • performance? (maybe precompile)
@BuckarooBanzay BuckarooBanzay added the enhancement New feature or request label Jan 12, 2024
@OgelGames
Copy link
Contributor

I really should get working on my lua sandbox library mod thing... I had a similar idea to this before, but more like a github gist type thing, where you can share and copy code, or keep private snippets.

Merging the idea with libraries is an interesting idea, instead of having to copy the code you could load it with a custom require function. It is possible to have a safe loadstring function too.

@BuckarooBanzay
Copy link
Member Author

I really should get working on my lua sandbox library mod thing... I had a similar idea to this before, but more like a github gist type thing, where you can share and copy code, or keep private snippets.

no pressure, i have some cleanups ready to commit but i don't get to work on this feature right now :)

Merging the idea with libraries is an interesting idea, instead of having to copy the code you could load it with a custom require function. It is possible to have a safe loadstring function too.

Not sure about the implementation but i would use the mod-storage as a library with per-user prefix (code/BuckarooBanzai/my-awesome-library for example) and maybe allow search/lookup somehow...

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

No branches or pull requests

2 participants