omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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

    Pythonista
    2
    4
    1735
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JonB
      JonB last edited by

      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

      1 Reply Last reply Reply Quote 1
      • dgelessus
        dgelessus last edited by

        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.)

        1 Reply Last reply Reply Quote 1
        • JonB
          JonB last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • dgelessus
            dgelessus last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors