File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -723,9 +723,10 @@ protected File createNewUntitled() throws IOException {
723
723
int day = cal .get (Calendar .DAY_OF_MONTH ); // 1..31
724
724
int month = cal .get (Calendar .MONTH ); // 0..11
725
725
String purty = months [month ] + PApplet .nf (day , 2 );
726
+
726
727
do {
727
- if (index == 26 ) {
728
- // In 0159 , avoid running past z by sending people outdoors.
728
+ if (index == 26 * 26 ) {
729
+ // In 0166 , avoid running past zz by sending people outdoors.
729
730
if (!breakTime ) {
730
731
showWarning (_ ("Time for a Break" ),
731
732
_ ("You've reached the limit for auto naming of new sketches\n " +
@@ -737,7 +738,15 @@ protected File createNewUntitled() throws IOException {
737
738
}
738
739
return null ;
739
740
}
740
- newbieName = "sketch_" + purty + ((char ) ('a' + index ));
741
+
742
+ int multiples = index / 26 ;
743
+
744
+ if (multiples > 0 ){
745
+ newbieName = ((char ) ('a' + (multiples -1 ))) + "" + ((char ) ('a' + (index % 26 ))) + "" ;
746
+ }else {
747
+ newbieName = ((char ) ('a' + index )) + "" ;
748
+ }
749
+ newbieName = "sketch_" + purty + newbieName ;
741
750
newbieDir = new File (newbieParentDir , newbieName );
742
751
index ++;
743
752
// Make sure it's not in the temp folder *and* it's not in the sketchbook
You can’t perform that action at this time.
0 commit comments