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.


    Feature request: code_folding

    Pythonista
    2
    12
    6543
    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.
    • yjq01
      yjq01 last edited by

      Sometimes, I have to read long codes. So if Pythonista could fold “if”, “while” or “def”, it would be very convenient.
      Example:

      if a == 1:
      print(True)
      else:
      print(False)
      ———————————-
      [+] if a== 1: [...]

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

        @omz Please, it means a lot for me.

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

          See:
          https://github.com/omz/Pythonista-Issues/issues/206

          You can enable folding, then manually fold ranges, though it is not very automated.

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

            It s*cks. I don't think it is convenient at all.
            But anyway, thanks a lot.

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

              @omz I can pay no matter how much money for this feature.

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

                @omz plz

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

                  Why not?

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

                    I could imagine cold folding could be tricky with out an external keyboard on a small device. I have been playing around with the hidden code folding, and that's what I have been finding... No room for a button that is re reliable yet unobtrusive... You are aware of the "outline" drop-down if you tap the filename, right? That lets you navigate large files by def/clase.

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

                      @JonB I just want the same naive feature as the IDE like VS code and pycharm on PC. I don’t need to control where should I begin and end the code-folding. Just fold the whole class or def or if or while.

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

                        what i mean is, where do you put the fold/unfold button, so that it is both reliable and unobtrusive. tiny screens and fat fingers are not the same as precise mouse clicks.

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

                          @JonB Fortunitly, I have the apple pencil.

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

                            lol so no one cares? All of u just write helloworld.py?

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