dbaumgarten / yodk

Development Kit for Starbase's ingame programming language YOLOL
MIT License
57 stars 16 forks source link

AutoType: force stop auto-typing after 20 lines #96

Closed Firestar99 closed 2 years ago

Firestar99 commented 2 years ago

Is your feature request related to a problem? Please describe. Often yolol files have empty lines or comments after the first 20 lines. (yodk optimize doesn't remove them either.) Using Auto-Type also pastes in these lines, making ot go below the yolol chip and do random game input. Tested in SSC.

Describe the solution you'd like Make AutoType always stop after line 20

Describe alternatives you've considered yodk optimize deleting everything after line 20

(I <3 yodk optimize :) finally I can have decent variable names)

dbaumgarten commented 2 years ago

I am not sure what the best solution here would be. The optimize-command already removes any comments, but keeps the resulting empty line to not mess up any gotos. However, empty lines at the end of the script could be safely removed, as they dont influence any gotos.

On the other hand, inserting more then 20 lines simply never makes sense. So stopping it after 20 lines also seems reasonable.

So in the end maybe both things would be a good idea? 🤔

dbaumgarten commented 2 years ago

Published with v0.1.9.