When I have a collection of multiple scripts in a Replit project, I would like to run the script I have currently open in the Replit editor. So something like you can do in VS Code where you can specify the launch task for the current file.
I know that I can always manually edit the .replit file and enter the desired path as entrypoint, but some configuration to automatically run the currently open file would be cool.
Add/change in the start of the .replit file (replace *.py with the glob of the files you want to run):
onBoot = 'for i in *.py; do ((/nix/store/fbi9r30p3lqk96lmw5b1v1bpbj62cr2l-inotify-tools-3.20.11.0/bin/inotifywait -e modify $i;sed -i "/entrypoint/s/\".*\"/\"$i\"/" .replit)&);done'