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.


    Simple file navigator view not tied to dialogs (1.6 only)

    Pythonista
    3
    7
    3918
    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.
    • polymerchm
      polymerchm last edited by

      Is there one before I start hacking filenav

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

        Filenav doesn't actually use dialogs. At one point I think it tries to import dialogs to check whether it's running on the 1.6 beta, and if so it... loads the icon for the .Trash folder. Why I didn't use os.path.exists there I have no idea.

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

          @JonB's uidir.py works find for my needs. Just found it. Always look in uicomponents first. He probably build it.

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

            uidir was a temporary hack that i always intended to improve upon... it is quite buggy, for instance i think when you reach a folder that it can't access it gets horribly confused. Also the back button is dodgy at best. You are welcome to make it better, but i wouldn't rely on it for anything important!

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

              So I've noticed. Need to see how filnav behaves.

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

                There's a simplified version in the filenav repo that does only folder navigation and nothing else. That is based on the first public version of filenav, so the under-the-hood code is much more simple than it is currently.

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

                  i fixed a few of the longstanding bugs in uidir -- getFile now works as it should without using the setter option, although from within a callback you'd want to pass in a setter method, which gets called when the user selects a folder. Back buttons don't screw things up anymore, and unreachable folders now just display an error, rather than staying unreachable. I also added quick buttons for the pylib folder and Documents folder.

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