Script editor Custom Methods

When trying to copy code, if the selected text contains the def line, nothing is put on the clipboard. This led me to believe copy/paste was not working because I was trying to copy a script from one screen to another and was using ctrl A to select the whole script.

If this was a purposely included feature, it is a bad one in my opinion.

Where are you seeing this behavior? I can only replicate it on ignition defined def statements.

This is Ctrl + A on a schedule script.

Ctrl + A on a script in my library:

In the new editor in 8.1.18, ctrl+a once will select the "user authored" portion of code, and a second time will select all code including the definition. Both will copy to the clipboard cleanly.

1 Like

Specifically when copying custom method code from scripts attached the top level (window level, not root)
I have reproduced this many times. Any time the def statement is in the copied text, the copy does not happen. I am going to assume this is the case no matter what the custom method is attached to.

I figured this would be fixed in a future version. Thought I would bring it up just in case. Thanks for the response. Just trying to keep my sanity somewhat intact! :slight_smile: