bn wrote: Wed Feb 14, 2024 1:32 pm
Here is a stack that lets you fix the problem.
Thank you once again Bernd, that works well and I've made it permanent. And thank you for fixing so quickly!
I'll post here if I encounter any other issues - so far seems rock solid and performant.
And I second @AndyP's comments about LiveCode HQ, this is just brilliant!
The cmd-K and cmd-U shortcuts are incredibly useful... this these are truly missing features I've been needing for a long time
Kudos!
stam wrote: Mon Feb 19, 2024 9:37 pm
Bernd, just wanted to thank you again -- this has made working on long scripts of hundreds of lines a breeze!
I thank you for feedback and all the others that tried Code Folding.
I actually found two more small bugs (beside the one you found) and am working on making the installation process a bit easier.
I restarted the project when I was debugging someones scripts with up to 6348 lines of code in one mouseUp handler...
There is one 'hidden' feature: if you right-click on a foldable line while the command key is down that toggles the folding state. Less mouse traveling.
bn wrote: Tue Feb 20, 2024 10:09 am
I restarted the project when I was debugging someones scripts with up to 6348 lines of code in one mouseUp handler...
Ouch!
>6,000 lines in one handler!?
I must say my attention span is not that long, I’m amazed that wasn’t split into digestible chunks… each to his/her own coding style I guess, but that just seems… wrong…
bn wrote: Tue Feb 20, 2024 10:09 am
There is one 'hidden' feature: if you right-click on a foldable line while the command key is down that toggles the folding state. Less mouse traveling.
Since I did not hear of further possible bugs I upload a new version of Code Folding stack.
It has in addition to Stam's report two more bug fixes.
The stack now has the option to make the temporary changes to the IDE permanent via a button
The stack now also has the option to make a backUp of the stacks that are changed to revert in case you do not want code folding anymore.
Please make the backups before making the changes to your IDE regarding code folding permanent.
As before this version has been tested with version 9.6.9 up to 10.0.0 DP-7
bn wrote: Thu Feb 22, 2024 2:23 pm
As before this version has been tested with version 9.6.9 up to 10.0.0 DP-7
Thank you Bernd -- is it safe to use this where the previous permanent fix was applied or should this be applied to a pristine IDE?
I think you might want to apply it to a fresh installation of your version. Just to not take any chances.
Sorry for the inconvenience. But it is only a download away.
THANKS Bernd. This is a great feature for the script editor. I love it ! Only had on instance where the script editor crashed (closed) when I copy/pasted a folded command. Not a big deal..
raugert wrote: Thu Mar 07, 2024 1:30 am
THANKS Bernd. This is a great feature for the script editor. I love it ! Only had on instance where the script editor crashed (closed) when I copy/pasted a folded command. Not a big deal..
Thank you Richard,
Though I have not tested copying folded commands extensively I am surprised that it did not work as intended. Folding is not what the copy command "sees", it just sees text. Folding is strictly the appearance of text not the text itself. I retested copying folded text without problems but there might be conditions I did not test. A recipe would be welcome.
Please do report any problems with folding since it should not interfere with working in the script editor
raugert wrote: Thu Mar 07, 2024 1:30 am
THANKS Bernd. This is a great feature for the script editor. I love it ! Only had on instance where the script editor crashed (closed) when I copy/pasted a folded command. Not a big deal..
Richard
I was not able to reproduce this - I copy/pasted a folder command a few times, and it just pasted unfolded with no issues.
I tried to reproduce it myself but to no avail. The copy/paste works flawless every time ! It may have had nothing to do with the folding... Chalking this one up to a one time event. Thanks again Bernd for the great feature.
Finally had time to test this and it works beautifully!
Great work, Bernd, and thank you so much for bringing this essential feature to LiveCode!
I'm so happy we finally have code folding!
LC Ltd need to pony up and procure this from Bernd - this is literally the first IDE interface improvement I've seen since I picked up LC properly during lockdown... it is an essential one, and very well done at that...