Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
save tablist when running script
-
When working with ctypes/objc_util, I crash a lot. When reopening pythonista, i often lose the state of the tabs (which files are open, which is the active tab). I think this state is only saved when tabbing back and forth, maybe, but if creating a new file, or just opening a file without modifying it, not so much.
it would be nice if pythonista stored the tablist when hitting play... that way, if i crash, i can start back up in the same configuration
-
I think Pythonista intentionally doesn't reopen tabs after a non-smooth exit. That way you can't lock yourself out of the app by opening a large file. (I'm looking at you,
yacctab.py
.) -
I dunno.... the only completely safe way would be to open no tabs... i could have run a script that wrote to a different tab! it seems that if any tab is safe, it is probably the one i just ran, since self modifying code is not the norm...
once a file has opened, and not crashed, it seems pretty safe to reopen it next time.
or, better yet, store the modfied date of any tabs when hitting play, and only files that match get reopened. -
With the current system you can always "unhang" Pythonista if you open a huge file. Pythonista hangs, you force quit the app in the app switcher, all tabs are closed when you reopen it.