What inspired this wish list request? I was working on a dataset with thousands of rows and hundreds of columns, and I saved dozens & dozens of scripts to document my exploratory data analysis and model development process. I organized the scripts in the script window by grouping them together. Whenever I received new columns of data, I joined the new data to the large dataset, and the resulting table inherited the scripts from the primary table but the script groupings disappeared. I had to redo the script groupings each time (or copy/paste the new columns into the primary table which is error prone).
What is the improvement you would like to see? Table operations create new tables that inherit the primary table's scripts and the script groups.
Why is this idea important? Maintain script organization as datasets and analyses grow in complexity. Not all data comes back at the same time, and new questions can be raised over time.