-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
refresh specific script #36
Comments
It is theoretically possible, but requires a thorough rewrite of the Enso's scriptotron engine. It was written so that all evaluated symbols of all scripts are cleared before loading update from script files. Unfortunately, this is a task no of the foreseeable future. |
Ok, thanks. I do notice that the Enso editor does update and quite faster. Is there a way to update it like that. |
By default, changes in command files are tracked only in the editor commands. TRACK_COMMAND_CHANGES = True in config.py or the configuration editor. Unfortunately, currently it is impossible to speed up anything because all python symbols used in commands should be recreated. |
Thank you, I will try this. |
I'm running into a problem with updating the commands. I saw in the tutorial that using 'on_quasimode_start()' could solve this problem. But I don't know how to do that. I have the following example: import os def displayMessage(msg): %s " % msg)clipboard = [] def cmd_add_clipboard(ensoapi, name):
#on_quasimode_start() def cmd_clipboard(ensoapi, subject):
cmd_clipboard.valid_args = validarguments #With the following in the json file How should I use on_quasimode_start()? Thanks, Thomas |
Hi, It is possible in the same way as with the valid_args:
|
Hello, Sorry, I'm not able to get it to work with the .valid_args to be dynamic. I am able to load a list at starting quasimode but I don not know how to use for the input arguments.
#With the following in the json file Thanks, Thomas |
|
I have everything working. I was able to improve a lot of scripts thanks to this. Thank you for everything. |
Is it possible to refresh a specific script instead of every script in the commands folder?
Refreshing has become slow with to many scripts.
Thanks,
Thomas
The text was updated successfully, but these errors were encountered: