Ability to rename scripts and expressions
Unless I'm missing something (quite possible), scripts and expressions can't be renamed in the editor. This would be a very welcome addition.
Re: Ability to rename scripts and expressions
Agreed, this is pretty annoying.
-
- Newbie
- Posts:39
- Joined:18 Dec 2011 17:30
Re: Ability to rename scripts and expressions
This, plus automatically update references to the changes throughout the project. Kind of like a global find/replace.
Re: Ability to rename scripts and expressions
\dBlicious wrote:This, plus automatically update references to the changes throughout the project. Kind of like a global find/replace.
Agreed this would be awesome but I've been fooling a bit with the raw jzml files latley (its basically an xml), and I have to say that request is easier said than done...
say we've got an expression, fade=1
then we've got an expression, fadeOut=4
and we want to rename fade to fooBar...
some hefty regex work (hefty for me atleast becuase I hate/am terrible with regex) has to be done to prevent fadeOut from becoming fooBarOut...
Re: Ability to rename scripts and expressions
It's actually not too bad, you just have to make sure the next character after your search string is a non-word character. I had to do a bunch of regex for a project so I learned a lot more than I ever wanted toTraxus wrote: say we've got an expression, fade=1
then we've got an expression, fadeOut=4
and we want to rename fade to fooBar...
some hefty regex work (hefty for me atleast becuase I hate/am terrible with regex) has to be done to prevent fadeOut from becoming fooBarOut...
Re: Ability to rename scripts and expressions
I do this with the Lemur XML-files in Notepad++, in this case it's a simple search/replace with the "only whole word" option checked. I agree there may be cases where a search item is not unique, if this is the case the automic reference update could simply exit or provide a dialog to choose a unique item.Traxus wrote:\dBlicious wrote:This, plus automatically update references to the changes throughout the project. Kind of like a global find/replace.
Agreed this would be awesome but I've been fooling a bit with the raw jzml files latley (its basically an xml), and I have to say that request is easier said than done...
say we've got an expression, fade=1
then we've got an expression, fadeOut=4
and we want to rename fade to fooBar...
some hefty regex work (hefty for me atleast becuase I hate/am terrible with regex) has to be done to prevent fadeOut from becoming fooBarOut...
Most of the modern development editors do have that kind of refactoring feature, it's a great time saver.
-
- Newbie
- Posts:7
- Joined:20 Apr 2016 11:35
- Location:Iceland
Re: Ability to rename scripts and expressions
+1 on the ability to rename scripts and expressions
It's quite annoying to copy the whole code, paste it into a new script and delete the old one if you want to rename, or is there maybe another way?
It's quite annoying to copy the whole code, paste it into a new script and delete the old one if you want to rename, or is there maybe another way?