I'm not sure you could call them "bugs" per se, but it would be nice if you could choose the folder it defaults to (right now, if you pick "open", it always sends you to "my documents") and... What's with that Deku Leaf script that opens automatically whenever I open the program?
Sure, those are just remnants of it being a demo. A full-blown editor would remember your last directory, have a "recent files" list, etc. Such features are already available in the "full editor" links in the project home page. And the Deku Leaf script is again, just a random script I dropped into the editor for testing purposes. It was a script recently added to the purezc forums at the time I started the project.
Could it be possible to make it an option to rearrange how things are compacted when you shrink parts of the script down? As it is right now, I can hit the little minus button and shrink individual scripts down into a single line, and it's very easy to keep things organized. However, I end up with lines of comments and directions and stuff that doesn't get shrunken down with the rest of the script. Also, I tend to keep my global variables next to the individual scripts that use them the most, so they don't get included as well. Would that be a possible option to include, so it's easier to keep things neat and tidy?
I think you're asking if groups of lines that are all only comments can be treated as a collapsible code block. Is that right? i.e.
// This is a function that
// does your taxes and pays
// your rent.
global script amazing {
...
}
You're asking if this snippet could be two fold regions, one for the comments in addition to the other for the script itself? This would certainly be doable. Multi-line comments would be nice to have in ZScript though.
As for folding nearby variables along with scripts, that would be doable too, but that's not a common idiom found in code editors for other languages, so I didn't consider it here.
Edited by bobby_light, 26 August 2013 - 08:27 PM.