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

Is custom scripting for end users feasible? #35

Open
GeorgeCiesinski opened this issue Feb 25, 2020 · 1 comment
Open

Is custom scripting for end users feasible? #35

GeorgeCiesinski opened this issue Feb 25, 2020 · 1 comment
Assignees
Labels
question Further information is requested
Milestone

Comments

@GeorgeCiesinski
Copy link
Owner

I had an idea that requires further thought. What if there was a command feature in Text-Script where users can write custom python scripts so that they can create custom text editing capabilities.

For example, lets say a user wants to add a custom command that looks like: !currentdate. They could create a python script called currentdate.py that accepts no input, but returns the current date in YYYY/MM/DD format.

To accomodate this, Text-Script would scan for custom python files in a specific folder. It would add the custom commands to it's command list. When it detects the command, it would call the custom script, and await the return string. It would then paste the return string the exact same way it does when it copies and pastes textblocks.

@GeorgeCiesinski GeorgeCiesinski added the question Further information is requested label Feb 25, 2020
@GeorgeCiesinski GeorgeCiesinski added this to the 2.0 Release milestone Feb 25, 2020
@GeorgeCiesinski GeorgeCiesinski self-assigned this Feb 25, 2020
@GeorgeCiesinski
Copy link
Owner Author

This comes with the obvious issue to cause massive potential damage if a malicious python script is installed into this. A warning should advise the user if custom scripting is enabled, and should strongly recommend that their IT team checks if they are the ones who put the custom python script there.

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

No branches or pull requests

1 participant